The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Referrals URL anywhere?
How do I find my referrals URL without having to go into FAQ all the time, is there a way to create a page, or add it in the user cp?
Help appreciated. Thanks! |
#2
|
||||
|
||||
Sure, you can take the link and add it pretty much where you want. Here's an example that will add into your stats on the forumhome template.
in the FORUMHOME template find: Code:
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div> Code:
<br /> $vbphrase[refer_id]: <a href="$vboptions[bburl]/$vboptions[forumhome].php?referrerid=$bbuserinfo[userid]">$vboptions[bburl]/$vboptions[forumhome].php?referrerid=$bbuserinfo[userid]</a> Phrase Type: Global Varname: refer_id Text: Your Custom Referall ID is Wala, you now have the custom link on the forum page. Of course this is down and dirty but it gives you an idea |
#3
|
|||
|
|||
Very neat
How do I add this to the usercp of a member? btw, thanks for the speedy help! |
#4
|
||||
|
||||
There are a lot of ways you can do this, it's really a matter of preference. Here is a way to add it to the Edit Profile section of the usercp.
add a phrase: Phrase Type: Global Varname: refer_id Text: Your Custom Referall ID is add another phrase: Phrase Type: Global Varname: refer_id2 Text: Custom Refferal ID In your modifyprofile template find: Code:
value="$vbphrase[edit_email_and_password]" name="gotopassword" /> </td> </tr> </table> </fieldset> Code:
<!-- Custom referral ID --> <fieldset class="fieldset"> <legend>$vbphrase[refer_id2]</legend> <br /> $vbphrase[refer_id]: <br /> <a href="$vboptions[bburl]/$vboptions[forumhome].php?referrerid=$bbuserinfo[userid]">$vboptions[bburl]/$vboptions[forumhome].php?referrerid=$bbuserinfo[userid]</a> </fieldset> <br /> <!-- Custom referral ID --> |
#5
|
|||
|
|||
Excellent, thanks a lot!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|