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
    Nov 2006
    Posts
    7,395
    Tokens
    2,222

    Latest Awards:

    Default How to enable more announcements

    (It's whmcs)

    http://www.30mb.co.uk as you can see on the homepage there sub menu called "Latest Announcements". However as you can also see it displays 1 announcement. How can I edit it to show maybe 2 or 3? (yes...I have 2 announcements already)

    My code for that page:

    Code:
    <p>{if $announcements}</p>
    <h2>{$LANG.latestannouncements}</h2>
    <p>{$announcements.0.date} - <a href="{if $seofriendlyurls}announcements/{$announcements.0.id}/{$announcements.0.urlfriendlytitle}.html{else}announcements.php?id={$announcements.0.id}{/if}">{$announcements.0.title}</a><br />{$announcements.0.text|strip_tags|truncate:100:"..."}</p>
    <p>{/if}</p>
    Hi

  2. #2
    Join Date
    Nov 2006
    Posts
    7,395
    Tokens
    2,222

    Latest Awards:

    Default

    Never mind figured it out for my self... lol all I had to do was too duplicate the code and change the numbers.

    Now I have three:
    Code:
    <p>{if $announcements}</p>
    <h2>{$LANG.latestannouncements}</h2>
    <p>{$announcements.0.date} - <a href="{if $seofriendlyurls}announcements/{$announcements.0.id}/{$announcements.0.urlfriendlytitle}.html{else}announcements.php?id={$announcements.0.id}{/if}">{$announcements.0.title}</a><br />{$announcements.0.text|strip_tags|truncate:350:"... (Read more by clicking the title.)"}</p>
    <p>{$announcements.1.date} - <a href="{if $seofriendlyurls}announcements/{$announcements.1.id}/{$announcements.1.urlfriendlytitle}.html{else}announcements.php?id={$announcements.1.id}{/if}">{$announcements.1.title}</a><br />{$announcements.1.text|strip_tags|truncate:350:"... (Read more by clicking the title.)"}</p>
    <p>{$announcements.2.date} - <a href="{if $seofriendlyurls}announcements/{$announcements.2.id}/{$announcements.2.urlfriendlytitle}.html{else}announcements.php?id={$announcements.2.id}{/if}">{$announcements.2.title}</a><br />{$announcements.2.text|strip_tags|truncate:350:"... (Read more by clicking the title.)"}</p>
    <p>{/if}</p>
    Hi

Posting Permissions

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