View Full Version : Miscellaneous Hacks - Referral Link (and Total) Block in UserCP
This modification is effectively a Port to vB 4 of this mod (https://vborg.vbsupport.ru/showthread.php?t=202533).
It will provide members with a block in the top of their UserCP (see screenshot) that tells them what their Referral link is, how to use it, and how many people they have referred to your Forum.
The count only increases when a Registration is finalised.
I have tested this on 2 sites of mine, it appears to work exactly as it should, but please do report any issues/requests in this thread.
radmoose
12-27-2009, 05:57 AM
Thanks! Was working on some promo ideas for the site and this is perfect!
utahraves
12-27-2009, 06:23 AM
I know I could probably go into the phrases/language and change the wording but it would be nice if it showed up in the Settings>Options of the AdminCP - Maybe the ability to select the location of where it shows (like at the bottom of the usercp instead).
Thanks for the great product.
Alecsmith
12-27-2009, 06:44 AM
working perfect thanks
merk_aus
12-27-2009, 10:16 AM
thanks dude as said elsewhere i absolutely love ti.
Zaiaku
12-27-2009, 05:24 PM
Very ncie and clean mod. Excellent job!
Welshy2008
12-27-2009, 05:39 PM
How did you get the "rounded Edges" instead of the Boring plain square ones?
What browser are you using? This block should just take on the style of your existing style.
Welshy2008
12-27-2009, 07:20 PM
I am using IE 7.
My Members use this, too. as well as Fire Fox.
And you see the rounded blocks elsewhere in your UserCP?
riverbender
12-28-2009, 02:46 PM
I need this! Thank You! FWIW it applied my style perfectly. Rounded in Flock but not in IE7 just like the rest of the "stock" blocks.
kf4eok
12-28-2009, 02:56 PM
great idea
installed
Chris Rosso
12-28-2009, 03:38 PM
works great thanks
works great thanks
You're welcome. An even better way to thank a Mod developer is to click the Install button when you have installed it. :)
iyama
12-28-2009, 05:22 PM
Getting on vb4 pl1 this: XML Error: Empty document at Line 0
edit: reinstal and succesly
Where can i find the phrase to edit it to my language?
I'm looking at Phrasing it today, at the moment you would have to edit the template itself.
iyama
12-28-2009, 05:51 PM
Could you give me a hint where the txt is? I'm searching buth cant find it directly
iyama
12-28-2009, 06:28 PM
Yes i found it.
In the template > usercp_vbereferrals
TheSupportForum
02-01-2010, 04:29 AM
would it be possible for admins to see who the user(s) have been referred by after they have signed up in a seperate list for admins only
so you would have something like
User ID:
Username:
Referred By User ID:
Referred By Username:
Date & time User Referred
Date & Time User signed up
or something similar to this
drummaster
02-02-2010, 01:38 PM
Installed Thanks for this just got to try it out on someone
ascott
02-08-2010, 03:43 PM
Installed, thank you.
Installed, thank you.
You're very welcome. :)
thedreamer09
02-12-2010, 07:58 AM
working fine.. thanks a lot,
oddmud
02-16-2010, 04:00 AM
i tried the link, when i click on register it doesn't show anything in the referral location. :(
edit: wait, i guess it doesn't do that.. or does it?
i tried the link, when i click on register it doesn't show anything in the referral location. :(
edit: wait, i guess it doesn't do that.. or does it?
I don't think it does man. :)
It must pick it up from the URI.
Drache
02-22-2010, 01:27 PM
works good with 4.0.2 thanks.
oddmud
02-22-2010, 03:59 PM
I don't think it does man. :)
It must pick it up from the URI.
Well in the text it says that it does. This is the only reason why I asked. It works I think.
In my text? Where? I should correct it.
oddmud
03-01-2010, 03:32 AM
I would like to be able to see the list of total referrals, and who was referred.
Any way to do this?
Oh and read the text
https://vborg.vbsupport.ru/external/2010/05/43.jpg "it will auto-fill your username in the register form"
Ahh. So it does. I'll fix that. :)
David Copeland
03-23-2010, 12:36 AM
Once I download this, how exactly do I install it?
Hi David,
Just import the Product in Product Manager. It's automatically placed in the top of the UserCP.
seeson
03-23-2010, 03:44 AM
I've installed this and my members have said that when their guests try to sign up with the referral link, it does not auto-fill the referrers name. Any help?
David Copeland
03-23-2010, 07:22 PM
Hi David,
Just import the Product in Product Manager. It's automatically placed in the top of the UserCP.
Where is Product Manager?
Where is Product Manager?
AdminCP - Plugins and Products - Product Manager.
mandingo
03-24-2010, 12:17 AM
Neat.
Neat.
Thanks for being Install #100. :)
mandingo
03-24-2010, 12:48 AM
Thanks for being Install #100. :)
:) Thanks for the neat mod.
tiga2
04-24-2010, 07:06 PM
I love this mod, But I am trying to figure out how I can show referrals made that are in group X:
<div class="block" id="referral_information">
<h2 class="blockhead">Your Referral Information - Total Referrals ({vb:raw referrals})</h2>
How can I modify "vb:raw referrals" and add something like "& is in Group 4" :p
Taurus MFF
05-12-2010, 11:04 PM
i tried the link, when i click on register it doesn't show anything in the referral location. :(
edit: wait, i guess it doesn't do that.. or does it?
I don't think it does man. :)
It must pick it up from the URI.
Well in the text it says that it does. This is the only reason why I asked. It works I think.
In my text? Where? I should correct it.
...read the text
https://vborg.vbsupport.ru/attachment.php?attachmentid=108277&d=1261899412 "it will auto-fill your username in the register form"
Ahh. So it does. I'll fix that. :)
tagged... have you fixed the auto-complete Kall?
mmacrypt
05-17-2010, 09:19 PM
just installed and tracking to see how much use it gets. Thank you for this mod.
Is there a way to track all the referrals through the admin control panel or have an option so that members can see who the leaders are over all for most referrals?
MuhammadC
10-06-2010, 11:40 PM
Excellent, installed. :)
What a brillaint mod...Thx very much
However jus a little issue...where i have highlighted....text is disapearing into the referal link abit..anyway to raise the text slightly?
thx
http://www.mythnetwork.net/img2.png
Qrius
11-02-2010, 05:53 PM
Thanks for this excelent mod :)
Installed on v4.0.6
typecast
11-20-2010, 03:27 AM
This is set to take you to index.php I had to edit usercp_vbereferrals and change the index.php to register.php.
I don't know why this isn't setup this way when it is installed, there is no way the referrer id is going to be carried forward when someone clicks from the forum (index.php) to the register page.
I also took the text control out of the link so that it shows as a link and not a button.
donwon
11-22-2010, 03:51 AM
I installed but don't see anything. Am i missing something?
Brandon Sheley
11-23-2010, 01:15 AM
thx, works great :)
* Brandon Sheley clicked install :up:
Kingdombuilder
02-11-2011, 04:35 PM
This is set to take you to index.php I had to edit usercp_vbereferrals and change the index.php to register.php.
I don't know why this isn't setup this way when it is installed, there is no way the referrer id is going to be carried forward when someone clicks from the forum (index.php) to the register page.
I also took the text control out of the link so that it shows as a link and not a button.
This is the problem I have now. Where did you change that so it will show up for all users?
Kingdombuilder
02-11-2011, 04:48 PM
Yes i found it.
In the template > usercp_vbereferrals
Thank you for your post now i have it fixed as well...
Go to Admin Control Panel >> Styles and Templates >> Style Manager >> (for each style) Edit Templates (in the down arrow by each Style name) >> User Control Panel Templates >> usercp_vbereferrals
Replace this:
<div class="block" id="referral_information">
<h2 class="blockhead">Your Referral Information - Total Referrals ({vb:raw referrals})</h2>
<div class="blockbody settings_form_border">
<div class="blockrow">
<p>Do you know somebody that might be interested in <b>{vb:raw vboptions.bbtitle}</b>? You can use the link below to refer others to our site. The link includes your unique referral ID so you will be credited for any referrals brought by using the link.
</p><br />
<p>If somebody follows <b><a class="textcontrol" href="{vb:raw vboptions.bburl}/index.php?referrerid={vb:raw bbuserinfo.userid}">your referral link</a></b> to <b>{vb:raw vboptions.bbtitle}</b>, it will auto-fill your Username on their Register form. When they register as a new member your referral count will increase and keep track of how many people you have referred to the site!</p><br />
<p class="summaryinfo"><b>Important:</b> Please do not spam other sites or e-mails with your link to <b>{vb:raw vboptions.bbtitle}</b>, this will likely not bring many referrals and create acrimony rather than goodwill towards the site. One hint is to add the link to your Email signature.<br /></p>
<br /><div class="padding: 5px; font-size: 9px; border: 1px solid #c4c4c4; margin: 0 2px; width:50%;" id="referrallink"><legend>Your Referral Link for <b>{vb:raw vboptions.bbtitle}:</b> </legend><a class="textcontrol" href="{vb:raw vboptions.bburl}/index.php?referrerid={vb:raw bbuserinfo.userid}">{vb:raw vboptions.bburl}/index.php?referrerid={vb:raw bbuserinfo.userid}</a></div>
</div>
</div>
With This:
<div class="block" id="referral_information">
<h2 class="blockhead">Your Referral Information - Total Referrals ({vb:raw referrals})</h2>
<div class="blockbody settings_form_border">
<div class="blockrow">
<p>Do you know somebody that might be interested in <b>{vb:raw vboptions.bbtitle}</b>? You can use the link below to refer others to our site. The link includes your unique referral ID so you will be credited for any referrals brought by using the link.
</p><br />
<p>If somebody follows <b><a class="textcontrol" href="{vb:raw vboptions.bburl}/register.php?referrerid={vb:raw bbuserinfo.userid}">your referral link</a></b> to <b>{vb:raw vboptions.bbtitle}</b>, it will auto-fill your Username on their Register form. When they register as a new member your referral count will increase and keep track of how many people you have referred to the site!</p><br />
<p class="summaryinfo"><b>Important:</b> Please do not spam other sites or e-mails with your link to <b>{vb:raw vboptions.bbtitle}</b>, this will likely not bring many referrals and create acrimony rather than goodwill towards the site. One hint is to add the link to your Email signature.<br /></p>
<br /><div class="padding: 5px; font-size: 9px; border: 1px solid #c4c4c4; margin: 0 2px; width:50%;" id="referrallink"><legend>Your Referral Link for <b>{vb:raw vboptions.bbtitle}:</b> </legend><a class="textcontrol" href="{vb:raw vboptions.bburl}/register.php?referrerid={vb:raw bbuserinfo.userid}">{vb:raw vboptions.bburl}/register.php?referrerid={vb:raw bbuserinfo.userid}</a></div>
</div>
</div>
</div>
HotnHoly
07-10-2011, 05:53 AM
Hello,
I need this for vBulletin 4.1.4.
Regards!
MagicThemeParks
07-10-2011, 12:32 PM
Works with 4.1.1 but needs a little tweak on the CSS as the referral link seems to be "bumping against" the text.
tdkmatt
07-18-2011, 01:07 PM
where does it show up?
tdkmatt
07-18-2011, 01:10 PM
it shows up in userCP then it goes away www.fatalitynetworking.com/forum
tdkmatt
07-18-2011, 01:27 PM
it does not work in 4.1.4 it shows up once in about 45 mins! www.fatalitynetworking.com/forum
tdkmatt
07-18-2011, 02:17 PM
Can it be moved? as it doe not show on my forum
archet1337
07-22-2011, 09:39 PM
I can not get this to work on my 4.1.4 board. Nothing is showing up in the UserCP at all.
TombstoneWarrior
03-09-2012, 10:24 PM
nuthing is showing up in my members usercp either. vb version 4.1.9 hope some finds a fix for this and post's it or update the mod so it will show up and stop not working for all of us who have nuthing showing up!!
RapidRippeR
04-21-2012, 07:43 AM
thanks a bunch for this ...very useful
JustAskJulie
05-10-2012, 06:36 PM
would it be possible for admins to see who the user(s) have been referred by after they have signed up in a seperate list for admins only
so you would have something like
User ID:
Username:
Referred By User ID:
Referred By Username:
Date & time User Referred
Date & Time User signed up
or something similar to this
Excellent, installed. :)
This is already available in your AdminCP. Click Users -->referrals to view list of how many referrals a user has during a given time period.
deverill2010
06-19-2012, 06:59 AM
Works on 4.2.0 Patch Level 2
Now time to have me a competition!
Subieforums
11-03-2012, 08:52 AM
Is there a way thy we can track the members with the top referrals, i want to run a contest to gain new signups and award the one who gets the most signups.
Thanks!
BadgerDog
11-03-2012, 03:18 PM
Installed with thanks for testing on 4.1.3 ...
Un-installed...
Simply doesn't work.. nothing appears... ;)
Regards,
Doug
Spike1337
03-16-2013, 12:42 PM
<a href="http://www.yousite.com/usercp.php" target="_blank">www.yousite.com/usercp.php</a>
GameOverViper
03-16-2013, 03:05 PM
Is there a way thy we can track the members with the top referrals, i want to run a contest to gain new signups and award the one who gets the most signups.
Thanks!
I'm not sure of any ways to track referrals by dates, which would be awesome for contests like this.
The only way to do it that I know of is to make a thread about it and have entries submitted to you via the thread or PM saying how many referrals they have at that time, and message you or post in the thread each time they get another referral. You would have to keep track of it all yourself. But that's the only way I know of that would work.
Installed with thanks for testing on 4.1.3 ...
Un-installed...
Simply doesn't work.. nothing appears... ;)
Regards,
Doug
I'm using 4.2.0 on my RoG site and it works.
Internetcafe
04-10-2013, 05:57 PM
Not working on 4.1.10.
Anyone still working on this ?
kartheekb
08-06-2013, 08:48 AM
any one tried on 4.2.0
motorhaven
08-20-2013, 07:35 PM
Yes, it works on 4.2.x.
It did NOT show up in usercp at first. In order for it to show up I had to go into the usercp_vbereferrals template, then resave the template (no edits). Once I did that it showed up for me. :)
bosanci28
11-10-2013, 04:25 AM
@motorhaven ,is right ,you must resave to show, looks like it works under 4.2.1 , and the stats are in the admin cpanel / users / referrals.
Make sure you have the <br> ... see :
<br /><div class="padding: 5px; font-size: 9px; border: 1px solid #c4c4c4; margin: 0 2px; width:50%;" id="referrallink"><legend>Your Referral Link for <b>{vb:raw vboptions.bbtitle}:</b>
<br>
</legend><a class="textcontrol" href="{vb:raw vboptions.bburl}/index.php?referrerid={vb:raw bbuserinfo.userid}">{vb:raw vboptions.bburl}/index.php?referrerid={vb:raw bbuserinfo.userid}</a></div>
</div>
</div>
</div>
As the link will be in top of the last line.
ReMarkable1991
10-19-2015, 12:49 PM
I have referrer enabled in registration(and see the field when I try to register). However neither when I fill it in manually or when I visit the forums for the first time trough ?referrerid=1 (Both with index.php or register.php) the referrer doesn't get registered anywhere.
Can't find it trough admin portal or anywhere in the database.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.