try /ase/index.php?url=login404.
No problemWell thanks, Lol.
You will do that in the users.template file, search for {HouseKeeping} and it's around there or just post the code and let me do it?Ok, So in the code its {HouseKeeping}
When can I change the configured url for housekeeping? Using RevCMS.
Here replace this code with your class.template file in app folderinterface.users you mean?
Cannot find that file, hope my retardedness aint coming into effect.
<?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('votecheck', $core->CheckIfVoted($_SERVER['REMOTE_ADDR']));
$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'));
$this->setParams('lastSignedIn', date('M j, Y H:i:s A', $users->getInfo($_SESSION['user']['id'], 'last_online')));
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);
}
}
?>
Here replace this code with your class.template file in app folder
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('votecheck', $core->CheckIfVoted($_SERVER['REMOTE_ADDR'])); $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')); $this->setParams('lastSignedIn', date('M j, Y H:i:s A', $users->getInfo($_SESSION['user']['id'], 'last_online'))); 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); } } ?>