Way to link a forum to a navigation bar.

Discussion in 'PHP' started by beemaster, Sep 19, 2007.

  1. #1
    I'm not sure how to explain this but I'll go ahead and try.

    I have a website I am doing with articles, information about the subject and a forum. What I would like to do is when somebody posts in the forum in puts it on my home page as a link to that post.

    Something like on www.poultryyouth.com. How they have the forum posts on the bottom right. I'm just looking for a way that when people come to my home page they can see the recent forum posts and go directly to them if they want.

    I hope this makes sense... If anybody has any thoughts about doing this or a place to go that I could get more information that would be greatly appreciated!

    Thanks!
     
    beemaster, Sep 19, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    There are two ways.

    Either you read your own RSS feed (if any) and output it there. (Google "magpie" for an RSS reader/parser)

    Or you query your database, which is usually a better practice. What forum software are you using? And what are the IDs of the forums you want to show on the homepage?
     
    nico_swd, Sep 19, 2007 IP
  3. beemaster

    beemaster Peon

    Messages:
    103
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I don't have RSS feeds (at the moment at least) so I guess I should query the database. I'm using phpbb2 and I would like forum id's 1 and 15 to display on the homepage.

    Querying the database is making sense now that I'm thinking about it. I am very new to programming and doing anything more than surfing the net so it's hard for me to think of how to do some things. Thanks for the reply!
     
    beemaster, Sep 19, 2007 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
  5. beemaster

    beemaster Peon

    Messages:
    103
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for the links! I'll check those out...
     
    beemaster, Sep 20, 2007 IP