Log in

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


Phaedrus
01-13-2009, 10:00 PM
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
01-14-2009, 03:35 PM
This will place your link in the USER CP under the "Your Profile" area.

Rene Kriest
01-14-2009, 03:40 PM
Screenshot? ;)

Phaedrus
01-14-2009, 03:47 PM
Screenshot? ;)
LOL. Added.

Rene Kriest
01-15-2009, 12:28 AM
Thanks. :D

Makes things clearer.

myown
01-15-2009, 02:01 PM
feel good

Jon Tolzien
01-18-2009, 12:02 AM
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
01-18-2009, 06:24 AM
ok my template is weird because i have user CP shell icons installed.. need help here please

Sweeks
01-18-2009, 01:58 PM
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
01-19-2009, 05:35 AM
Can you link me to the mod? I may need to see how the mod updates your templates.

Phaedrus
01-19-2009, 05:37 AM
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
01-19-2009, 05:43 AM
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
01-19-2009, 01:47 PM
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
01-20-2009, 03:28 AM
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
01-20-2009, 11:48 PM
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
01-21-2009, 10:35 PM
Thanks Added To My Forum

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

Phaedrus
01-23-2009, 03:37 AM
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:

https://vborg.vbsupport.ru/showthread.php?t=183268

Sweeks
01-23-2009, 01:54 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=170558" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=170558</a>

ndut
01-26-2009, 01:07 AM
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
01-26-2009, 01:27 AM
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
02-15-2009, 11:13 PM
PM, sent..

btw, what is TMS?

Phaedrus
02-16-2009, 01:02 AM
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:

https://vborg.vbsupport.ru/showthread.php?t=202533

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

And TMS is this: https://vborg.vbsupport.ru/showthread.php?t=152931

A.Chakery
02-18-2009, 03:26 AM
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
02-18-2009, 03:46 AM
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
02-18-2009, 07:05 AM
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
02-18-2009, 10:18 PM
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
02-20-2009, 01:57 PM
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
02-20-2009, 04:41 PM
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
02-21-2009, 07:06 AM
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
02-21-2009, 07:24 AM
oh I solved it bro, thnx thnx really gr8 modif.
I pressed nominate.

Goodluck

Phaedrus
02-21-2009, 01:50 PM
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
03-07-2009, 07:15 PM
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
03-08-2009, 02:10 AM
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
03-08-2009, 02:40 AM
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
03-08-2009, 02:46 AM
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
03-08-2009, 12:11 PM
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
03-08-2009, 11:04 PM
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.

https://vborg.vbsupport.ru/showthread.php?t=202533

Commodore
03-11-2009, 11:38 PM
That worked! Thank you!!

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

marshal_ramdev
03-17-2009, 01:12 PM
thanks

shinng
05-29-2009, 09:09 AM
simple mod, thanks. installed

raiderlax
06-04-2009, 02:01 AM
This is a awesome mod!

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

worldwidereefer
07-18-2009, 02:01 AM
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
07-25-2009, 03:14 AM
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
07-31-2009, 05:42 PM
I only have USERCP.php file on my serve :( cant find usercp shell or anything related to it :(

Phaedrus
08-09-2009, 04:38 AM
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
11-17-2009, 12:00 PM
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:

https://vborg.vbsupport.ru/showthread.php?t=202533