News help

Logic

Bobby Billionaire
Feb 8, 2012
748
207
My news works perfectly fine except for one thing. Every time I post a new article, the last news top story image doesn't show. But when I post a new article, they show except for the last one.

Screenshot;
gimn8dlv

Thanks for helping in advance!

Tyler
 

Logic

Bobby Billionaire
Feb 8, 2012
748
207
PHP:
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>{hotelName} - Home</title>
        
        <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/common.css" type="text/css">
        <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>
 
 
<link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/lightweightmepage.css" type="text/css" />
 
 
<script src="{url}/app/tpl/skins/Habbo/js/lightweightmepage.js" type="text/javascript"></script>
 
<script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/941/web-gallery/static/js/moredata.js" type="text/javascript"></script>
 
 
 
<!--[if IE 8]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/941/web-gallery/static/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/941/web-gallery/static/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/941/web-gallery/static/styles/ie6.css" type="text/css" />
<script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/941/web-gallery/static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>
 
<style type="text/css">
body { behavior: url(/js/csshover.htc); }
</style>
<![endif]-->
<meta name="build" content="63-BUILD1228 - 27.03.2012 12:15 - com" />
</head>
<body id="home">
    
        <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"><b>Fact:</b> <script language="JavaScript">
 
 
var r_text = new Array ();
 
 
r_text[0] = "Telling your friends about {hotelName} will make it even more fun.";
 
 
r_text[1] = "{hotelName} Hotel strives to remain as professional as possible.";
 
 
r_text[2] = "{hotelName} Hotel will only keep on growing if you vote daily!";
 
 
r_text[3] = "Purchasing VIP helps with the monthly server costs.";
 
 
r_text[4] = "{hotelName} Hotel opened on June 12th, 2012!";
 
r_text[5] = "{hotelName} Hotel is a new and developing retro hotel!";
 
 
var i = Math.floor(5*Math.random())
 
 
 
 
 
document.write(r_text[i]);
 
 
 
 
 
</script>
</div>
                        
                    </div>
                    <div id="subnavi-search">
                        <div id="subnavi-search-upper">
                            <ul id="subnavi-search-links">
                                <li><a href="{url}/logout" style="color:#000">Sign Out</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>Enter {hotelName} Hotel</b><i></i></a>
                    </div>
                </div>
                <ul id="navi">
                    <li class="metab selected"><strong>{username} (  <img src="{url}/app/tpl/skins/Habbo/images/id.png" style="vertical-align: middle;">  )</strong><span></span></li>
                    <li><a href="{url}/community">Community</a><span></span></li>
<li><a href="{url}/shop">Shop</a><span></span></li>
<li><a href="/forum/index.php">Forums</a><span></span></li>
<?php if(mysql_result(mysql_query("SELECT rank FROM users WHERE id = '" . $_SESSION['user']['id'] . "'"), 0) >= 6)
            { ?>
                    <li id="tab-register-now" class="tab-register-now"><a href="{url}/ase/">Housekeeping</a><span></span></li>
                    <?php
                    } ?>
                </ul>
                <div id="habbos-online"><div class="rounded"><span>{online} 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="selected">Home</li>
<li class=" last"><a href="{url}/home">My Page</a></li>
                        <li class=" last"><a href="{url}/account">Account Settings</a></li>
<li class=" last"><a href="{url}/rules">Hotel Rules</a></li>
                    </ul>
                </div>
</div>
 
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<style>
div.white h2.title, h2.title a {
    color: #FFF; !important;
}
</style>
<div id="column1" style="width: 770px;" class="column">
<div class="habblet-container ">
<div class="cbb clearfix red">
<h2 class="title">Notice: Staff applications are now open. Click <a href="http://vuehotel.net/forum/showthread.php?p=15#post15" target="_blank">here</a> to apply!</h2> 
</div></div></div>
 
<div id="container">
<div id="content" style="position: relative" class="clearfix">
    <div id="wide-personal-info">
 
 
 
    <div id="habbo-plate">
 
            <a href="{url}/home">
 
            <img alt="{username}" src="http://www.habbo.com/habbo-imaging/avatarimage?figure={figure}&direction=2&head_direction=3">
 
 
        </a>
 
    </div>
 
 
 
    <div id="name-box" class="info-box">
 
        <div class="label">Name:</div>
 
        <div class="content">{username}</div>
 
    </div>
 
    <div id="motto-box" class="info-box">
 
        <div class="label">Motto:</div>
 
        <div class="content">{motto}</div>
 
    </div>
 
    <div id="last-logged-in-box" class="info-box">
 
        <div class="label">Last signed in:</div>
 
        <div class="content">{lastSignedIn}</div>
 
    </div>
 
 
 
<div class="enter-hotel-btn">
    <div class="open enter-btn">
            <a href="{url}/api.php" target="84ebd05b9eac6717671e77c01c6209a4c8e06d54" onclick="HabboClient.openOrFocus(this); return false;">Enter {hotelName}<i></i></a>
        <b></b>
    </div>
</div>
 
 
</div>
<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix blue ">
 
<div class="habblet box-content">
 
<center>
 
 
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
 
<div class="fb-like-box" data-href="https://www.facebook.com/thevuehotel" data-width="420" data-height="500" data-show-faces="true" data-stream="true" data-header="false"></div>
 
 
 
<div id="column3" class="column">
   
<div class="habblet-container ">
 
<div class="ad-container">
 
 
 
 
<br>
 
 
 
 
 
<!--JavaScript Tag // Tag for network 957: Sulake // Website: HabboHotel_US // Page: Me_Page // Placement: Me_Page partner_button 160 x 110 (2131079) // created at: Jun 17, 2010 11:20:10 AM-->
 
 
 
</div>
 
 
 
 
 
</div></div></div></div>
 
 
 
 
 
<div class="habblet-container "> 
 
<div class="cbb clearfix brown ">
 
 <h2 class="title">Advertisement</h2> </font>
 <br />
 <center>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-5240786194986259";
/* Habbo Retro */
google_ad_slot = "6441688544";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
<div id="notfound-content" class="box-content"> <center> 
 
           
</div>
                     </center></a>
</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>
                        <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
                        <div class="habblet-container news-promo">
                            <div class="cbb clearfix notitle ">
                                <div id="newspromo">
                                    <div id="topstories">
                                        <div class="topstory" style="background-image: url({url}/r63/c_images/Top_Story_Images/{newsIMG-1})">
                                            <h4>Latest news</h4>
                                            <h3><a href="{url}/index.php?url=news&id={newsID-1}">{newsTitle-1}</a></h3>
                                            <p class="summary">
                                                {newsCaption-1}
                                            </p>
                                            <p>
                                                <a href="{url}/index.php?url=news&id={newsID-1}">Read more &raquo;</a>
                                            </p>
                                        </div>
                                        <div class="topstory" style="background-image: url({url}/r63/c_images/Top_Story_Images/{newsIMG-2}); display: none">
                                            <h4>Latest news</h4>
                                            <h3><a href="{url}/index.php?url=news&id={newsID-2}">{newsTitle-2}</a></h3>
                                            <p class="summary">
                                                {newsCaption-2}
                                            </p>
                                            <p>
                                                <a href="{url}/index.php?url=news&id={newsID-2}">Read more &raquo;</a>
                                            </p>
                                        </div>
                                        <div class="topstory" style="background-image: url({url}/SWF/r63/c_images/Top_Story_Images/{newsIMG-3}); display: none">
                                            <h4>Latest news</h4>
                                            <h3><a href="{url}/index.php?url=news&id={newsID-3}">{newsTitle-3}</a></h3>
                                            <p class="summary">
                                                {newsCaption-3}
                                            </p>
                                            <p>
                                                <a href="{url}/index.php?url=news&id={newsID-3}">Read more &raquo;</a>
                                            </p>
                                        </div>
                                        <div id="topstories-nav" style="display: none"><a href="#" class="prev">&laquo; Previous</a><span>1</span> / 3<a href="#" class="next">Next &raquo;</a></div>
                                    </div>
                                    <ul class="widelist">
                                        <li class="even"><a href="{url}/index.php?url=news&id={newsID-1}">{newsTitle-1} &raquo;</a><div class="newsitem-date">{newsDate-1}</div></li>            
                                        <li class="odd"><a href="{url}/index.php?url=news&id={newsID-2}">{newsTitle-2} &raquo;</a><div class="newsitem-date">{newsDate-2}</div></li> 
<li class="odd"><a href="{url}/index.php?url=news&id={newsID-3}">{newsTitle-3} &raquo;</a><div class="newsitem-date">{newsDate-3}</div></li> 
                                        <li class="last"><a href="/news">More news &raquo;</a></li>            
                                    </ul>
                                </div>
                                <script type="text/javascript">
                                    document.observe("dom:loaded", function() { NewsPromo.init(); });
                                </script>
                            </div>
                        </div>
 
 
 
<div class="habblet-container ">                            <div class="cbb clearfix green ">                                 <h2 class="title">{hotelName}FM</h2>                                 <div style="padding:5px"> 
 
 
                                      <iframe src="http://www.tylerjames.info/radio/index.html" width="300" height="25" frameBorder="0" scrolling="no">Browser not compatible. </iframe>
<center>_________________________________________</center>
<br />
<iframe src="http://www.tylerjames.info/staff/_frontend/radio_stats.php" width="300" height="120" frameBorder="0" scrolling="no">Browser not compatible. </iframe>
<center>_________________________________________</center>
<br />
 
<iframe src="http://www.tylerjames.info/staff/_frontend/request.php" width="300" height="245" frameBorder="0" scrolling="no">Browser not compatible. </iframe>
 
 
 
                    </div>
 
 
                </div>
 
 
 
 
 
 
 
 
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
 
 
   
 
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
 
 
 
 
 
 
</div>
 
<!--[if lt IE 7]>
<script type="text/javascript">
Pngfix.doPngImageFix();
</script>
<![endif]--> 
    </div>
 
<div id="footer"><p>&copy; Copyright 2012 <a href="{url}" target="_New">{hotelName} Hotel</a>. All rights reserved.<br>
 
Powered by <a href="http://devbest.com/forums/rev.84" target="_New">RevCMS</a> by Kryptos and <a href="http://www.otaku-studios.com/" target="_blank">PhoenixEMU</a><br>{hotelName} Hotel is owned and operated by Tyler & Mel.</p>       </div>
 
    </body>
 

Deion

Posting Freak
Jul 3, 2010
1,273
300
When you scroll down towards the part where the news code is located don't you see the problem between the repeating paths? one of them are /r63/c_images/Top_Story_Images/ and the other is /SWF/r63/c_images/Top_Story_Images/.
Maybe that's the problem, you have to switch the paths so they redirect to where your top_story_images is located.
 

Logic

Bobby Billionaire
Feb 8, 2012
748
207
When you scroll down towards the part where the news code is located don't you see the problem between the repeating paths? one of them are /r63/c_images/Top_Story_Images/ and the other is /SWF/r63/c_images/Top_Story_Images/.
Maybe that's the problem, you have to switch the paths so they redirect to where your top_story_images is located.

Fixed. Thanks!
 

Users who are viewing this thread

Top