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
  #42  
Old 03-17-2009, 01:12 PM
marshal_ramdev marshal_ramdev is offline
 
Join Date: Mar 2009
Location: Ludhiana
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #43  
Old 05-29-2009, 09:09 AM
shinng's Avatar
shinng shinng is offline
 
Join Date: May 2009
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

simple mod, thanks. installed
Reply With Quote
  #44  
Old 06-04-2009, 02:01 AM
raiderlax's Avatar
raiderlax raiderlax is offline
 
Join Date: Sep 2006
Location: Ontario, Canada
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a awesome mod!
Reply With Quote
  #45  
Old 07-11-2009, 06:06 AM
jack2009 jack2009 is offline
 
Join Date: Jun 2009
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bro it's not working...i edit it but no result
Reply With Quote
  #46  
Old 07-18-2009, 02:01 AM
worldwidereefer worldwidereefer is offline
 
Join Date: Jun 2009
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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.
Reply With Quote
  #48  
Old 07-31-2009, 05:42 PM
dont.net dont.net is offline
 
Join Date: Jul 2009
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I only have USERCP.php file on my serve cant find usercp shell or anything related to it
Reply With Quote
  #49  
Old 08-09-2009, 04:38 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by ppatil007 View Post
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
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:01 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.04757 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (2)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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