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 2 of 2
  1. #1
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default Help making cutenews tags...

    Okay,

    I am making cutenews into a tutorial system, I no some people may just say "Make your own", but I think its a good script.

    Okay to start I opened up my

    "inc/functions.inc.php"

    And added a few extra lines...

    PHP Code:
    /* 19 */                "'\[php\](.*?)\[/php\]'i"
    and that will make the [php] tag... and this will replace what shows on the page.

    PHP Code:
    /* 19 */                                "<table width='100%' border='1' cellpadding='0' cellspacing='0'><tr><td width='100%' valign='top'> PHP</td></tr><tr><td valign='top'>
    <?
    highlight_string
    ('\\1');
    ?>
    </td></tr></table>",
    (Thanks to mentor helping the funtion tag "hightlight_string('') )

    But it doesnt show how it should...

    This is how I want it to show on the cutenews...

    http://www.xenigma.co.uk/habbox.php


    Any ideas on making it work?
    As it doesnt show how I want it to!

    Thanks!

  2. #2
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Ok, im not sure, but one problem is you are already in php so dont realy need the php tags? try this? (im guessing so many be wrong)

    "<table width='100%' border='1' cellpadding='0' cellspacing='0'><tr><td width='100%' valign='top'> PHP</td></tr><tr><td valign='top'>".highlight_string('\\1')."
    </td></tr></table>",

    That way the php is not broken, and the function is part of the text part

Posting Permissions

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