Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Custom RevCMS Theme

Status
Not open for further replies.
Experienced Elementalist
Joined
Sep 19, 2011
Messages
240
Reaction score
35
You should give us screenshots of what we are actually seeing. Your CMS on demo has news comments and a bunch other scripts what does this have? You said you removed some stuff?
 
Junior Spellweaver
Joined
Feb 27, 2011
Messages
158
Reaction score
78
You should give us screenshots of what we are actually seeing. Your CMS on demo has news comments and a bunch other scripts what does this have? You said you removed some stuff?

All that's missing from this release is the news comments, although I had a script at the top of my me page which was unused after I removed it .
 
Elite Diviner
Joined
Nov 25, 2012
Messages
494
Reaction score
44
Have i done something wrong?? :
 
Experienced Elementalist
Joined
Jun 3, 2012
Messages
224
Reaction score
55
Have i done something wrong?? :

Replace the index.php in htdocs/wwwroot with
Code:
<?php 
define('IN_INDEX', 1);

require_once 'global.php';
$core->handleCall($engine->secure($_GET['url']));
	$template->html->get($engine->secure($_GET['url']));
$template->outputTPL();
?>
 
Elite Diviner
Joined
Nov 25, 2012
Messages
494
Reaction score
44
Replace the index.php in htdocs/wwwroot with
Code:
<?php 
define('IN_INDEX', 1);

require_once 'global.php';
$core->handleCall($engine->secure($_GET['url']));
	$template->html->get($engine->secure($_GET['url']));
$template->outputTPL();
?>

Thanks :thumbup:

j4cko you want to include you're class.template.php also?

Now i get this error:

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\app\tpl\skins\Habbo\me.php on line 263
 
Junior Spellweaver
Joined
Feb 27, 2011
Messages
158
Reaction score
78
Thanks :thumbup:

j4cko you want to include you're class.template.php also?

Now i get this error:

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\app\tpl\skins\Habbo\me.php on line 263

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('bolts', $users->getInfo($_SESSION['user']['id'] ,'vip_points'));
			$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('refferal', $users->getInfo($_SESSION['user']['id'], 'ref'));
			
			$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/">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);
	}
}
?>
 
Elite Diviner
Joined
Nov 25, 2012
Messages
494
Reaction score
44
You got the rewrite rule for home to view other users to?
 
Junior Spellweaver
Joined
Feb 27, 2011
Messages
158
Reaction score
78
You got the rewrite rule for home to view other users to?

Code:
<rule name="Imported Rule 6" stopProcessing="true">
                    <match url="^home/(.*)/?$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=home&user={R:1}" appendQueryString="true" />
                </rule>
Here you go
 
Initiate Mage
Joined
Dec 22, 2012
Messages
1
Reaction score
0
Where can I edit my things so this: password and url etc?sorry i am dutch xx
 
Newbie Spellweaver
Joined
Jan 14, 2013
Messages
8
Reaction score
0
Hey, Jack - great release man, much appreciated.

I have a few problems and questions:
- Is the home page suppose to be functional? The page works for me, however, you can't edit anything (Add images, post, etc) - I saw on Lime that it wasn't working for you as well, not sure if it's suppose to work?
- Can I have the rules for the other pages (Webconfig) such as ; Packages, Badge Store, Super VIP and Trusted Dealers. I'm also missing the rules for the news.

Or could you simply paste your whole webconfig? Would be easier.

Thanks a lot man if you could post the webconfig rules for those pages I'd be more than happy! Btw, do you still have your old CMS? The haddoCMS one? If you do, do you release it to anyone?
 
Last edited:
Junior Spellweaver
Joined
Feb 27, 2011
Messages
158
Reaction score
78
Hey, Jack - great release man, much appreciated.

I have a few problems and questions:
- Is the home page suppose to be functional? The page works for me, however, you can't edit anything (Add images, post, etc) - I saw on Lime that it wasn't working for you as well, not sure if it's suppose to work?
- Can I have the rules for the other pages (Webconfig) such as ; Packages, Badge Store, Super VIP and Trusted Dealers. I'm also missing the rules for the news.

Or could you simply paste your whole webconfig? Would be easier.

Thanks a lot man if you could post the webconfig rules for those pages I'd be more than happy! Btw, do you still have your old CMS? The haddoCMS one? If you do, do you release it to anyone?

Hey there. Thanks for the positive feedback, here you go.
Code:
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Imported Rule 1">
                    <match url="^(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 2">
                    <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
                </rule>
<rule name="Imported Rule zz">
                    <match url="^ase/(.*)/?$" ignoreCase="false" />
                    <action type="Rewrite" url="/ase/index.php?url={R:1}" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 3">
                    <match url="^(.*)\.htm$" />
                    <action type="Rewrite" url="{R:1}.php" />
                </rule>
                <rule name="Imported Rule 4">
                    <match url="^(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="dash.php?page={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 5">
                    <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="dash.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 6" stopProcessing="true">
                    <match url="^home/(.*)/?$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=home&user={R:1}" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 11" stopProcessing="true">
                    <match url="^news/(.*)/?$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=news&id={R:1}" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 7" stopProcessing="true">
                    <match url="^ref/(.*)/?$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=register&refer={R:1}" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 8">
                    <match url="store/packages(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=packages" />
                </rule>
                <rule name="Imported Rule 9">
                    <match url="store/badge(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=badge" />
                </rule>
                <rule name="Imported Rule 10">
                    <match url="store/super(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=super" />
                </rule>
            </rules>
        </rewrite>
 
Newbie Spellweaver
Joined
Jan 1, 2013
Messages
39
Reaction score
3
I wish you could put in the code for home/(name) to work. I just edited it so people could still see the homes of users; index.php?url=home&user=(username)
 
Junior Spellweaver
Joined
Feb 27, 2011
Messages
158
Reaction score
78
I wish you could put in the code for home/(name) to work. I just edited it so people could still see the homes of users; index.php?url=home&user=(username)
Code:
<rule name="Imported Rule 6" stopProcessing="true">
                    <match url="^home/(.*)/?$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url=home&user={R:1}" appendQueryString="true" />
                </rule>
Here you go.
 
Status
Not open for further replies.
Back
Top