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
  #22  
Old 01-26-2009, 01:27 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ndut View Post
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?
Reply With Quote
  #23  
Old 02-15-2009, 11:13 PM
ndut ndut is offline
 
Join Date: Sep 2007
Location: Indonesia
Posts: 335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PM, sent..

btw, what is TMS?
Reply With Quote
  #24  
Old 02-16-2009, 01:02 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ndut View Post
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
Reply With Quote
  #25  
Old 02-18-2009, 03:26 AM
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by UIQarena View Post
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.
Attached Files
File Type: txt usercp.txt (16.8 KB, 16 views)
Reply With Quote
  #27  
Old 02-18-2009, 07:05 AM
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by UIQarena View Post
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.
Reply With Quote
  #29  
Old 02-20-2009, 01:57 PM
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by UIQarena View Post
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?
Reply With Quote
  #31  
Old 02-21-2009, 07:06 AM
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Phaedrus View Post
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 ???
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:14 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.04271 seconds
  • Memory Usage 2,348KB
  • 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
  • (5)bbcode_code
  • (8)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
  • (4)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
  • (3)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