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 -->


Straightupimp 02-10-2008 04:50 PM

If you would like to place on forumhome like he has here is the PROPER WORKING 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">
$vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]</div></div></a></td>
</tr>
</table>
<br />
</if>
<!-- / Referral Link -->

<br />

just follow all his steps and it will work fine

PaulSonny 02-24-2008 09:50 PM

Which part of:

"This modification may not be copied, reproduced or published elsewhere without author's permission."

Did you's not understand?

MiahBeSmokin420 05-07-2008 11:56 AM

Quote:

Originally Posted by PaulSonny (Post 1450288)
Which part of:

"This modification may not be copied, reproduced or published elsewhere without author's permission."

Did you's not understand?

for 1 its not a modification its a template mod

for 2 i wouldn't even really call it a template mod

its just a link

shoot i had this on my site before y'all even had it posted

if you want to get technical then technically the creators of vb make it but just never implemented it into the software

so quit wining about something so small dang acting like kids i though most of y'all were adults but i guess not

wpeloquin 06-20-2008 07:10 PM

Quote:

Originally Posted by PaulSonny (Post 1450288)
Which part of:

"This modification may not be copied, reproduced or published elsewhere without author's permission."

Did you's not understand?

has it been any of those?

(1) they have pointed out that the code he wrote is invalid and does not work, making it a useless template modification as-is.

(2) they have re-written the code in the original coders thread, which means he still will get credit for anyone clicking on "Install" even though he didn't even write the proper code.

(3) they have discussed various templates in which to put the proper, newly-written code


so if what they have done is bad, then remove the original modification that was written, since it is obviously wrong and the code he used will not work as said, and allow the guys who DID write the proper code to be given the credit.

wpeloquin 06-20-2008 07:23 PM

back on topic:

I added the code to the user's profile Contact Info tab

Code:

Open template: memberinfo_block_contactinfo

FIND:
<dd><a href="$prepared[profileurl]">$prepared[profileurl]</a></dd>


AFTER, ADD:
        <dt class="shade">Referrer ID</dt>
                <dd><a href="$vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]">$vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]</a></dd>


HackSawed 06-25-2008 09:06 PM

I would like this but then without a registration and a unique ip system. Also then i want a good overview by who have the most referers.

iTz eLK 07-10-2008 05:18 AM

It just redirects me back to the forum home.

Emmmmrz 07-14-2008 02:15 AM

I don't suppose it would be possible to get the code inserted into a text document to download for people that want to use this; but not go code diving atm? (like myself)

webnsn 11-07-2015 06:24 PM

it is showing like a Text

It supposed to show as link?


All times are GMT. The time now is 07:36 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.01191 seconds
  • Memory Usage 1,764KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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