Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Referral Link in User CP Details »»
Referral Link in User CP
Version: 1.00, by Phaedrus Phaedrus is offline
Developer Last Online: Nov 2021 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.0 Rating:
Released: 01-13-2009 Last Update: Never Installs: 57
Template Edits
Re-useable Code Translations  
No support by the author.

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

Screenshots

File Type: bmp SCRNshtRef.bmp (922.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 01-19-2009, 05:37 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jon Tolzien View Post
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.
Reply With Quote
  #13  
Old 01-19-2009, 05:43 AM
C138 Kaysone C138 Kaysone is offline
 
Join Date: Jun 2008
Location: NC
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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???
Reply With Quote
  #14  
Old 01-19-2009, 01:47 PM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by C138 Kaysone View Post
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.
Reply With Quote
  #15  
Old 01-20-2009, 03:28 AM
C138 Kaysone C138 Kaysone is offline
 
Join Date: Jun 2008
Location: NC
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Phaedrus View Post
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...
Reply With Quote
  #16  
Old 01-20-2009, 11:48 PM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by C138 Kaysone View Post
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...
Reply With Quote
  #17  
Old 01-21-2009, 10:35 PM
Nightmare_Zero Nightmare_Zero is offline
 
Join Date: Sep 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Added To My Forum
Reply With Quote
  #18  
Old 01-22-2009, 09:49 PM
Nelly Nelly is offline
 
Join Date: Jul 2006
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

People will jus make fake accounts using the referral? How can I stop multiregistrations from a certain IP with this?
Reply With Quote
  #19  
Old 01-23-2009, 03:37 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nelly View Post
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
Reply With Quote
  #20  
Old 01-23-2009, 01:54 PM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=170558" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=170558</a>
Reply With Quote
  #21  
Old 01-26-2009, 01:07 AM
ndut ndut is offline
 
Join Date: Sep 2007
Location: Indonesia
Posts: 335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:07 AM.


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.04612 seconds
  • Memory Usage 2,337KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete