|
|
|
|
![]() ![]() |
Sep 25 2007, 01:59 PM
Post
#1
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 15 Joined: 3-September 07 Member No.: 49,306 |
hi guys.
I have a little problem here. Im making my own version of forum, just got into this problem on the last post from the topic and displaying the users avatar. i already have a upload script but not for images. I tried making some experiments but it didnt work. maybe someone here could help me. just want to: 1.) query the last post. 2.)display the avatar of the user |
|
|
|
Sep 25 2007, 03:01 PM
Post
#2
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 4,081 Joined: 24-July 05 From: Linix, DOS and Windows…the good, the bad and the ugly Member No.: 9,787 ![]() |
What kind of problems?
Where is your code? Download a copy of AEF Forum software and rip their code apart to see how they do it. |
|
|
|
Sep 25 2007, 03:39 PM
Post
#3
|
|
|
Define:EVIL PROGRAMMER (ē'vəl prō'grăm'ər)- n. An organism that converts caffeine into evil software. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 1,074 Joined: 25-September 05 From: Los Angeles, California Member No.: 12,251 |
Download a copy of AEF Forum software and rip their code apart to see how they do it. You are overly obsessed with your own forum software my friend... @vipervoid: Are you making your own forums or modifying existing forum software such as phpbb or *shutters* AEF? (jk haslip) And what do you mean by query the last post. Do you only want the avatar to change on your last post? |
|
|
|
Sep 25 2007, 04:54 PM
Post
#4
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 59 Joined: 28-August 07 Member No.: 48,983 |
You are overly obsessed with your own forum software my friend... @vipervoid: Are you making your own forums or modifying existing forum software such as phpbb or *shutters* AEF? (jk haslip) And what do you mean by Do you only want the avatar to change on your last post? i think he wants the person who posted last to show up there. he could easily use an update query. |
|
|
|
Sep 26 2007, 11:56 AM
Post
#5
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 15 Joined: 3-September 07 Member No.: 49,306 |
ewcreators is right.
i want to see the last person who posted. the reason that i've created my own forum is i just want to experience doing one. thanks for the help guys. i'll test that update thing. |
|
|
|
Sep 28 2007, 11:19 AM
Post
#6
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 59 Joined: 28-August 07 Member No.: 48,983 |
ewcreators is right. i want to see the last person who posted. the reason that i've created my own forum is i just want to experience doing one. thanks for the help guys. i'll test that update thing. well, when the person posts, i suggest you make the action page a redirect which comes back to the original page + CODE <?php //the page that updates everything require('connection.php'); require('sessions.php'); require('user_stats.php'); //determine whether it was a //edit or delete or new post through if/else //Insert /Update accordingly ^^ //now use the last posted scrpt //if it is a new post $lp=mysql_query("UPDATE forum_posts SET lastposted='$_SESSION[username]'"); //then you use a redirection to go back so that he cannot double post header('location:url'); ?> |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 12th October 2008 - 04:23 PM |