vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=243455

User CP Referral ID and Referrer/Referrals in Profile for vB 4
by Boofo
28 May 2010 09:05

5 Attachment(s)
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.


wolfe 28 May 2010 17:14

can you make it so when you click on the referals amount it lists all the members who the person refered.

Boofo 28 May 2010 17:24

I had thought about that at one time and decided that is would entail another query, which I'm sure would be sever intensive if you had enough members and referrals on the site, and decided against it. It would also take a template edit or replace and I kind of wanted to stay away from that with vb 4 since they have a lot of new hooks.

Crow 02 Jun 2010 19:11

Few issues I'm having...

1.) On the setting page its showing (15) for referrals
2.) on the profile page its showing (13) referrals
3.) on the profile page it doesn't list the members I've referred.

Using vB 4.0.3

Boofo 02 Jun 2010 19:19

Quote:

Originally Posted by Crow (Post 2047213)
Few issues I'm having...

1.) On the setting page its showing (15) for referrals
2.) on the profile page its showing (13) referrals
3.) on the profile page it doesn't list the members I've referred.

Using vB 4.0.3

Count fixed and product updated.

As far as listing the members you referred, this product does not do that. It only list the Referrer for each member in their profile.

voidmind 03 Jun 2010 01:25

I can't my referral link box like you have in this picture:
http://www.vbulletin.org/forum/attac...1&d=1275037513

I see my number of referrals under my personal information but thats til

Boofo 08 Jun 2010 17:20

Quote:

Originally Posted by voidmind (Post 2047380)
I can't my referral link box like you have in this picture:
http://www.vbulletin.org/forum/attac...1&d=1275037513

I see my number of referrals under my personal information but thats til

Did you add the code to the additional.css like the instructions tell you to do?

Clicking install might get you an answer faster next time.

kall 08 Jun 2010 19:27

Not really much different to http://www.vbulletin.org/forum/showthread.php?t=231288 is it?

Boofo 08 Jun 2010 20:57

Yes it is very different as it is an update to the old version I did a long time back. I kept the same style as I did in the vb 3 version. Plus, it adds the Referrer in the Profile. Ace, you know very well I did this for version 3 way before the one in the link. ;)

fuffalo 16 Jun 2010 18:06

can't seem to get this where exactly is this supposed to go in the css?

Boofo 16 Jun 2010 21:40

Add the code anywhere to the additional.css template.

vidan 16 Jun 2010 22:00

how to add the referral in block?
i mean what's the include file? if i want to show it everywhere?

Footman 16 Jun 2010 22:07

Downloaded, Installed, rated... nice little touch with this. It's so wonder why vB doesn't put things like this in as default. Makes no sense, but I'm happy you wrote it in.

Thanks man.

ps.
I'm assuming this automatically adds the referrer in the correct entry box in the registration process. I mention this since I also give points for referrals so this makes it easier to accomplish this... and hopefully get my members to refer more people.

thanx again

Boofo 16 Jun 2010 22:12

It will automatically add the referral name if they use the referred id link when they sign on to register.

And, you're very welcome. ;)

Footman 16 Jun 2010 22:14

Excellent Boofo - thanks :)


All times are GMT. The time now is 11:23.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.