Custom RevCMS Theme

Status
Not open for further replies.

Blasteh

big tits
Apr 3, 2013
1,157
522
Swap your web.config with this:

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&amp;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&amp;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&amp;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>
I Later found out its myurl/stafflogin

But the thing is it comes up

:S Fix?
 

lose123

Member
Dec 8, 2011
122
12
Simple Fixes ...

Pages no loading - Check the CSS Files are all included at the top of the file, for example {url}/app/tpl/{skin}/styles/common.css (There's about 10-12 CCS files all using different pages.)
When I say check them I mean every page, as some could link to other themes so therefore wont load if you DO NOT have the other theme.

Pages loads but not 100% - Once again, use the above. However check your config files to ensure you have set the right Theme.
Find
PHP:
$_CONFIG['template']['style'] = 'Insert Theme Name Here';

Adding Diamonds (VIP_Points) - I seen someone on page 2 asking about this, some CMS might not have these inserted so here is a small code you can add.
  • Open the following file - {url}/app/class.template.php.
  • Next you want to look for something like
    Code:
    $this->setParams('coins', $users->getInfo($_SESSION['user']['id'] ,'credits'));
  • Just simple copy that code underneath it and change the 'credits' to 'vip_points' and where it says 'coins' change that to 'shells' or what ever you wish to call your VIP_Points. Them where you want them to be displayed on your CMS simple do {shells} or what you've called your 'shells' area.
Hope this helps some of you guys.
 

Wouto

Posting Freak
FindRetros Moderator
May 31, 2011
750
305
Simple Fixes ...

Pages no loading - Check the CSS Files are all included at the top of the file, for example {url}/app/tpl/{skin}/styles/common.css (There's about 10-12 CCS files all using different pages.)
When I say check them I mean every page, as some could link to other themes so therefore wont load if you DO NOT have the other theme.

Pages loads but not 100% - Once again, use the above. However check your config files to ensure you have set the right Theme.
Find
PHP:
$_CONFIG['template']['style'] = 'Insert Theme Name Here';

Adding Diamonds (VIP_Points) - I seen someone on page 2 asking about this, some CMS might not have these inserted so here is a small code you can add.
  • Open the following file - {url}/app/class.template.php.
  • Next you want to look for something like
    Code:
    $this->setParams('coins', $users->getInfo($_SESSION['user']['id'] ,'credits'));
  • Just simple copy that code underneath it and change the 'credits' to 'vip_points' and where it says 'coins' change that to 'shells' or what ever you wish to call your VIP_Points. Them where you want them to be displayed on your CMS simple do {shells} or what you've called your 'shells' area.
Hope this helps some of you guys.


Thanks :)
 

lose123

Member
Dec 8, 2011
122
12
I'm not expert but as I go along I learn new things from the coding I see as i'm only an Edit coder, but anyway, glad that small patch could help.
 

Bleep

PHP - HTML - CSS - JAVA ✔
Oct 19, 2012
266
46
my client does this
errordvz.png

I've also bumped into this problem, I've never faced this problem before. Can anyone help?
 
Status
Not open for further replies.

Users who are viewing this thread

Top