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
  #32  
Old 02-21-2009, 07:24 AM
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh I solved it bro, thnx thnx really gr8 modif.
I pressed nominate.

Goodluck
Reply With Quote
  #33  
Old 02-21-2009, 01:50 PM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #34  
Old 03-07-2009, 07:15 PM
Commodore Commodore is offline
 
Join Date: Jan 2009
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Files
File Type: txt UserCP_Shell.txt (16.8 KB, 8 views)
Reply With Quote
  #35  
Old 03-08-2009, 02:10 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Commodore View Post
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.
Reply With Quote
  #36  
Old 03-08-2009, 02:40 AM
Commodore Commodore is offline
 
Join Date: Jan 2009
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Phaedrus View Post
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:



I need the link shown, not clicking on a link that only takes you back to the forum main page. Thanks.
Reply With Quote
  #37  
Old 03-08-2009, 02:46 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #38  
Old 03-08-2009, 12:11 PM
Commodore Commodore is offline
 
Join Date: Jan 2009
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by Commodore View Post
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
Reply With Quote
  #40  
Old 03-11-2009, 11:38 PM
Commodore Commodore is offline
 
Join Date: Jan 2009
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That worked! Thank you!!
Reply With Quote
  #41  
Old 03-14-2009, 01:43 PM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Commodore View Post
That worked! Thank you!!
Not a problem. I'm glad that one worked for you.
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 10:44 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.04703 seconds
  • Memory Usage 2,335KB
  • 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
  • (2)bbcode_code
  • (4)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
  • (2)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