SimplePortal

Customization => Blocks and Modifications => Block Requests => Topic started by: valanar on January 18, 2009, 02:31:05 PM

Title: Referral button with code select box
Post 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


Title: Re: Referral button with code select box
Post by: [SiNaN] on February 02, 2009, 07:46:05 AM
In a PHP block you can use:

Code: [Select]
global $scripturl, $user_info;
echo $scripturl, '?referredby=', $user_info['id'];
SimplePortal 2.3.8 © 2008-2024, SimplePortal