Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Forum Last Post And Avatar, need little help here
vipervoid
post 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. smile.gif

just want to:

1.) query the last post.
2.)display the avatar of the user
Go to the top of the page
 
+Quote Post
jlhaslip
post 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 Icon

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
Spam Patrol



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.
Go to the top of the page
 
+Quote Post
galexcd
post 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



QUOTE(jlhaslip @ Sep 25 2007, 08:01 AM) *
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... laugh.gif

@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
QUOTE(vipervoid @ Sep 25 2007, 06:59 AM) *
query the last post.


Do you only want the avatar to change on your last post?
Go to the top of the page
 
+Quote Post
ewcreators
post Sep 25 2007, 04:54 PM
Post #4


Member [Level 1]
****

Group: Members
Posts: 59
Joined: 28-August 07
Member No.: 48,983



QUOTE(alex7h3pr0gr4m3r @ Sep 25 2007, 11:39 AM) *
You are overly obsessed with your own forum software my friend... laugh.gif

@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.
Go to the top of the page
 
+Quote Post
vipervoid
post 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. biggrin.gif

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. smile.gif

thanks for the help guys. i'll test that update thing. biggrin.gif
Go to the top of the page
 
+Quote Post
ewcreators
post Sep 28 2007, 11:19 AM
Post #6


Member [Level 1]
****

Group: Members
Posts: 59
Joined: 28-August 07
Member No.: 48,983



QUOTE(vipervoid @ Sep 26 2007, 07:56 AM) *
ewcreators is right. biggrin.gif

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. smile.gif

thanks for the help guys. i'll test that update thing. biggrin.gif


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');
?>

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Avatar Maker(8)
  2. Myphp Forum(12)
  3. Writing To Database Problem With Mysql - Not Writing Forum Post(3)
  4. Wap Forum(9)
  5. My Forum/shoutbox(8)
  6. Can My Forum And Website Use The Same Profiles?(3)
  7. Forum Signatures Help(1)
  8. Phpskye The New Forum Software.(4)
  9. How I Can Display Forum Topic On Main Website ?(4)
  10. Do Somebody Have A Tutorial About... How To Create A Forum?(11)
  11. Free Web Forum Scripts?(7)
  12. Evilboard (forum Software) - Multiple Categorys - Don't Work :((6)
  13. Ipb Multi Forum (hosting Mod)(6)
  14. [forum] Double Posting Happening By An Error(3)
  15. Php Forum Signature(10)
  1. How To Display The Latest Forum Post On Main Page(4)
  2. Forum Troubles(2)
  3. Creating A Login Box That Links To My Phpbb Forum(4)
  4. Forum Script(3)


 



- Lo-Fi Version Time is now: 12th October 2008 - 04:23 PM