vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - Referral Link in User CP (https://vborg.vbsupport.ru/showthread.php?t=201754)

Phaedrus 01-13-2009 10:00 PM

Referral Link in User CP
 
1 Attachment(s)
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:

Code:

<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:

Code:

<!-- 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

Quote:

Originally Posted by Rene Kriest (Post 1712233)
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

Quote:

Originally Posted by C138 Kaysone (Post 1716541)
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

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

Quote:

Originally Posted by Jon Tolzien (Post 1716315)
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

Quote:

Originally Posted by C138 Kaysone (Post 1717534)
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

Quote:

Originally Posted by Phaedrus (Post 1717880)
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

Quote:

Originally Posted by C138 Kaysone (Post 1718554)
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

Quote:

Originally Posted by Nelly (Post 1721623)
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
Code:

<!-- 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

Quote:

<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

Quote:

Originally Posted by ndut (Post 1724782)
referral link, did'nt show in my usercp..
i already add
Code:

<!-- 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

Quote:

Originally Posted by ndut (Post 1745402)
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

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

1 Attachment(s)
Quote:

Originally Posted by UIQarena (Post 1747521)
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

Quote:

Originally Posted by Phaedrus (Post 1747534)
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

Quote:

Originally Posted by UIQarena (Post 1747636)
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:

Code:

<!-- 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

Quote:

Originally Posted by Phaedrus (Post 1748515)
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:

Code:

<!-- 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

Quote:

Originally Posted by UIQarena (Post 1749918)
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

Quote:

Originally Posted by Phaedrus (Post 1750032)
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

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

Quote:

Originally Posted by Commodore (Post 1762713)
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

Quote:

Originally Posted by Phaedrus (Post 1762903)
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

Quote:

Originally Posted by Commodore (Post 1763140)
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

Quote:

Originally Posted by Commodore (Post 1766112)
That worked! Thank you!!

Not a problem. I'm glad that one worked for you.


All times are GMT. The time now is 05:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01508 seconds
  • Memory Usage 1,839KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete