[revcms] what is the code to redirect to the latest news?

Status
Not open for further replies.

sim0n

Member
Feb 16, 2013
227
15
When I go to url/news it looks like this:
2rz5nvt.png


So I want it to redirect to the latest NEWS instead of this crap.
 

sim0n

Member
Feb 16, 2013
227
15
What do you mean?
Do you mean on me page when it says read more?

Post the me.php here
If you go to the website, then navigate to community > news this is how it looks. Normally it should redirect you to the latest news that has been published. So this is not on the /me page. It's on the actual /news page. If you click read more news on the /me page you also get redirected to this page. I am sorry for the misunderstanding
 

sim0n

Member
Feb 16, 2013
227
15
Has nothing to do with the me.php page, but with the news.php page. So post that one here.

Code:
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>{hotelName}: Nyheter</title>
       
        <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/common.css" type="text/css">
                <link rel="shortcut icon" href="{url}/app/tpl/skins/{skin}/images/favicon.ico"
        type="image/vnd.microsoft.icon" />
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs2.js"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/visual.js"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs.js"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/common.js"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/fullcontent.js"></script>
       
        <script type="text/javascript">
            document.habboLoggedIn = true;
            var habboName = "{username}";
            var habboId = {userid};
            var habboReqPath = "";
            var habboStaticFilePath = "{url}/app/tpl/skins/Habbo";
            var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
            var habboPartner = "";
            var habboDefaultClientPopupUrl = "{url}/client";
            window.name = "habboMain";
            if (typeof HabboClient != "undefined") {
                HabboClient.windowName = "eac955c8dbc88172421193892a3e98fc7402021a";
                HabboClient.maximizeWindow = true;
            }
        </script>
       
        <!--[if IE 8]>
            <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie8.css" type="text/css">
        <![endif]-->
        <!--[if lt IE 8]>
            <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie.css" type="text/css" />
        <![endif]-->
        <!--[if lt IE 7]>
            <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie6.css" type="text/css" />
            <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/pngfix.js"></script>
            <script type="text/javascript">
                try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
            </script>
            <style type="text/css">
                body { behavior: url({url}/app/tpl/skins/Habbo/js/csshover.htc); }
            </style>
        <![endif]-->
    </head>
   
    <body id="news">
   
        <div id="overlay"></div>
        <div id="header-container">
            <div id="header" class="clearfix">
                <h1><a href="{url}/"></a></h1>
                <div id="subnavi">
                    <div id="subnavi-user">
                        <div style="margin-top:7px">Har du någonting kul att berätta? Skicka in ett mail till: </div>
                    </div>
                    <div id="subnavi-search">
                        <div id="subnavi-search-upper">
                            <ul id="subnavi-search-links">
                                <li><a href="{url}/logout" style="color:#000">Checka ut</a></li>
                            </ul>
                        </div>
                    </div>
                    <div id="to-hotel">
                        <a href="{url}/api.php" class="new-button green-button" target="eac955c8dbc88172421193892a3e98fc7402021a" onclick="HabboClient.openOrFocus(this); return false;"><b>Checka in på {hotelName} Hotel</b><i></i></a>
                    </div>
                </div>
                <ul id="navi">
                    <li class="metab"><a href="{url}/me">{username}</a><span></span></li>
                    <li class="selected"><strong>Community</strong><span></span></li>
                    <li  class=""><a href="{url}/sakerhetstips">Säkerhet</a><span></span></li>
                </ul>
                <div id="habbos-online"><div class="rounded"><span>{online} spelare online</span></div></div>
            </div>
        </div>
        <div id="content-container">
            <div id="navi2-container" class="pngbg">
                <div id="navi2" class="pngbg clearfix">
                    <ul>
                        <li class=""><a href="{url}/community">Community</a></li>
                        <li class="selected">Nyheter</li>
                        <li class=" last"><a href="{url}/staff">Personal</a></li>
                    </ul>
                </div>
            </div>
            <div id="container">
                <div id="content" style="position: relative" class="clearfix">
                    <div id="column1" class="column">
                        <div class="habblet-container ">       
                            <div class="cbb clearfix default ">
                                <h2 class="title">Nyheter</h2>
                                <div id="article-archive">
                                    <ul>
                                        {newsList}
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
                    </div>
                    <div id="column2" class="column">
                        <div class="habblet-container ">       
                            <div class="cbb clearfix notitle ">
                                <div id="article-wrapper">
                                    <h2>{newsTitle}</h2>
                                    <div class="article-meta">Publicerad {newsDate}</div>
                                    <div class="article-body">
                                        {newsContent}
                                        <br><br>
                                        <p><font face="Verdana" size="1"><b>- {newsAuthor}</b></p>
                                        <script type="text/javascript" language="Javascript">
                                            document.observe("dom:loaded", function() {
                                                $$('.article-images a').each(function(a) {
                                                    Event.observe(a, 'click', function(e) {
                                                        Event.stop(e);
                                                        Overlay.lightbox(a.href, "Image is loading");
                                                    });
                                                });
                                               
                                                $$('a.article-2729').each(function(a) {
                                                    a.replace(a.innerHTML);
                                                });
                                            });
                                        </script>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
        <script type="text/javascript">
            HabboView.run();
        </script>
 
        <!--[if lt IE 7]>
            <script type="text/javascript">
                Pngfix.doPngImageFix();
            </script>
        <![endif]-->
    </body>
</html>
 

Queef

Some people...
Jul 27, 2012
645
289
On your /me page where it says read more under the news box copy that url and put it on the community page as the link to the news page or where ever else you have that tab located.
 

sim0n

Member
Feb 16, 2013
227
15
On your /me page where it says read more under the news box copy that url and put it on the community page as the link to the news page or where ever else you have that tab located.
Then I am going to have to change the link everytime I post a new article. wooh how fun
 

sim0n

Member
Feb 16, 2013
227
15
No, the read more button should redirect to either the latest or newest article so you shouldnt have to.
Oh my god you just realised the error im getting? ITS NOT REDIRECTING TO TEH LATEST NEWS ITS REDIRECTING TO TEH SCREEN I POSTED.
 

Queef

Some people...
Jul 27, 2012
645
289
O, nvm, the Read More button doesnt link to what i thought it would of, haven't used a default habbo theme in a long time. No need to get arsey about it, just trying to help.
 

sim0n

Member
Feb 16, 2013
227
15
O, nvm, the Read More button doesnt link to what i thought it would of, haven't used a default habbo theme in a long time. No need to get arsey about it, just trying to help.
If you want to help, start with the first thing i wrote..
 
Status
Not open for further replies.

Users who are viewing this thread

Top