The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
UserCP Referral ID and Count Details »» | |||||||||||||||||||||||||||||
While supporting my mini-mod I came across a more in depth version of what I was trying to do. Once I saw it I had to add it to my site. Since I couldn't find it here, I created something of my own.
This hack will add a collapsible box in your UserCP with a message informing the user what the referral ID is, what it is for, and how to use it. The message can be, of course, rewritten in your phrases to fit your own site and users. To install, simply install the product below in Manage Products, then of course you should click installed. :up: Update: Sorry, re-uploaded the xml. I had set the wrong product dependency on the xml. I have removed it. It works again. (first Code jitters I guess... ) Version 1.0.2: Added a bit of code so that it will remember if you collapse it, or expand it and keep that formation so that you don't have to collapse it each time you go into the UserCP. Version 1.0.3: Corrected the query string so that it would not count users that had not been verified or passed through moderation. (user group 3 and 4 are not included in the referral counts now). re-uploaded 1.0.3, minor change on version listed in the mod. To upgrade install normally, set "Allow Overwrite" to 'yes'. Download Now
Screenshots
Show Your Support
|
Comments |
#32
|
|||
|
|||
very nice hack. a very constructive one.
installed and clicked installed |
#33
|
|||
|
|||
Those of you who have high server loads I've modified the product so that the template edits were manual:
Find: Code:
$template_hook[usercp_main_pos2] Code:
<!-- REFERRALS IN USER CP --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <thead> <tr> <td class="tcat"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('referral')"><img id="collapseimg_referral" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_my_table].gif" alt="" border="0" /></a> $vboptions[bbtitle] $vbphrase[referrals]<span class="normal">: ($referrals)</span> </td> </tr> </thead> <tbody id="collapseobj_referral" style="$vbcollapse[collapseobj_referral]"> <tr> <td class="alt1" title="$bbuserinfo[username]'s $vbphrase[referrals]" width="100%" align="left"> <phrase 1="$vboptions[bbtitle]" 2="$vbphrase[referrals]" 3="member.php?$session[sessionurl]u=$bbuserinfo[userid]" 4="$vbphrase[profile]" 5="$bbuserinfo[username]" 6="$vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]" >$vbphrase[refid_usercp]</phrase> </td> </tr> </tbody> </table> <br /> <!-- END REFERRALS IN USER CP --> |
#34
|
|||
|
|||
Cool.
|
#35
|
||||
|
||||
This mod conflicts with the following mod: Icons for UserCP Navbar
The screenshot you supplied shows a link to Your Referral Link in the Your Profile section of the UserCP menu. I have installed this mod and it does not show this link...otherwise, it works fine. You may want to take this into consideration and modify your code to allow for this. |
#36
|
|||
|
|||
Quote:
Can you link me to the mod it conflicts with? I need to find out what they are hooking on and choose something different so they won't conflict. |
#37
|
||||
|
||||
Quote:
Other than that...like I said...the mod works fine. |
#38
|
|||
|
|||
already installed. thanks
but when i click : your refferal for xxx (userid member) the link, direct me to forum home.. is it true or still have errors? thank you |
#39
|
|||
|
|||
You don't want to click the link, you want to use that link at other places to direct them to your site. The link carries your user ID, those people that follow it then register at your site will automatically be credited as referred by you.
|
#40
|
|||
|
|||
Will this work for vbseo where it wont modify the url?
|
#41
|
|||
|
|||
I don't believe that this would have any problem with vbseo which would translate the url into "vbseo-style" as the user entered, if it was one that would be changed to begin with.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|