SimplePortal
Customization => Blocks and Modifications => Block Requests => Topic started by: valanar on January 18, 2009, 02:31:05 PM
-
Hi all, I am looking for a snippet that would echo the users referal code into a code box.
Link format for referal code:
$scripturl . '?referredby=' . $user_info['id']
Anyone free for this quick php snippet?
Just entering that does not display the usernumber
-
In a PHP block you can use:
global $scripturl, $user_info;
echo $scripturl, '?referredby=', $user_info['id'];