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.


All times are GMT. The time now is 04:38 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.01090 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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