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 7 of 7
  1. #1
    Join Date
    Jan 2007
    Location
    Blackburn
    Posts
    426
    Tokens
    0
    Habbo
    ChampJames

    Default Embedding News into a HTML page

    Hi, I am using FusionNews and the code that I have been given to embed the news into my webpage is;

    ?php
    include '/home/jph92/public_html/news/news.php';
    ?

    But when i put this code in, it just shows up on my page as text.

    Normally I use iFrames, so I can make the page 'news.php' or something and only include this, but this site I am working on doesn't use iFrames, so it is just a HTML page.

    Please could somebody give me some advice on fixing this problem?
    Thanks

  2. #2
    Join Date
    Jun 2008
    Location
    West midlands, Birmingham.
    Posts
    2,093
    Tokens
    219

    Latest Awards:

    Default

    Why not make the page php, it has no effects? rename the index.html to index.php?

  3. #3
    Join Date
    Jan 2007
    Location
    Blackburn
    Posts
    426
    Tokens
    0
    Habbo
    ChampJames

    Default

    i tried that. because ive done that before, but it just stayed the same? :s

  4. #4
    Join Date
    Jun 2008
    Location
    West midlands, Birmingham.
    Posts
    2,093
    Tokens
    219

    Latest Awards:

    Default

    btw it should be

    Code:
    <?php
    include '/home/jph92/public_html/news/news.php';
    ?>
    i think. lol.

    If not, try

    Code:
    <?php
     "include '/home/jph92/public_html/news/news.php"';
     ?>
    I know nothing about php but im sure its one or the other.


    EDIT;; WAIT LOL.

    Link to it is wrong, it should be /news/news.php
    Last edited by iDenning; 17-04-2010 at 12:41 AM.

  5. #5
    Join Date
    Jan 2007
    Location
    Blackburn
    Posts
    426
    Tokens
    0
    Habbo
    ChampJames

    Default

    haha oops.
    i cant even copy and paste right at this time haha.
    i feel stupid now.
    its working, thanks

  6. #6
    Join Date
    Jun 2008
    Location
    West midlands, Birmingham.
    Posts
    2,093
    Tokens
    219

    Latest Awards:


  7. #7
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default

    Code:
    <?php
    include('news/news.php');
    ?>
    Edit: Oh, didn't see you'd fixed it lol.
    Last edited by Apolva; 17-04-2010 at 12:49 AM.

Posting Permissions

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