Forum Posts

Sharky Forums


Results 1 to 7 of 7

Thread: Forum Posts

  1. #1
    Reef Shark Nephalim's Avatar
    Join Date
    Nov 2000
    Location
    Michigan
    Posts
    463

    Forum Posts

    I'm curious; how does a forum like phpBB or vBulletin keep track of which posts are new, which are old, etc. for each user? I've created my own forum and I'm thinking about adding this feature.
    ~ And that is my humble opinion.

    When I was a boy I was told that anybody could become President. Now I'm beginning to believe it. - Clarence Darrow

    The greatness of a woman’s power is measured in the size and amount of the balls she clutches in hand. -Nephalim

    "Tink"
    1700+ XP on A7N8X, 768MB PC2700 DDRRAM, Samsung 19" 900IFT, Radeon 64MB DDR VIVO, SB Live! MP3+, 42.9GB IBM HDD, Plexwriter 8/4/32, 3C905CTXM NIC

    "Hermes"
    Dell Inspiron 8200, 1.7 GHz P4, 512MB DDRRAM, 30GB HDD, DVDROM, Geforce4 Go 64MB

  2. #2
    Hammerhead Shark Tekime's Avatar
    Join Date
    Dec 2001
    Location
    Falmouth, ME
    Posts
    2,347
    Well if you store enough data about the post - like time/location/poster/etc. it wouldn't be hard to just find new entries. It all depends on how you store your data and in what format.

    For example, I fetch the four most recent posts by unique topic in my forum and display them on my primary site with the following query:

    PHP Code:
    $query "SELECT phpbb_posts.post_id, phpbb_topics.topic_title
    FROM phpbb_topics,phpbb_posts WHERE phpbb_posts.topic_id = phpbb_topics.topic_id 
    AND phpbb_posts.post_id = phpbb_topics.topic_last_post_id
    ORDER BY phpbb_posts.post_time 
    DESC LIMIT 
    $limit"
    Last edited by Tekime; 02-19-2003 at 01:48 PM.
    Stuff and stuff

  3. #3
    Reef Shark Nephalim's Avatar
    Join Date
    Nov 2000
    Location
    Michigan
    Posts
    463
    Wait... so, in essence, you just keep track of when the last time a user logged in and then just display the appropriate symbol depending on when each post was posted? ROFL... LOL... MHMM. Okay.

  4. #4
    Ursus Arctos Moderatis Grizzly's Avatar
    Join Date
    Sep 2000
    Location
    Providence, RI USA
    Posts
    3,077
    Yeah - that's the simpliest, and most efficient way to do it.

    The more accurate, but also more process-intensive approach would be to have a post-read / user relationship table which bridges a many-to-many relationship between a users and posts. That's essentially what happens in an program like MS Outlook to determine which items are flagged "read" by which user.

    Most online BBS systems go with the simplier route, because the added accuracy of *actually* tracking which posts have been read, and which ones haven't for each user isn't really worth the sheer amount of relationships you would have to store, and sort through on each request. In a stateless environment like the internet, corners like that are often cut in an effort to improve efficiency.

  5. #5

    forum (vB, phpBB, IPB) Button Set


    50 style samples (160 kb .zip)


    finished these yesterday ...

  6. #6
    Catfish Diz's Avatar
    Join Date
    Oct 2001
    Location
    Philly, PA USA
    Posts
    220
    Nice sets. Do you have the original psd files available to download? Also I would like the font to add to my collection.
    What you got?

  7. #7

    Red face Diz

    Yes, you can have the psd files, but there are not for free, they cost 5.50$, and yes, you cand have the pixel fonts (there are 50 to choose from), but you have to pay for it, because I've worked more than a week, to create all the button styles. This is only one of the sets, there are seven more. Contact me via e-mail, if you still need them.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •