vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Home Enhancements - User Referrer (https://vborg.vbsupport.ru/showthread.php?t=166466)

Hex_legend 12-29-2007 10:00 PM

User Referrer
 
This is a quick short modification, can easily be made better by anyone else, but I just did this quickly for my forums and thought that I would release it :)

This puts a link on the forumhome for your members that show them their own unique referrer link to give to other potential members.

Time to install: <1m
Level: Easy
Template Edits: 1
Phrases Added: 0
Uploads: 0

Open FORUMHOME

Find

Code:

$navbar
Add Under,

Code:


<!-- Referral Link -->
<if condition="$show['member']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
<tr>

<center>Your Unique Referrer Link Is:</center>
<td class="thead">
http://$vboptions[bburl]/$bbuserinfo[userid]</div></a></td>
        </tr>
</table>
<br />
</if>
<!-- / Referral Link -->


<br />


Done.

Please mark as installed if you use this.

Hex_legend 12-30-2007 04:36 PM

If you have used this code, please now re-check your code as I have now made it look a lot nicer per forum.

See new Screenshots

lasto 12-31-2007 08:27 PM

why on forumhome - why not have it dispalyed inside User Control Panel so they can go there and see it and it dont take up any precious Space.

slmoney 12-31-2007 08:57 PM

Your code is wrong..

should be:

<!-- Referral Link -->
<if condition="$show['member']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
<tr>

<center>Your Unique Referrer Link Is:</center>
<td class="thead">
$vboptions[bburl]index.php?referrerid=$bbuserinfo[userid]</div></a></td>
</tr>

And I placed it on the Memberinfo template, under NAVBAR
Makes more sense there.

rmxs 01-01-2008 12:47 PM

AND YOUR CODE is wronk were is the closing if??

Quote:

<!-- Referral Link -->
<if condition="$show['member']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
<tr>

<center>Your Unique Referrer Link Is:</center>
<td class="thead">
$vboptions[bburl]index.php?referrerid=$bbuserinfo[userid]</div></a></td>
</tr>
</if>
This one is ok//

Also the better place to put this is inside USERCP after the

<!-- ############## END PRIVATE MESSAGES ############## -->
</if>

AWMGolfer 01-01-2008 01:16 PM

I put it in the User Control Panel just above the New Subscribed threads so members can see it right away. Works great!

Hornstar 01-02-2008 07:37 AM

Well this is useful for those that want to display it here, you can also display it in other places.

ps. there is already one released which will easily place one in your usercp.

Zamurick X 01-05-2008 12:05 AM

Quote:

<td class="thead">
$vboptions[bburl]index.php?referrerid=$bbuserinfo[userid]</div></a></td>
Why are there closing tags for a hyper link and div if there are no opening tags?

Jmordenata 01-28-2008 07:42 AM

Hmmm... Not to be rude, but I think the perfect (almost) code should be:

FIND in USERCP:
<!-- ############## END PRIVATE MESSAGES ############## -->
</if>

AFER, ADD:
<!-- Referral Link -->
<if condition="$show['member']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
<tr>

<td class="thead">here the explanation of the referrer link:<br />

$vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]</div></a></td>
</tr>
</if>
<!-- END REFERRAL LINK -->

BatMNet 02-01-2008 04:09 AM

Can someone please re-write this??? And where to put it.... I'm just confused now...

I couldn't find anything about End Private Message..... I Used (Plus I added a div to the code to center it under your explination)

Find:
Code:

<!-- ############## SUBSCRIBED THREADS ##############  -->
Add BEFORE
Code:

<!-- Referral Link -->
<if condition="$show['member']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
<tr>

<td class="thead">If You Wish To Refer People, Please Use The Following Code:<br /><div align="center">

$vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]</div></div></a></td>
</tr>
</if>
<!-- END REFERRAL LINK -->



All times are GMT. The time now is 01:13 PM.

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.01170 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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