To set it up follow this.
run this SQL first
Code:
ALTER TABLE `users` ADD `ref` VARCHAR( 255 ) NOT NULL
open class.template.php in /app/
search for this
PHP Code:
$this->setParams('ip_last', $users->getInfo($_SESSION['user']['id'], 'ip_last'));
add this under
PHP Code...