How to add RevCMS parameters.

shaheemz

Member
Feb 4, 2012
30
5
Revms
This is an super easy tutorial.
If you want to add {params}, use this tutorial.

I will use vip_points as an example.

Step 1:
Go to your revcms folder and open the app folder.
Click and open class.template.php

Step 2:
Now look for...
Code:
if($users->isLogged())
{
You need to put it below that code so people will only see this if they are logged in.

Paste this code under the code above.
Code:
$this->setParams('NAMEHERE', $users->getInfo($_SESSION['user']['id'], 'vip_points'));
You can also edit 'vip_points' to 'respect' , 'rank' , 'volume' etc. But no dates like account_created. Will explain that below.

Don't forget to edit NAMEHERE to the name of your currency.

Now save it

Step 3:
Go to the page where you want to run this code. And use {NAMEHERE} or whatever you have changed NAMEHERE to.

It will work if you're doing this right.

Add dates, example 'account_created':
Code:
$this->setParams('NAMEHERE', date('M j, Y H:i:s A', $users->getInfo($_SESSION['user']['id'], 'account_created')));



Sorry for my bad english.
 

Users who are viewing this thread

Top