![]() |
how to create a referral link
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 |
$userinfo[userid] should to work. If that doesn't try $user[userid]... but I think it's the former.
|
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> |
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. |
> 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 |
All times are GMT. The time now is 10:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|