View Full Version : how to create a referral link
Sketch
07-11-2002, 02:08 AM
all the threads I have found have so far proved useless to me. :( I know there's a variable that shows http://www.mydomain.com?ref=32132131
Basically, I need to put a referral link in each users profile like at SitePoint Forums.
$post[userid] doesn't seem to work.
Any help appreciated.
Sketch
Admin
07-11-2002, 06:08 AM
$userinfo[userid] should to work. If that doesn't try $user[userid]... but I think it's the former.
Sketch
07-11-2002, 10:05 AM
Here are the contents of the post:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$userinfo[userid] should to work. If that doesn't try $user[userid]...
but I think it's the former.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You'd think.... I have tried both with no luck. This is the code bit
that I'm putting in the forumhome template.
<tr>
<td bgcolor="{secondaltcolor}" align="center" valign="top"
width="100"> </td>
<td bgcolor="{firstaltcolor}" colspan="5">
<smallfont>
$userinfo[userid](watch this spot for info on referring your
friends)
</smallfont>
</td>
</tr>
Admin
07-11-2002, 10:50 AM
In the forumhome template? You said you want it in the profile...
For the user that is viewing the page $bbuserinfo[userid] is the ID.
Sketch
07-11-2002, 10:57 AM
> Here are the contents of the post:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In the forumhome template? You said you want it in the profile...
>
> For the user that is viewing the page $bbuserinfo[userid] is the ID.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:p I changed my mind. I decided to add on to a hack I have on the front page
and I guess I automatically assumed it would be the same variable. Sorry.
That works beautifully. Thanks.
Sketch
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.