vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Referrals URL anywhere? (https://vborg.vbsupport.ru/showthread.php?t=73009)

Zain Jaffer 12-17-2004 05:45 PM

Referrals URL anywhere?
 
How do I find my referrals URL without having to go into FAQ all the time, is there a way to create a page, or add it in the user cp?

Help appreciated. Thanks!

ericgtr 12-17-2004 06:13 PM

Sure, you can take the link and add it pretty much where you want. Here's an example that will add into your stats on the forumhome template.

in the FORUMHOME template find:
Code:

<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
After add:
Code:

<br />
$vbphrase[refer_id]: <a href="$vboptions[bburl]/$vboptions[forumhome].php?referrerid=$bbuserinfo[userid]">$vboptions[bburl]/$vboptions[forumhome].php?referrerid=$bbuserinfo[userid]</a>

Now add a phrase:
Phrase Type: Global
Varname: refer_id
Text: Your Custom Referall ID is

Wala, you now have the custom link on the forum page. Of course this is down and dirty but it gives you an idea :)

Zain Jaffer 12-17-2004 06:34 PM

Very neat :)

How do I add this to the usercp of a member?

btw, thanks for the speedy help!

ericgtr 12-17-2004 07:34 PM

1 Attachment(s)
There are a lot of ways you can do this, it's really a matter of preference. Here is a way to add it to the Edit Profile section of the usercp.

add a phrase:
Phrase Type: Global
Varname: refer_id
Text: Your Custom Referall ID is

add another phrase:
Phrase Type: Global
Varname: refer_id2
Text: Custom Refferal ID

In your modifyprofile template find:
Code:

value="$vbphrase[edit_email_and_password]" name="gotopassword" />
                                        </td>
                                </tr>
                                </table>
                        </fieldset>

Add after:
Code:

<!-- Custom referral ID -->
<fieldset class="fieldset">
<legend>$vbphrase[refer_id2]</legend>
<br />
$vbphrase[refer_id]:
<br />
<a href="$vboptions[bburl]/$vboptions[forumhome].php?referrerid=$bbuserinfo[userid]">$vboptions[bburl]/$vboptions[forumhome].php?referrerid=$bbuserinfo[userid]</a>
</fieldset>
<br />
<!-- Custom referral ID -->

Here's what it will look like..

Zain Jaffer 12-17-2004 11:13 PM

Excellent, thanks a lot!


All times are GMT. The time now is 07:00 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.01739 seconds
  • Memory Usage 1,716KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete