Jump to content
xisto Community
vipervoid

Forum Last Post And Avatar need little help here

Recommended Posts

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

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

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

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

ewcreators is right. :D
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. :P


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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.