vipervoid 0 Report post Posted September 25, 2007 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 Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted September 25, 2007 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. Share this post Link to post Share on other sites
galexcd 0 Report post Posted September 25, 2007 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? Share this post Link to post Share on other sites
ewcreators 0 Report post Posted September 25, 2007 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. Share this post Link to post Share on other sites
vipervoid 0 Report post Posted September 26, 2007 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. Share this post Link to post Share on other sites
ewcreators 0 Report post Posted September 28, 2007 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 +<?php//the page that updates everythingrequire('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');?> Share this post Link to post Share on other sites