PDA

View Full Version : Mini Mods - Referral Link in User CP


Phaedrus
14 Jan 2009, 16:32
Often sites like to run contests for referrals, or members just like to be credited for those they refer to your site.

An easier way to do this is to use a referral link that automatically credits the user if the person they refer registers after using their link to get to your site.

You can add such a link into the USER CP shell so that if they wish to use the link to refer people to your site they can easily obtain access to it, copy it and paste it into e-mail, etc.


In Template USERCP_SHELL find:


<if condition="$show['profilepiclink']">
<tr><td class="$navclass[profilepic]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editprofilepic">$vbphrase[edit_profile_picture]</a></td></tr>
</if>


Below that add:


<!-- Referral Link -->
<tr><td class="$navclass[profile]" nowrap="nowrap"><a class="smallfont" href="index.php?referrerid=$bbuserinfo[userid]">Your Referral Link</a></td></tr>
<!-- / Referral Link -->

Phaedrus
14 Jan 2009, 16:35
This will place your link in the USER CP under the "Your Profile" area.

Rene Kriest
14 Jan 2009, 16:40
Screenshot? ;)

Phaedrus
14 Jan 2009, 16:47
Screenshot? ;)
LOL. Added.

Rene Kriest
15 Jan 2009, 01:28
Thanks. :D

Makes things clearer.

myown
15 Jan 2009, 15:01
feel good

Jon Tolzien
18 Jan 2009, 01:02
I install it, when I click on the user cp, then on the referral link, what is it supposed to do? I thought it was supposed to be able to say who referred you. Thanks for the help.

C138 Kaysone
18 Jan 2009, 07:24
ok my template is weird because i have user CP shell icons installed.. need help here please

Sweeks
18 Jan 2009, 14:58
ok my template is weird because i have user CP shell icons installed.. need help here please

Same here using the usercp icon mod and this wont show for me.
________
UGGS (http://uggstoreshop.com/)

Phaedrus
19 Jan 2009, 06:35
Can you link me to the mod? I may need to see how the mod updates your templates.

Phaedrus
19 Jan 2009, 06:37
I install it, when I click on the user cp, then on the referral link, what is it supposed to do? I thought it was supposed to be able to say who referred you. Thanks for the help.

It gives each user a unique link that they can use when they are promoting your site. Any person who clicks that link and then registers to the site will automatically have the username associated to the link as their referrer.

Basically it makes it so they can get credit for referring new members.

This works best for sites that are having contests for member drives.

C138 Kaysone
19 Jan 2009, 06:43
I took it out because it only adds itself to the user CP shell nav which is on the left side of my usercp, it lists itself as... a choice, I want it to show up in the contact field and i tried it but it only gives my ID on everyones contact slide...

mytalkcarolina.com is where it will be at and ill put it in if you want to look at it and see what we can do???

Phaedrus
19 Jan 2009, 14:47
I took it out because it only adds itself to the user CP shell nav which is on the left side of my usercp, it lists itself as... a choice, I want it to show up in the contact field and i tried it but it only gives my ID on everyones contact slide...

mytalkcarolina.com is where it will be at and ill put it in if you want to look at it and see what we can do???
Do you have a test account? We may be able to get it to show up where you want it, then add it. It shouldn't be too difficult.

C138 Kaysone
20 Jan 2009, 04:28
Do you have a test account? We may be able to get it to show up where you want it, then add it. It shouldn't be too difficult.

ill pm it to you in a few, trying to resolve a big issue i have on my vbulletin with the cookies and www. domains etc...

Phaedrus
21 Jan 2009, 00:48
ill pm it to you in a few, trying to resolve a big issue i have on my vbulletin with the cookies and www. domains etc...

Okay, and I need to know exactly what effect you are looking for.

I wanted my users to have quick access to their referral ID without having to know the full url in their head, so I created a quick little link that they could use.

Are you looking to have it somewhere special? I wasn't able to find a contact box using your test account.

We can likely put the link anywhere you want it, I just need to know where you want it and see the template coding...

Nightmare_Zero
21 Jan 2009, 23:35
Thanks Added To My Forum

Nelly
22 Jan 2009, 22:49
People will jus make fake accounts using the referral? How can I stop multiregistrations from a certain IP with this?

Phaedrus
23 Jan 2009, 04:37
People will jus make fake accounts using the referral? How can I stop multiregistrations from a certain IP with this?

With this?

You can't, but there is a mod for that.

You might try this one:

http://www.vbulletin.org/forum/showthread.php?t=183268

Sweeks
23 Jan 2009, 14:54
http://www.vbulletin.org/forum/showthread.php?t=170558

ndut
26 Jan 2009, 02:07
referral link, did'nt show in my usercp..
i already add
<!-- Referral Link -->
<tr><td class="$navclass[profile]" nowrap="nowrap"><a class="smallfont" href="index.php?referrerid=$bbuserinfo[userid]">Your Referral Link</a></td></tr>
<!-- / Referral Link -->

below

<if condition="$show['profilepiclink']">
<tr><td class="$navclass[profilepic]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editprofilepic">$vbphrase[edit_profile_picture]</a></td></tr>
</if>

what should i do?

Phaedrus
26 Jan 2009, 02:27
referral link, did'nt show in my usercp..
i already add
<!-- Referral Link -->
<tr><td class="$navclass[profile]" nowrap="nowrap"><a class="smallfont" href="index.php?referrerid=$bbuserinfo[userid]">Your Referral Link</a></td></tr>
<!-- / Referral Link -->

below



what should i do?

Can you place the code after edit in a code box and send it to me in PM?

Also, a test account would be helpful so I can see the result.

Also... Did you use TMS to do the modifications?

ndut
16 Feb 2009, 00:13
PM, sent..

btw, what is TMS?

Phaedrus
16 Feb 2009, 02:02
PM, sent..

btw, what is TMS?
Well, that should put the link right below the Edit User Profile link, it is placed correctly.

Do you have any mods that add icons or something in the USER CP?

Another option for you might be this mod:

http://www.vbulletin.org/forum/showthread.php?t=202533

It creates a collapsible box in the USER CP that has a counter.

And TMS is this: http://www.vbulletin.org/forum/showthread.php?t=152931

A.Chakery
18 Feb 2009, 04:26
hi thnx for this gr8 mod

But nothing happened after I added the code :(

what should I do ?

I attached my usercp_shell in a *.txt file.

I will be so thankful If U help me .

Regards

Phaedrus
18 Feb 2009, 04:46
hi thnx for this gr8 mod

But nothing happened after I added the code :(

what should I do ?

I attached my usercp_shell in a *.txt file.

I will be so thankful If U help me .

Regards


You changed the code up a bit which would change it enough to make it very unclear.

I have attached the correct one in this post.

Basically you changed:

"Your Referral Link" to your URL which would place a link that appears to be your url in your UserCP under edit Profile Picture that would take you to your referral link, but it wouldn't be clear that it would.

A.Chakery
18 Feb 2009, 08:05
You changed the code up a bit which would change it enough to make it very unclear.

I have attached the correct one in this post.

Basically you changed:

"Your Referral Link" to your URL which would place a link that appears to be your url in your UserCP under edit Profile Picture that would take you to your referral link, but it wouldn't be clear that it would.
hi bro
really tnx for your answer
I have put my forums's url but nothing happened :(

here is my test forum which I m working on it :
www.salamateravan.com >> (try to change language to English)

thnx in advanced
regards

Phaedrus
18 Feb 2009, 23:18
hi bro
really tnx for your answer
I have put my forums's url but nothing happened :(

here is my test forum which I m working on it :
www.salamateravan.com >> (try to change language to English)

thnx in advanced
regards
You don't want your forum's url in there. Look at the txt file I uploaded, that should solve your issue.

You want the referral code to look exactly like this:


<!-- Referral Link -->
<tr><td class="$navclass[profile]" nowrap="nowrap"><a class="smallfont" href="index.php?referrerid=$bbuserinfo[userid]">Your Referral Link</a></td></tr>
<!-- / Referral Link -->


Of course you would want to translate "Your Referral Link" into Arabic. The translator says this: ان الصلة , of course I have no idea how correct it is. I do not, unfortunately, speak Arabic.

A.Chakery
20 Feb 2009, 14:57
You don't want your forum's url in there. Look at the txt file I uploaded, that should solve your issue.

You want the referral code to look exactly like this:


<!-- Referral Link -->
<tr><td class="$navclass[profile]" nowrap="nowrap"><a class="smallfont" href="index.php?referrerid=$bbuserinfo[userid]">Your Referral Link</a></td></tr>
<!-- / Referral Link -->


Of course you would want to translate "Your Referral Link" into Arabic. The translator says this: ان الصلة , of course I have no idea how correct it is. I do not, unfortunately, speak Arabic.
WoW thnx bro , I didnt mean to translate it for , Gr8 thnx

I did this but still I havent that referral link :(

Phaedrus
20 Feb 2009, 17:41
WoW thnx bro , I didnt mean to translate it for , Gr8 thnx

I did this but still I havent that referral link :(
Is your USER CP modified in any way from the standard?

A.Chakery
21 Feb 2009, 08:06
Is your USER CP modified in any way from the standard?
yes bro, I test it at my main forum too. the referral link havnt appeared :(
was my user cp shell ok ??? :(

A.Chakery
21 Feb 2009, 08:24
oh I solved it bro, thnx thnx really gr8 modif.
I pressed nominate.

Goodluck

Phaedrus
21 Feb 2009, 14:50
It appeared correct, except you added your forum url rather than "your forum link" in arabic. It's a mystery. It is a mini-mod and easy to miss but it sounds like you are looking for the right thing. :dunno:

Commodore
07 Mar 2009, 20:15
I get a Referral Link in the UserCP, but when I click on the link it takes users back to the main forum page. UserCP attached.

Phaedrus
08 Mar 2009, 03:10
I get a Referral Link in the UserCP, but when I click on the link it takes users back to the main forum page. UserCP attached.

That is what it is supposed to do. You need to copy the link and post it wherever you want to refer people to your site.

Your referral link is made to send people to your site, it attaches the USER ID of the user so that they get credit for those who follow the link and join your site.

Commodore
08 Mar 2009, 03:40
That is what it is supposed to do. You need to copy the link and post it wherever you want to refer people to your site.

Your referral link is made to send people to your site, it attaches the USER ID of the user so that they get credit for those who follow the link and join your site.

There is no link shown - It just:

http://img3.imageshack.us/img3/622/usercpm.jpg

I need the link shown, not clicking on a link that only takes you back to the forum main page. Thanks.

Phaedrus
08 Mar 2009, 03:46
There is a link. I see it on the menu directly under "Edit Profile Picture". You can copy it one of two ways, right click on "Your Referral Link" and 'copy link location', or click on it (it will take you to the forumhome with your referral link in the url field of your browser) and copy it like normal.

That is the link that will automatically set your user (or yourself if you use the link) as the referrer of a person who follows the link and registers at your site.

Commodore
08 Mar 2009, 13:11
Yes, we all can see the link and yes you can copy your link with right clicking, but you left click on the link it takes you out of the UserCP and takes you out on the main page with the referrer link in the address bar. I was hoping that it would be displayed in the UserCP as most of my forums members very young and I need to do hand holding for many things. I was hoping that by seeing it in the UserCP I would not have deal with the 'where is my referrer link' questions.

Phaedrus
09 Mar 2009, 00:04
Yes, we all can see the link and yes you can copy your link with right clicking, but you left click on the link it takes you out of the UserCP and takes you out on the main page with the referrer link in the address bar. I was hoping that it would be displayed in the UserCP as most of my forums members very young and I need to do hand holding for many things. I was hoping that by seeing it in the UserCP I would not have deal with the 'where is my referrer link' questions.


I see what you are saying, you might want to look at this hack.

http://www.vbulletin.org/forum/showthread.php?t=202533

Commodore
12 Mar 2009, 00:38
That worked! Thank you!!

Phaedrus
14 Mar 2009, 14:43
That worked! Thank you!!
Not a problem. I'm glad that one worked for you.

marshal_ramdev
17 Mar 2009, 14:12
thanks

shinng
29 May 2009, 10:09
simple mod, thanks. installed

raiderlax
04 Jun 2009, 03:01
This is a awesome mod!

jack2009
11 Jul 2009, 07:06
bro it's not working...i edit it but no result

worldwidereefer
18 Jul 2009, 03:01
I tested by logged myself of the board and used the referral link however it logged me back on. If I give this link to a friend would he/she be able to access my account ? I don't want that....

any help ?

Phaedrus
25 Jul 2009, 04:14
No, it wouldn't. If you have logged in then use the link it will only take you to the forumhome. The link only works for referalls, they don't have your cookies on their computer. All it does is track if they register after following the link and mark them as your referral and give you credit for it.

dont.net
31 Jul 2009, 18:42
I only have USERCP.php file on my serve :( cant find usercp shell or anything related to it :(

Phaedrus
09 Aug 2009, 05:38
I only have USERCP.php file on my serve :( cant find usercp shell or anything related to it :(

Your User CP Shell should be in your templates, not a file on the server.

Phaedrus
17 Nov 2009, 13:00
I think its difficult for the user to understand how this works , i feel instead of redirect it to home page with referral link why can you not make just the referral link displayed in the same page with text note it will be easy to understand

Try this one:

http://www.vbulletin.org/forum/showthread.php?t=202533