[RevCMS] Adding to the config.php file

ShoeBox

New Member
Jun 5, 2011
6
0
Hey, I have the Habbo theme for RevCMS and I wanted to make a system thing where if something in the config(store_online) is false, when you click on the store tab it'll take you to an error page. But if it is true, it will take you to the store. From my point of view, it looks like it should work. But it just redirects me to me.php. I was thinking I can't just add something in the config file, and I have to define the variables somewhere? Anyway, here are some code snippets:

class.template.php
PHP:
$this->setParams('store_online', $_CONFIG['hotel']['store_online']);
 
 
 
if($_GET['store_online'] == true)
{
    $this->setParams('store', '<li><a href="http://clownhotel.com/vip">Store</a><span></span></li>');
}
else
{
    $this->setParams('store', '<li><a href="http://clownhotel.com/vip_unavailable">Store</a><span></span></li>');
}

config.php
PHP:
$_CONFIG['hotel']['store_online'] = true; //False if the store is offline. True if it is online.

I also put {store} in every page right above {housekeeping}. Do I need to define anything anywhere else?
 

Users who are viewing this thread

Top