Announcement

Collapse
No announcement yet.

Refferal ID ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Refferal ID ?

    referrerid=X If X is the id of the user id that reffered them to the site how do I get users to get their own id, I have the forum setup in usernames not id

    just for clarification this is how a user would setup their referral:
    www.domain.com/?refferid=login name ?

    Thanks

  • #2
    The referral links go by userid only. Without a userid specified, the new user can still specify a referring username on the registration form.

    Comment


    • #3
      Is there a way for members to get their referral link besides searching for it through the FAQ?

      Thanks.

      Comment


      • #4
        Yes, you could update the usercp template with the link and instead of =x at the end use =$bbuserinfo[userid]

        Comment


        • #5
          Do I have to find specific text in the USERCP template (and replace it)?:

          Code:
          <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>
          <tbody id="collapseobj_usercp_pms" style="$vbcollapse[collapseobj_usercp_pms]">
              $messagelistbits
          </tbody>
          </table>
          <br />
          <!-- ############## END PRIVATE MESSAGES ##############  -->
          </if>
          
          
          <!-- ############## SUBSCRIBED THREADS ##############  -->
          
          <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
          <thead>
              <tr>
                  <td class="tcat" colspan="7">
                      <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_subthreads')"><img id="collapseimg_usercp_subthreads" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_subthreads].gif" alt="" border="0" /></a>
                      <a href="subscription.php?$session[sessionurl]do=viewsubscription">$vbphrase[new_subscribed_threads]</a><span class="normal">: ($numthreads)</span>
                  </td>
              </tr>
          </thead>
          <tbody id="collapseobj_usercp_subthreads" style="$vbcollapse[collapseobj_usercp_subthreads]">
              <if condition="$show['threads']">
                  <tr class="thead">
                  
                      <if condition="$show['threadicons']">
                          <td class="thead" colspan="2">&nbsp;</td>
                      <else />
                          <td class="thead">&nbsp;</td>
                      </if>
                      
                      <td class="thead" width="100%">$vbphrase[thread] / $vbphrase[thread_starter]</td>
                      <td class="thead" width="150" align="center" nowrap="nowrap">$vbphrase[last_post]</td>
                      <td class="thead" align="center">$vbphrase[replies]</td>
                      <td class="thead" align="center">$vbphrase[views]</td>
                  </tr>
                  $threadbits
              <else />
                  <tr>
                      <td class="alt1" align="center" colspan="7"><strong>$vbphrase[no_subscribed_threads_to_display]</strong></td>
                  </tr>
              </if>
              <tr>
                  <td align="$stylevar[right]" colspan="7" class="tfoot">
                  <span class="smallfont"><a href="subscription.php?$session[sessionurl]do=viewsubscription&amp;folderid=all">$vbphrase[view_all_subscribed_threads]</a></span>
                  </td>
              </tr>
          </tbody>
          </table>
          <br />
          <!-- ############## END SUBSCRIBED THREADS ##############  -->
          
          
          <if condition="$show['forums']">
          <!-- ############## SUBSCRIBED FORUMS ##############  -->
          <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
          <thead>
              <tr>
                  <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
                      <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_forums')"><img id="collapseimg_usercp_forums" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_forums].gif" alt="" border="0" /></a>
                      $vbphrase[subscribed_forums]
                  </td>
              </tr>
          </thead>
          <tbody id="collapseobj_usercp_forums" style="$vbcollapse[collapseobj_usercp_forums]">
              <tr align="center" valign="bottom">
                  <td class="thead" width="2%">&nbsp;</td>
                  <td class="thead" align="$stylevar[left]" width="80%">$vbphrase[forum]</td>
                  <td class="thead">$vbphrase[last_post]</td>
                  <td class="thead">$vbphrase[threads]</td>
                  <td class="thead">$vbphrase[posts]</td>
                  <if condition="$vboptions['showmoderatorcolumn']">
                  <td class="thead" width="20%">$vbphrase[moderator]</td>
                  </if>
              </tr>
              $forumbits
          </tbody>
          </table>
          <br />
          <!-- ############## END SUBSCRIBED FORUMS ##############  -->
          </if>
          
          <if condition="$show['infractions']">
          <!-- ############## NEW INFRACTIONS ##############  -->
          <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
          <thead>
              <tr>
                  <td class="tcat" colspan="7">
                      <span class="smallfont" style="float:$stylevar[right]">
                          <phrase 1="$bbuserinfo[ipoints]">$vbphrase[x_points_total]</phrase>
                          &nbsp; &nbsp;
                          <a href="#top" onclick="return toggle_collapse('usercp_infraction')"><img id="collapseimg_usercp_infraction" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_infraction].gif" alt="" border="0" /></a>
                      </span>
                      $vbphrase[latest_infractions_received]
                  </td>
              </tr>
          </thead>
          <tbody id="collapseobj_usercp_infraction" style="$vbcollapse[collapseobj_usercp_infraction]">
              <tr>
                  <td class="thead" colspan="2">&nbsp; &nbsp; $vbphrase[post]</td>
                  <td class="thead">$vbphrase[date]</td>
                  <td class="thead">$vbphrase[expires]
                  <td class="thead" nowrap="nowrap">$vbphrase[points]</td>
                  <td class="thead">$vbphrase[reason]</td>
                  <td class="thead" nowrap="nowrap">$vbphrase[posted_by]</td>
              </tr>
              $infractionbits
          </tbody>
          </table>
          <br />
          <!-- ############## END NEW INFRACTIONS ##############  -->
          </if>
          
          <if condition="$show['reputation']">
          <!-- ############## NEW REPUTATION ##############  -->
          <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
          <thead>
              <tr>
                  <td class="tcat" colspan="$reputationcolspan">
                      <span class="smallfont" style="float:$stylevar[right]">
                          <phrase 1="$bbuserinfo[reputation]">$vbphrase[x_points_total]</phrase>
                          &nbsp; &nbsp;
                          <a href="#top" onclick="return toggle_collapse('usercp_reputation')"><img id="collapseimg_usercp_reputation" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_reputation].gif" alt="" border="0" /></a>
                      </span>
                      $vbphrase[latest_reputation_received]
                  </td>
              </tr>
          </thead>
          <tbody id="collapseobj_usercp_reputation" style="$vbcollapse[collapseobj_usercp_reputation]">
              <tr>
                  <td class="thead" colspan="2">&nbsp; &nbsp; $vbphrase[thread]</td>
                  <td class="thead">$vbphrase[date]</td>
                  <if condition="$vboptions['showuserraters']">
                  <td class="thead" nowrap="nowrap">$vbphrase[posted_by]</td>
                  </if>
                  <td class="thead">$vbphrase[comment]</td>
              </tr>
              $reputationcommentbits
          </tbody>
          </table>
          <br />
          <!-- ############## END NEW REPUTATION ##############  -->
          </if>
          
          <table cellpadding="0" cellspacing="0" border="0" width="100%">
          <tr>
              <td width="100%">&nbsp;</td>
              <td align="$stylevar[right]">$forumjump</td>
          </tr>
          </table>

          Comment


          • #6
            Above
            <!-- ############## SUBSCRIBED THREADS ############## -->

            You could add:

            <a href="
            http://www.yoursite.com/forumdir/index.php?referrerid=$bbuserinfo[userid]
            ">http://www.yoursite.com/forumdir/index.php?referrerid=$bbuserinfo[userid]</a> (referral ID link to give to friends).

            Comment


            • #7
              Thank you. I tried that and it does just what I asked. It just kind of looks out of place where it is at.

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎