Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
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
Mod Version: 1.0.8, by Boofo (R.I.P.) Boofo is offline
Developer Last Online: Jun 2012 I like it Show Printable Version Email this Page

vB Version: 4.0.x Rating: (29 votes - 4.83 average) Installs: 263
Released: 28 May 2010 Last Update: 16 Aug 2011 Downloads: 1256
Not Supported Uses Plugins Auto-Template  

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!



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	profile_referrer.png
Views:	1291
Size:	4.4 KB
ID:	127873   Click image for larger version

Name:	profile_referred_members.jpg
Views:	1137
Size:	17.2 KB
ID:	127874   Click image for larger version

Name:	usercp_referral_collaspe.png
Views:	1041
Size:	7.6 KB
ID:	127876   Click image for larger version

Name:	usercp_referral_id.png
Views:	1323
Size:	26.8 KB
ID:	127877  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Forum Home Enhancements User Referrer Hex_legend vBulletin 3.7 Template Modifications 18 07 Nov 2015 19:24
Profile Enhancements Referrer in Profile for vB 4 Boofo vBulletin 4.x Add-ons 11 29 May 2012 04:05
Miscellaneous Hacks User CP Referral ID and Referrer in Profile for vB3.7 Boofo Modification Graveyard 77 01 Jul 2008 23:57

  #61  
Old 25 Aug 2010, 00:36
sas forum sas forum is offline
 
Join Date: Jan 2008
Originally Posted by Boofo View Post
If you are just running the forums, it might work with index.php. I'm not sure how that is set up, to be honest.

Let me know if it works with the default template and we can go from there. Since I run the default skin, that is what it was written on.
It shows the referred members at the bottom of the about me like it did before, but no info box with their referral link at the top. I tried it on the default (stock) template that came with VB and also again on the one that I changed the colors on that we use right now.

Maybe there is a conflict with a current mod I have installed?

I currently have the following installed:

BBR - Google Analytics Addon
CT second_post_Ads
EveryWhere Sidebar
GlowHost - Spam-O-Matic
User CP Referral ID and Referrer in Profile
vBH - Add new tabs 1.2
Reply With Quote
  #62  
Old 25 Aug 2010, 00:55
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Are you sure you are going to the right page?

/forums/usercp.php
Reply With Quote
  #63  
Old 25 Aug 2010, 01:44
sas forum sas forum is offline
 
Join Date: Jan 2008
Originally Posted by Boofo View Post
Are you sure you are going to the right page?

/forums/usercp.php
Ah, that is it.

For some reason I was trying to view my profile and edit my profile and everything. Never clicked "settings" to get to the usercp. Man, you are smart Thanks for the help, sorry for being a thorn in the side of this mod. It is a great mod and makes it a lot easier for the members to refer people. If you have a donation button, I will be happy to donate some money towards the dev of new mods as I have done with others.

Thanks for the help
Reply With Quote
  #64  
Old 25 Aug 2010, 02:44
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
There is a support developer link (for donating) under my avatar in the first post.

No problem. Glad all is ok now.
Reply With Quote
  #65  
Old 25 Aug 2010, 11:07
sas forum sas forum is offline
 
Join Date: Jan 2008
Originally Posted by Boofo View Post
There is a support developer link (for donating) under my avatar in the first post.

No problem. Glad all is ok now.
Did it, thanks.
Reply With Quote
  #66  
Old 26 Aug 2010, 02:04
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by sas forum View Post
Did it, thanks.
And it is appreciated. Thank you.

Last edited by Boofo; 06 Sep 2010 at 03:55.
Reply With Quote
  #67  
Old 06 Sep 2010, 03:38
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Real name: Karl
Works

Thanks )
Reply With Quote
  #68  
Old 17 Sep 2010, 06:24
the_ace the_ace is offline
 
Join Date: Jul 2007
is there anyway to get the number of referrals to show in the postbits ?
Reply With Quote
  #69  
Old 17 Sep 2010, 08:45
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by the_ace View Post
is there anyway to get the number of referrals to show in the postbits ?
Not without adding a query for every post.
Reply With Quote
  #70  
Old 17 Sep 2010, 10:48
the_ace the_ace is offline
 
Join Date: Jul 2007
Originally Posted by Boofo View Post
Not without adding a query for every post.
Thats fine. Thats not an issue for me.
I tried this as a plugin that hooks in to the posrbit_display_start:
(slightly modified from the plugin thats in vb 3.8.x

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But i soon realized that I'm in way over my head with this
Reply With Quote
  #71  
Old 17 Sep 2010, 10:59
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
referrerid='$usersid'

should be

referrerid='$userid'
Reply With Quote
  #72  
Old 17 Sep 2010, 11:15
the_ace the_ace is offline
 
Join Date: Jul 2007
Originally Posted by Boofo View Post
referrerid='$usersid'

should be

referrerid='$userid'
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.
Reply With Quote
  #73  
Old 17 Sep 2010, 11:31
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
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.
Reply With Quote
  #74  
Old 17 Sep 2010, 11:46
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Try changing your hook location for your query to the postbit_display_complete.
Reply With Quote
  #75  
Old 17 Sep 2010, 12:07
the_ace the_ace is offline
 
Join Date: Jul 2007
Originally Posted by Boofo View Post
Try changing your hook location for your query to the postbit_display_complete.
Thanks! that did the trick! It works now.

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 :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Plugin is Active : yes


Like Boofo said, this adds a query for every post.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 06:05.

Layout Options | Width: Wide Color: