Jump to content


view latest topics


3 replies to this topic

#1 venomsnake

    Jedi In Training

  • Members
  • PipPip
  • 481 posts
  • Gender:Male

Posted 23 August 2006 - 02:46 PM

im making a view latest topics since last visit script for my forums like IPB has it, but how do i store what topics they read? i know IPB uses cookies for this as i found the cookie in my browser, but its all jibberish, so what would i store in a cookie? the topic id? but then everytime i do setcookie it would overwrite the other cookie wouldnt it?

#2 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 23 August 2006 - 03:11 PM

There is a link to another thread within this thread if this thread doesnt help.

http://www.pixel2life.com/forums/index.php...l=unread+topics

(how many times did i use 'thread' rofl.)

#3 venomsnake

    Jedi In Training

  • Members
  • PipPip
  • 481 posts
  • Gender:Male

Posted 24 August 2006 - 12:04 AM

thanks for the link, should be of help, if i cant figure something out, ill post it ^_^

edit: question, how do i update a cookie?

Edited by venomsnake, 24 August 2006 - 12:13 AM.


#4 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 24 August 2006 - 06:11 PM

You do it the same way you update any variable (and if you're trying to make a forum and don't know this, i suggest you go try other things first, forums are by no means simple).
http://php.net/manua...n.setcookie.php

p.s. As matt pointed out, this question has been asked before (and the topic went fairly in-depth), so i'm going to close this and ask that you ask any more questions about this in that topic.

Edited by rc69, 24 August 2006 - 06:13 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users