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
RevCMS News Error {newsTitle-1}! HELP?!
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="minthotel" data-source="post: 383363" data-attributes="member: 17284"><p>Hello, I recently set up my R63B RevCMS server and Im running into some issues with it, everything works fine but the Housekeeping and the "stafflogin" which I can deal with later, I was hoping to do the old run around and use the database to create news articles "Considering its a quick fix till I get around to it" and its not seeming to work, I've provided everything you'll need to know about my database below with pictures and I hope this helps. Please if someone could provide me with a fix to this issue that would be great.</p><p>NOTE:</p><p><strong>I am using the Habbo-Custom Theme, And this issue is happening on other themes as well.</strong></p><p>Main Problem (Not Showing)</p><p><img src="http://image.prntscr.com/image/7a3abb99f616474ebfb4876dcb436bfa.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>My site_news</p><p><img src="http://image.prntscr.com/image/a9ecd8e4fdf6418192fb0726df40b262.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>results when clicking on a title that isn't there</p><p><img src="http://image.prntscr.com/image/42f222e5e9e04c69ab97e38ede22e457.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>Finally my cms_news</p><p><img src="http://image.prntscr.com/image/dc03652af760476e897de1b96283eb31.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>Here is a snippet which is from the "/me.php" page that includes news.</p><p>[SPOILER="/me.php code"][CODE] <div id="topstories"></p><p> <div class="topstory" style="background-image: url({url}/r63/c_images/Top_Story_Images/{newsIMG-1})"></p><p> <h4>Hotest News</h4></p><p> <h3><a href="{url}/index.php?url=news&id={newsID-1}">{newsTitle-1}</a></h3></p><p> <p class="summary"></p><p> {newsCaption-1}</p><p> </p></p><p> <p></p><p> <a href="{url}/index.php?url=news&id={newsID-1}">Read more &raquo;</a></p><p> </p></p><p> </div></p><p> <div class="topstory" style="background-image: url({url}/r63/c_images/Top_Story_Images/{newsIMG-2}); display: none"></p><p> <h4>Latest news</h4></p><p> <h3><a href="{url}/index.php?url=news&id={newsID-2}">{newsTitle-2}</a></h3></p><p> <p class="summary"></p><p> {newsCaption-2}</p><p> </p></p><p> <p></p><p> <a href="{url}/index.php?url=news&id={newsID-2}">Read more &raquo;</a></p><p> </p></p><p> </div></p><p> <div class="topstory" style="background-image: url({url}/r63/c_images/Top_Story_Images/{newsIMG-3}); display: none"></p><p> <h4>Latest news</h4></p><p> <h3><a href="{url}/index.php?url=news&id={newsID-3}">{newsTitle-3}</a></h3></p><p> <p class="summary"></p><p> {newsCaption-3}</p><p> </p></p><p> <p></p><p> <a href="{url}/index.php?url=news&id={newsID-3}">Read more &raquo;</a></p><p> </p></p><p> </div></p><p> <div class="topstory" style="background-image: url({url}/r63/c_images/Top_Story_Images/{newsIMG-4}); display: none"></p><p> <h4>Latest news</h4></p><p> <h3><a href="{url}/index.php?url=news&id={newsID-4}">{newsTitle-4}</a></h3></p><p> <p class="summary"></p><p> {newsCaption-4}</p><p> </p></p><p> <p></p><p> <a href="{url}/index.php?url=news&id={newsID-4}">Read more &raquo;</a></p><p> </p></p><p> </div></p><p> <div class="topstory" style="background-image: url({url}/r63/c_images/Top_Story_Images/{newsIMG-5}); display: none"></p><p> <h4>Latest news</h4></p><p> <h3><a href="{url}/index.php?url=news&id={newsID-5}">{newsTitle-5}</a></h3></p><p> <p class="summary"></p><p> {newsCaption-5}</p><p> </p></p><p> <p></p><p> <a href="{url}/index.php?url=news&id={newsID-5}">Read more &raquo;</a></p><p> </p></p><p> </div></p><p> <div id="topstories-nav" style="display: none"><a href="#" class="prev">&laquo; Previous</a><span>1</span> / 5<a href="#" class="next">Next &raquo;</a></div></p><p> </div></p><p> <ul class="widelist"></p><p> <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> </p><p> <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></p><p> <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></p><p> </p><p> <li class="last"><a href="/news">More news &raquo;</a></li>[/CODE][/SPOILER]</p><p>Also here is a snippet of my news.php page</p><p>[SPOILER="news.php page"][CODE] <div id="container"></p><p> <div id="content" style="position: relative" class="clearfix"></p><p> <div id="column1" class="column"></p><p> <div class="habblet-container "> </p><p> <div class="cbb clearfix default "></p><p> <h2 class="title">News</h2></p><p> <div id="article-archive"></p><p> <ul></p><p> {newsList}</p><p> </p><p> </ul></p><p> </div></p><p> </div></p><p> </div></p><p> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script></p><p> </div></p><p> <div id="column2" class="column"></p><p> <div class="habblet-container "> </p><p> <div class="cbb clearfix notitle "></p><p> <div id="article-wrapper"></p><p> <h2>{newsTitle}</h2></p><p> <div class="article-meta">Posted {newsDate}</div></p><p> </p><p> <div class="article-body"></p><p> {newsContent}</p><p> <br><br></p><p> <p><font face="Verdana" size="1"><b>- {newsAuthor}</b></p></p><p> <script type="text/javascript" language="Javascript"></p><p> document.observe("dom:loaded", function() {</p><p> $$('.article-images a').each(function(a) {</p><p> Event.observe(a, 'click', function(e) {</p><p> Event.stop(e);</p><p> Overlay.lightbox(a.href, "Image is loading");</p><p> });</p><p> });</p><p> </p><p> $$('a.article-2729').each(function(a) {</p><p> a.replace(a.innerHTML);</p><p> });</p><p> });</p><p> </script></p><p> </div></div></p><p> </div> </div></p><p> </p><p> </div> </div></p><p> </div></p><p> </div></p><p>[/CODE][/SPOILER]</p><p></p><p>Could you find the problem and potentially help me fix this issue?</p><p>Here is my class.template.php also</p><p>[SPOILER="class.template"][CODE]<?php</p><p></p><p>namespace Revolution;</p><p>if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }</p><p>class template implements iTemplate</p><p>{</p><p></p><p> public $tpl;</p><p> </p><p> private $params = array();</p><p></p><p> final public function Initiate()</p><p> {</p><p> global $_CONFIG, $users, $engine, $core, $template;</p><p> $this->setParams('hotelName', $_CONFIG['hotel']['name']);</p><p> $this->setParams('hotelDesc', $_CONFIG['hotel']['desc']);</p><p> $this->setParams('url', $_CONFIG['hotel']['url']);</p><p> $this->setParams('online', $core->getOnline());</p><p> $this->setParams('status', $core->getStatus());</p><p> $this->setParams('web_build', $_CONFIG['hotel']['web_build']);</p><p> $this->setParams('external_vars', $_CONFIG['hotel']['external_vars']);</p><p> $this->setParams('external_texts', $_CONFIG['hotel']['external_texts']);</p><p> $this->setParams('swf_folder', $_CONFIG['hotel']['swf_folder']);</p><p> $this->setParams('furni_data', $_CONFIG['hotel']['furni_data']);</p><p> $this->SetParams('product_data', $_CONFIG['hotel']['product_data']);</p><p> $this->setParams('server_ip', $_CONFIG['hotel']['server_ip']);</p><p> </p><p> $this->setParams('mysql_host', $_CONFIG['mysql']['hostname']);</p><p> $this->setParams('mysql_port', $_CONFIG['mysql']['port']);</p><p> </p><p> $this->setParams('skin', $_CONFIG['template']['style']);</p><p> </p><p> if($users->isLogged())</p><p> { </p><p> $this->setParams('username', $users->getInfo($_SESSION['user']['id'], 'username'));</p><p> $this->setParams('rank', $users->getInfo($_SESSION['user']['id'], 'rank'));</p><p> $this->setParams('motto', $users->getInfo($_SESSION['user']['id'], 'motto'));</p><p> $this->setParams('email', $users->getInfo($_SESSION['user']['id'], 'mail'));</p><p> $this->setParams('coins', $users->getInfo($_SESSION['user']['id'] ,'credits'));</p><p> $this->setParams('activitypoints', $users->getInfo($_SESSION['user']['id'], 'activity_points'));</p><p> $this->setParams('figure', $users->getInfo($_SESSION['user']['id'], 'look'));</p><p> $this->setParams('ip_last', $users->getInfo($_SESSION['user']['id'], 'ip_last'));</p><p> </p><p> if($this->params['rank'] > 3)</p><p> {</p><p> $this->setParams('housekeeping', '<li><a href="ase/index.php?url=login">Housekeeping</a></li>');</p><p> }</p><p> else</p><p> {</p><p> $this->setParams('housekeeping', '');</p><p> }</p><p> </p><p> if($_GET['url'] == 'me' || $_GET['url'] == 'account' || $_GET['url'] == 'home' || $_GET['url'] == 'settings' || $_GET['url'] == 'community')</p><p> {</p><p> $template->form->getPageHome(); </p><p> }</p><p> </p><p> if($_GET['url'] == 'news' || $_GET['url'] == 'articles')</p><p> {</p><p> $template->form->getPageNews();</p><p> } </p><p> }</p><p> </p><p> }</p><p> </p><p> final public function setParams($key, $value)</p><p> { </p><p> $this->params[$key] .= $value;</p><p> }</p><p> </p><p> final public function filterParams($str)</p><p> {</p><p> foreach($this->params as $key => $value)</p><p> {</p><p> $str = str_ireplace('{' . $key . '}', $value, $str);</p><p> }</p><p></p><p> return $str;</p><p> }</p><p> </p><p> final public function write($str)</p><p> {</p><p> $this->tpl .= $str;</p><p> }</p><p> </p><p> final public function outputTPL()</p><p> {</p><p> echo $this->filterParams($this->tpl);</p><p> unset($this->tpl);</p><p> }</p><p>}</p><p>?>[/CODE][/SPOILER]</p><p>[doublepost=1472625264,1472625107][/doublepost]If you need any addition information let me know I'll try to provide some.</p></blockquote><p></p>
[QUOTE="minthotel, post: 383363, member: 17284"] Hello, I recently set up my R63B RevCMS server and Im running into some issues with it, everything works fine but the Housekeeping and the "stafflogin" which I can deal with later, I was hoping to do the old run around and use the database to create news articles "Considering its a quick fix till I get around to it" and its not seeming to work, I've provided everything you'll need to know about my database below with pictures and I hope this helps. Please if someone could provide me with a fix to this issue that would be great. NOTE: [B]I am using the Habbo-Custom Theme, And this issue is happening on other themes as well.[/B] Main Problem (Not Showing) [IMG]http://image.prntscr.com/image/7a3abb99f616474ebfb4876dcb436bfa.png[/IMG] My site_news [IMG]http://image.prntscr.com/image/a9ecd8e4fdf6418192fb0726df40b262.png[/IMG] results when clicking on a title that isn't there [IMG]http://image.prntscr.com/image/42f222e5e9e04c69ab97e38ede22e457.png[/IMG] Finally my cms_news [IMG]http://image.prntscr.com/image/dc03652af760476e897de1b96283eb31.png[/IMG] Here is a snippet which is from the "/me.php" page that includes news. [SPOILER="/me.php code"][CODE] <div id="topstories"> <div class="topstory" style="background-image: url({url}/r63/c_images/Top_Story_Images/{newsIMG-1})"> <h4>Hotest 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 »</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 »</a> </p> </div> <div class="topstory" style="background-image: url({url}/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 »</a> </p> </div> <div class="topstory" style="background-image: url({url}/r63/c_images/Top_Story_Images/{newsIMG-4}); display: none"> <h4>Latest news</h4> <h3><a href="{url}/index.php?url=news&id={newsID-4}">{newsTitle-4}</a></h3> <p class="summary"> {newsCaption-4} </p> <p> <a href="{url}/index.php?url=news&id={newsID-4}">Read more »</a> </p> </div> <div class="topstory" style="background-image: url({url}/r63/c_images/Top_Story_Images/{newsIMG-5}); display: none"> <h4>Latest news</h4> <h3><a href="{url}/index.php?url=news&id={newsID-5}">{newsTitle-5}</a></h3> <p class="summary"> {newsCaption-5} </p> <p> <a href="{url}/index.php?url=news&id={newsID-5}">Read more »</a> </p> </div> <div id="topstories-nav" style="display: none"><a href="#" class="prev">« Previous</a><span>1</span> / 5<a href="#" class="next">Next »</a></div> </div> <ul class="widelist"> <li class="even"><a href="{url}/index.php?url=news&id={newsID-1}">{newsTitle-1} »</a><div class="newsitem-date">{newsDate-1}</div></li> <li class="odd"><a href="{url}/index.php?url=news&id={newsID-2}">{newsTitle-2} »</a><div class="newsitem-date">{newsDate-2}</div></li> <li class="odd"><a href="{url}/index.php?url=news&id={newsID-3}">{newsTitle-3} »</a><div class="newsitem-date">{newsDate-3}</div></li> <li class="last"><a href="/news">More news »</a></li>[/CODE][/SPOILER] Also here is a snippet of my news.php page [SPOILER="news.php page"][CODE] <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">News</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">Posted {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> </div> </div> </div> </div> [/CODE][/SPOILER] Could you find the problem and potentially help me fix this issue? Here is my class.template.php also [SPOILER="class.template"][CODE]<?php namespace Revolution; if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); } class template implements iTemplate { public $tpl; private $params = array(); final public function Initiate() { global $_CONFIG, $users, $engine, $core, $template; $this->setParams('hotelName', $_CONFIG['hotel']['name']); $this->setParams('hotelDesc', $_CONFIG['hotel']['desc']); $this->setParams('url', $_CONFIG['hotel']['url']); $this->setParams('online', $core->getOnline()); $this->setParams('status', $core->getStatus()); $this->setParams('web_build', $_CONFIG['hotel']['web_build']); $this->setParams('external_vars', $_CONFIG['hotel']['external_vars']); $this->setParams('external_texts', $_CONFIG['hotel']['external_texts']); $this->setParams('swf_folder', $_CONFIG['hotel']['swf_folder']); $this->setParams('furni_data', $_CONFIG['hotel']['furni_data']); $this->SetParams('product_data', $_CONFIG['hotel']['product_data']); $this->setParams('server_ip', $_CONFIG['hotel']['server_ip']); $this->setParams('mysql_host', $_CONFIG['mysql']['hostname']); $this->setParams('mysql_port', $_CONFIG['mysql']['port']); $this->setParams('skin', $_CONFIG['template']['style']); if($users->isLogged()) { $this->setParams('username', $users->getInfo($_SESSION['user']['id'], 'username')); $this->setParams('rank', $users->getInfo($_SESSION['user']['id'], 'rank')); $this->setParams('motto', $users->getInfo($_SESSION['user']['id'], 'motto')); $this->setParams('email', $users->getInfo($_SESSION['user']['id'], 'mail')); $this->setParams('coins', $users->getInfo($_SESSION['user']['id'] ,'credits')); $this->setParams('activitypoints', $users->getInfo($_SESSION['user']['id'], 'activity_points')); $this->setParams('figure', $users->getInfo($_SESSION['user']['id'], 'look')); $this->setParams('ip_last', $users->getInfo($_SESSION['user']['id'], 'ip_last')); if($this->params['rank'] > 3) { $this->setParams('housekeeping', '<li><a href="ase/index.php?url=login">Housekeeping</a></li>'); } else { $this->setParams('housekeeping', ''); } if($_GET['url'] == 'me' || $_GET['url'] == 'account' || $_GET['url'] == 'home' || $_GET['url'] == 'settings' || $_GET['url'] == 'community') { $template->form->getPageHome(); } if($_GET['url'] == 'news' || $_GET['url'] == 'articles') { $template->form->getPageNews(); } } } final public function setParams($key, $value) { $this->params[$key] .= $value; } final public function filterParams($str) { foreach($this->params as $key => $value) { $str = str_ireplace('{' . $key . '}', $value, $str); } return $str; } final public function write($str) { $this->tpl .= $str; } final public function outputTPL() { echo $this->filterParams($this->tpl); unset($this->tpl); } } ?>[/CODE][/SPOILER] [doublepost=1472625264,1472625107][/doublepost]If you need any addition information let me know I'll try to provide some. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
RevCMS News Error {newsTitle-1}! HELP?!
Top