Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
UberCMS News 2.0 In Client
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Lee_01" data-source="post: 226743" data-attributes="member: 18827"><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: #000000">Go to htdocs/wwroot -> includes -> tpl and open up cproxy-news.tpl</span></span></span></p><p></p><p><span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: #000000">Then replace the whole file with this:</span></span></span></p><p></p><p>[CODE]<div class="habblet-container "> </p><p> </p><p> <div id="news-habblet-container"></p><p> </p><p> <div class="title"></p><p> </p><p> <div class="habblet-close"></div></p><p> </p><p> <div>Updates from the Zap Hotel staff!</div></p><p> </p><p> </div></p><p> </p><p> <div class="content-container"></p><p> </p><p> <div id="news-articles"></p><p> </p><p> <ul id="news-articlelist" class="articlelist" style="display: none"></p><p> </p><p> <li class='odd'></p><p> <center></p><p> <script type="text/javascript"><!--</p><p> google_ad_client = "ca-pub-6357539891383883";</p><p> /* ZapClientNews */</p><p> google_ad_slot = "1064011578";</p><p> google_ad_width = 234;</p><p> google_ad_height = 60;</p><p> //--></p><p> </script></p><p> <script type="text/javascript"</p><p> src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></p><p> </script></p><p> </center></p><p> </li></p><p> <?php</p><p> </p><p> $getNews = dbquery("SELECT * FROM site_news ORDER BY id DESC LIMIT 10");</p><p> </p><p> $oddEven = "odd";</p><p> </p><p> while ($n = mysql_fetch_assoc($getNews))</p><p> {</p><p> if ($oddEven == "odd")</p><p> {</p><p> $oddEven = "even";</p><p> }</p><p> else</p><p> {</p><p> $oddEven = "odd";</p><p> }</p><p> </p><p> echo '<li class="' . $oddEven . '"></p><p> </p><p> <div class="news-title">' . clean($n['title']) . '</div></p><p> <div class="news-summary">' . clean($n['snippet'], true, true) . '</div></p><p> <div class="newsitem-date">' . clean($n['datestr']) . '</div></p><p> </p><p> <div class="clearfix"></p><p> </p><p> <a href="' . WWW . '/articles/' . $n['id'] . '-' . $n['seo_link'] . '" target="_blank" class="article-toggle">Read on site</a></p><p> </p><p> </div></p><p> </p><p> </li>';</p><p> }</p><p> </p><p> ?></p><p> </ul></p><p> </p><p> </div></p><p> </p><p> </div></p><p> </p><p> <div class="news-footer"></div></p><p> </p><p> </div></p><p> </p><p> <script type="text/javascript"> </p><p> L10N.put("news.promo.readmore", "Read more").put("news.promo.close", "Close article");</p><p> News.init(false);</p><p> </script></p><p> </p><p></div></p><p> </p><p><!-- dependencies</p><p><link rel="stylesheet" href="%www%/web-gallery/styles/news.css" type="text/css" /></p><p><script src="%www%/web-gallery/static/js/news.js" type="text/javascript"></script></p><p>-->[/CODE]</p><p> </p><p>If you don't have <span style="font-size: 12px"><span style="font-family: 'Verdana'"><span style="color: #000000">cproxy-news.tpl make a new file for it.</span></span></span></p><p> </p><p>(Credits to Twan on a rival forum for the code. Gotta love Google <img src="/styles/default/xenforo/smilies/emojione/wink.png" class="smilie" loading="lazy" alt=";)" title="Wink ;)" data-shortname=";)" /> )</p></blockquote><p></p>
[QUOTE="Lee_01, post: 226743, member: 18827"] [SIZE=3][FONT=Verdana][COLOR=#000000]Go to htdocs/wwroot -> includes -> tpl and open up cproxy-news.tpl[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Verdana][COLOR=#000000]Then replace the whole file with this:[/COLOR][/FONT][/SIZE] [CODE]<div class="habblet-container "> <div id="news-habblet-container"> <div class="title"> <div class="habblet-close"></div> <div>Updates from the Zap Hotel staff!</div> </div> <div class="content-container"> <div id="news-articles"> <ul id="news-articlelist" class="articlelist" style="display: none"> <li class='odd'> <center> <script type="text/javascript"><!-- google_ad_client = "ca-pub-6357539891383883"; /* ZapClientNews */ google_ad_slot = "1064011578"; google_ad_width = 234; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </center> </li> <?php $getNews = dbquery("SELECT * FROM site_news ORDER BY id DESC LIMIT 10"); $oddEven = "odd"; while ($n = mysql_fetch_assoc($getNews)) { if ($oddEven == "odd") { $oddEven = "even"; } else { $oddEven = "odd"; } echo '<li class="' . $oddEven . '"> <div class="news-title">' . clean($n['title']) . '</div> <div class="news-summary">' . clean($n['snippet'], true, true) . '</div> <div class="newsitem-date">' . clean($n['datestr']) . '</div> <div class="clearfix"> <a href="' . WWW . '/articles/' . $n['id'] . '-' . $n['seo_link'] . '" target="_blank" class="article-toggle">Read on site</a> </div> </li>'; } ?> </ul> </div> </div> <div class="news-footer"></div> </div> <script type="text/javascript"> L10N.put("news.promo.readmore", "Read more").put("news.promo.close", "Close article"); News.init(false); </script> </div> <!-- dependencies <link rel="stylesheet" href="%www%/web-gallery/styles/news.css" type="text/css" /> <script src="%www%/web-gallery/static/js/news.js" type="text/javascript"></script> -->[/CODE] If you don't have [SIZE=3][FONT=Verdana][COLOR=#000000]cproxy-news.tpl make a new file for it.[/COLOR][/FONT][/SIZE] (Credits to Twan on a rival forum for the code. Gotta love Google ;) ) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
UberCMS News 2.0 In Client
Top