Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 10 of 10
  1. #1
    Join Date
    Mar 2005
    Posts
    6,366
    Tokens
    325

    Latest Awards:

    Default PHP System [Help Needed]

    Okay, so I'd like to create a system like this:

    User (register + login)
    Page that edits variables (RSS Feeds) in a database

    Page that reads the RSS feeds and shows them, and GETS the RSS Feed info from the database.

    So if there was a user called bob for example and Bob had entered he wanted the BBC Sport RSS feed and CNN News on his member area.

    He navigates to the Page www.url.com/view.php?bob (or whatever)

    Then Bob's page would look like this:

    Welcome Bob,

    BBC Sport HEADLINE 1
    short description
    BBC Sport HEADLINE 2
    short description

    CNN News HEADLINE 1
    short description
    CNN News HEADLINE 2
    short description

    Could anybody link me to a tutorial that could help me do this?
    goodbye.

  2. #2
    Join Date
    Mar 2005
    Posts
    6,366
    Tokens
    325

    Latest Awards:

    Default

    Sorry to bump, but I really need help.
    goodbye.

  3. #3
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    ahhh i see what u mean...

    Hmmm. I dont know much bout this but im guessing. Well u obviously cant connect to a bbc database. Hmmm.

    try searching the bbc for webmasters resources?

  4. #4
    Join Date
    Mar 2005
    Posts
    6,366
    Tokens
    325

    Latest Awards:

    Default

    Oh no, I can the use the RSS feeds.
    goodbye.

  5. #5
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    what cant u do then?

    Get them to display?

  6. #6
    Join Date
    Mar 2005
    Posts
    6,366
    Tokens
    325

    Latest Awards:

    Default

    No, I can display them, but I want my members to be able to choose what they want to see. =]
    goodbye.

  7. #7
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    oooohhhh

    use cookies?

  8. #8
    Join Date
    Oct 2006
    Posts
    33
    Tokens
    0

    Default

    Hello.

    Do you know the code to include in the page in order ot show the bbc, and cnn news.

    If so then i suggest this.

    make a filed for each feed in your database, that can be TRUE or FALSE.

    Then when the user logs in, quesry the database for their feed fields.

    e.g. $cnn = ("select cnn from database where user='$user')
    $bbc = ("select cnn from database where user='$user')

    then simply do:

    if ($cnn== "true"){
    CODE TO DISPLAY THE CNN FEED
    }

    then do the same for the bbc one.


    P.S - instead of cookies just use the same database that your users already connect to, sdimply add the cnn and bbc fields, then you will remember forever which they want, no matter if they delete cookies or not
    Hope that helps
    Last edited by primal; 22-10-2006 at 04:48 PM.

  9. #9
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Good idea mate.

    Coz as he said cookies can be deleted. And also some people block cookies.

  10. #10
    Join Date
    Oct 2006
    Posts
    33
    Tokens
    0

    Default

    Woops, the second quesry is obviously:

    Select bbc and not cnn

    But i think you still see the general idea

Posting Permissions

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