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!


Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Apr 2008
    Location
    England.
    Posts
    1,324
    Tokens
    0

    Latest Awards:

    Default Cutenews templates?

    Hey now I suck hard at anything to do with cutenews, was wondering how you make the templates? Is it just a simple .css file that you upload to /data/ folder and select that template in options?

    Would be really helpful if someone has maybe a link or the knowledge on how to do these, thankyou

    Closed by SyrupyMonkey (Forum Super Moderator): Question answered, closed to prevent further pointless posting.
    Last edited by myke; 13-06-2008 at 04:21 PM.

  2. #2
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    in the page you put your include for cutenews on put;

    <link rel="stylesheet" type="text/css" media="all" href="lolol.css" />
    Lets set the stage on fire, and hollywood will be jealous.

  3. #3
    Join Date
    Apr 2008
    Location
    England.
    Posts
    1,324
    Tokens
    0

    Latest Awards:

    Default

    Thankyou ever so much is there any code I need to put in for the headlines and where the actual news should be?

    Basically all I want is a simple css box holding the content, headline above the box, thats all.

    +repute.

  4. #4
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    For the template use something like this;

    HTML Code:
    <div class="top">{title}</div>
    <div class="content">
    {full-story}
    <br>
    <i>Writen by {name}</i>
    </div>
    (you may need to change some of that)

    Then in the .css file put:

    HTML Code:
    .top {
    width: 500px;
    border: 1px solid #000000;
    border-bottom: 0px;
    text-align: center;
    }
    .content {
    width: 500px;
    border: 1px solid #000000;
    }
    Lets set the stage on fire, and hollywood will be jealous.

  5. #5
    Join Date
    Apr 2007
    Location
    Kent
    Posts
    482
    Tokens
    0

    Default

    If you are the admin on your cutenews panel, go to Options > Customize templates

    Something like that, and you will get up all the codey type stuff you need, the title etc.
    Tis' I.

  6. #6
    Join Date
    Apr 2008
    Location
    England.
    Posts
    1,324
    Tokens
    0

    Latest Awards:

    Default

    Ahh yes, already did the css file just wanted the tags like {name} etc, didn't know them aha, thanks a bunch

  7. #7
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Excellent View Post
    Ahh yes, already did the css file just wanted the tags like {name} etc, didn't know them aha, thanks a bunch
    Im not sure those tags are right lol, I made a thread on yahoo answers to find the full list

    http://answers.yahoo.com/question/in...2123353AAhFoMw
    Lets set the stage on fire, and hollywood will be jealous.

  8. #8
    Join Date
    Apr 2008
    Location
    England.
    Posts
    1,324
    Tokens
    0

    Latest Awards:

    Default

    Right this could be due to my total stupidness but this is what I have done..

    PHP Code:
    <?php
    <link rel="stylesheet" type="text/css" media="all" href="test.css">
    $number=5;
    $category=1;
    $start_from=1;
    include(
    "/home/site/public_html/cutenews/show_news.php");
    ?>
    I understand there is html in the php but I followed what you said, I have also added the css into the default template but I get this error:


    Parse error: syntax error, unexpected '<' in /home/site/public_html/index.php on line 116

  9. #9
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Excellent View Post
    Right this could be due to my total stupidness but this is what I have done..

    PHP Code:
    <?php
    <link rel="stylesheet" type="text/css" media="all" href="test.css">
    $number=5;
    $category=1;
    $start_from=1;
    include(
    "/home/site/public_html/cutenews/show_news.php");
    ?>
    I understand there is html in the php but I followed what you said, I have also added the css into the default template but I get this error:


    Parse error: syntax error, unexpected '<' in /home/site/public_html/index.php on line 116
    PHP Code:
    <?php
    print("<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"test.css\">");
    $number=5;
    $category=1;
    $start_from=1;
    include(
    "/home/site/public_html/cutenews/show_news.php");
    ?>
    You can't just enter code anywhere in PHP - if your going to call me crap at php, learn the syntax yourself.. Because my code is corrected, and the slashes added.
    Last edited by Independent; 12-06-2008 at 08:08 PM.

  10. #10
    Join Date
    Apr 2008
    Location
    England.
    Posts
    1,324
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Minor View Post
    PHP Code:
    <?php
    print("<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"test.css\">");
    $number=5;
    $category=1;
    $start_from=1;
    include(
    "/home/site/public_html/cutenews/show_news.php");
    ?>
    You can't just enter code anywhere in PHP - if your going to call me crap at php, learn the syntax yourself.. Because my code is corrected, and the slashes added.
    Bless you peasant but as I know nothing about cutenews and only followed chris's instructions you can hardly say I don't know php..

    Also, you should use echo, not print.. echo is around 10-20% faster than print dear

Page 1 of 3 123 LastLast

Posting Permissions

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