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 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default [TUT] Cutenews Headlines To Iframe

    Hello,

    Well a lot of people ask me how to do it, and I can't post in the tutorial section for some reason, so if a MOD sees this they can move it here. Quick TUT I made a year ago but on a small forum and I only got reminded of the TUT today:

    So basically, what you do is you go to the Edit template that you want to have a read more link targetting an iframe on, and where you have something like:
    Code:

    [full-link]Read more![/full-link]
    Instead you put:

    Code:
    <a target="IFRAMENAME" href="/cutenews/show_news.php?subaction=showfull&id={news-id}&archive=&start_from=&ucat=6&">
    Read More!</a>
    Basically, this allows you to edit the link settings like where it targets etc. Because you put the news ID in, it'll automatically get the news ID for that article and replace it there, which makes it go to the read more of the article! If you want to do this for a headline section on your site, and what the title of the article to link to the read more, you can simply change the "Read More!" to {title} and it'll look a little like this:
    Code:
    <a target="IFRAMENAME" href="/cutenews/show_news.php?subaction=showfull&id={news-id}&archive=&start_from=&ucat=6&">
    {title}</a>
    Fiddle with it as much as you like, this tutorial can also be helpful even if you aren't using iframes but just to customize the link tags.

    Hope that is clear! Enjoy!
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


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

    Latest Awards:

    Default

    Simpler way:

    Page with iframe on;
    PHP Code:
    <?PHP
    $PHP_SELF 
    'iframepage.php';
    $QUERY_STRING '" target="IFRAMENAMEHERE!';
    $template="Template";
    $category=2;
    include(
    "/path/to/cutenews/show_news.php");
    ?>
    Page inside iframe (iframepage.php):
    PHP Code:
    <?php
    $template
    ="TemplateHere!!";
    $category=1;
    include(
    "/path/to/cutenews/show_news.php");
    ?>

    EDIT: didnt read properly, your way is quicker
    Last edited by Decode; 14-04-2008 at 08:54 PM.
    Lets set the stage on fire, and hollywood will be jealous.

  3. #3
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    My way is also simpler for people who don't have the knowledge to do something complicated or knowledge of PHP.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  4. #4
    NEW-START Guest

    Default

    Well done, I'm sure this will help many!

  5. #5
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Thanks I hope so
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  6. #6
    Join Date
    Mar 2008
    Posts
    264
    Tokens
    0

    Default

    Thanks, i got mine working in the end lol

  7. #7
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Good Could a moderator maybe move this to the web designing tutorials section?

    Anyway, hope it helps.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  8. #8
    Join Date
    Apr 2008
    Location
    CARDIFFFF!
    Posts
    250
    Tokens
    0

    Default

    Quote Originally Posted by iUnknown View Post
    Good Could a moderator maybe move this to the web designing tutorials section?

    Anyway, hope it helps.
    Takes more than 2-3 "goods" to get it moved.

    But, nicee.

  9. #9
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Useful TUT guy, most people dont know all the subaction rubbish that cutenews do
    Coming and going...
    Highers are getting the better of me

  10. #10
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Quote Originally Posted by Movieen View Post
    Takes more than 2-3 "goods" to get it moved.

    But, nicee.
    Oh right. Didn't know.

    Thanks Movieen & craig
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


Page 1 of 2 12 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
  •