The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
User CP Referral ID and Referrer/Referrals in Profile for vB 4 Details »» | |||||||||||||||||||||||||||||||||||||
User CP Referral ID and Referrer/Referrals in Profile for vB 4
Developer Last Online: Jun 2012
User CP Referral ID and Referrer in Profile for vB 4
Version 1.0.8 (By Boofo) What does this product do? This product will add a content box at the top of the User CP displaying a customizable referral "Message" and the member's "Referral Link" along with their referral count. This will also show who referred a user in their profile in the About Me tab, under Referrals, at the bottom. It will only show in the About Me tab if the user has been referred by someone. A Referred Members List has also been added for each member so you can see who a Member has referred. The referral count in the User CP will link directly to the Referred members List. NOTE: If you are currently using Referrer in Profile for vB 4, you will need to uninstall that first, as this does the same thing but with the User CP Referral ID and Referred Members List added. Version Information: Version 1.0.0 --Initial release for vB 4 Version 1.0.1 --Usergroups 3 and 4 are no longer represented in the referral count in the User CP. Version 1.0.2 --Added Referred Members List for each member and a link to the list from the User CP referral count. Version 1.0.3 --Fixed the Referral Link to reflect the 'Script Name for Forum Home Page' setting in vB 4. Version 1.0.4 --Product is now completely phrased. Version 1.0.5 --Referred Members List is now alphabetically sorted and Usergroups 3 and 4 are no longer represented in the listing. Version 1.0.6 --Added the ability to collapse the box. Version 1.0.7 --Moved Referrer below Join Date. The Referrals will no longer show if the user has no referrals. This is done via an automatic template edit. Version 1.0.8 --Added User CP Referral ID Box Position setting. This will allow you to choose the location where you want the Referral ID box to show in the User CP. NOTE: The "manual_template_edit_code.txt" is included in case the automatic template edit doesn't work for some custom skins. Installation overview: -------------------------- 1 Product XML (5 Plugins, 15 phrases, 2 templates and 1 setting) Installation Instructions: -------------------------- 1. Add the code from the included "additional.css_template_code.txt" file to the additional.css template. 2. Go to your Admin CP Scroll down to 'Plugin System' Click 'Manage Products' Click 'Add/Import Product' Click the 'Browse' button, and locate the product-boofo_usercp_referral_id.xml file on your computer 3. Go to your Admin CP -> vBulletin Options -> User CP Referral ID and Referrer in Profile and set the following option: --User CP Referral ID Box Position: Choose the location where you want the Referral ID box to show in the User CP. (Default is "Top of User CP") --------------------------------------------------- Done! Enjoy! Code:
if ($mark_as_installed != 'clicked') { $you_get = 'squat'; } else { $you_get = 'support'; } Download Now
Screenshots
Show Your Support
|
2 благодарности(ей) от: | ||
caoducanh9x, Life Revived |
Comments |
#72
|
||||
|
||||
referrerid='$usersid'
should be referrerid='$userid' |
#73
|
|||
|
|||
oh. Isnt it supposed to be $usersid since in the first line it says :
$usersid=$this->post['userid']; I'm not a php coder at all but I thought that line assigns the userid to $usersid ? Please feel free to correct me. I'm sure to learn something new here. BTW, setting it to referrerid='$userid' in the where clause didint work either. |
#74
|
||||
|
||||
My bad. I didn't look close enough, I guess.
Look at the other queries in the mod. The should give you an idea of how to run it. |
#75
|
||||
|
||||
Try changing your hook location for your query to the postbit_display_complete.
|
#76
|
|||
|
|||
Quote:
For anyone interested Here's the plugin : (Admin CP -> Plugins & Products -> Plugin Manager -> Add New Plugin ) Product : Vbulletin Hook Location : postbit_display_complete Titile : Referrals in Postbit Execution Order : 5 Plugin PHP code : Code:
$usersid = $this->post['userid']; $refcount = mysql_query("SELECT username FROM " . TABLE_PREFIX . "user WHERE referrerid='$usersid'"); $referrals = mysql_num_rows($refcount); $template_hook['postbit_userinfo_right_after_posts'] .= '<dt>Referrals</dt><dd> '. $referrals.'</dd>'; Like Boofo said, this adds a query for every post. |
#77
|
|||
|
|||
Nice mod - thanks!
|
#78
|
||||
|
||||
Thank you. *installed*
The link to the Profile AboutMe Tab in the UserCP Box does not work for me. Just a note |
#79
|
|||
|
|||
hey i just noticed that every profile have my referral id...i mean they all have admin referral id not theirs why is that so and that additional.css where can i find that...and if i have to add then where should i add...
also please help me for this referral link...they all have same referral link which is ending up with my id number.... try to help me asap... regards |
#80
|
|||
|
|||
sorry to bother you but its working now...
regards |
#81
|
||||
|
||||
It will only work if there is at least one referreral name to link to.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|