referral link

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • unicorn2433
    Senior Member
    • Mar 2008
    • 146

    referral link

    Hi

    How do I get the referral link to show up on each users control panel?
    So they know what link to use to send to friends

    Thanks
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    For example, edit this template:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> User Control Panel Templates -> USERCP

    Add the red code:

    Code:
    $template_hook[usercp_main_pos1]
    
    [color=red]<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
    	<td class="alt1" align="center">
    		<a href="index.php?$session[sessionurl]referrerid=$bbuserinfo[userid]">Your Referral Link</a>
    	</td>
    </tr>
    </table>
    <br />[/color]
    
    <if condition="$show['privatemessages']">
    <!-- ############## PRIVATE MESSAGES ##############  -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <thead>
    	<tr>
    		<td class="tcat" colspan="2">
    			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_pms')"><img id="collapseimg_usercp_pms" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_pms].gif" alt="" border="0" /></a>
    			<a href="private.php$session[sessionurl_q]">$vbphrase[new_private_messages]</a><span class="normal">: ($numpms)</span>
    		</td>
    	</tr>
    </thead>

    Comment

    • unicorn2433
      Senior Member
      • Mar 2008
      • 146

      #3
      TY
      very much

      Comment

      • unicorn2433
        Senior Member
        • Mar 2008
        • 146

        #4
        Jake one more question

        It adds the words

        Your Referral Link

        You click on them and it brings you back to main page with your referral link in the search engine.

        How can I get the actual link to show up on the user cp page instead

        Thanks in advance

        Comment

        • Jake Bunce
          Senior Member
          • Dec 2000
          • 46598
          • 3.6.x

          #5
          Use this code to display the actual link:

          Code:
          $vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]

          Comment

          • unicorn2433
            Senior Member
            • Mar 2008
            • 146

            #6
            thanks so much

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...