PDA

View Full Version : Forum Home Enhancements - User Referrer


Hex_legend
12-29-2007, 10:00 PM
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


$navbar


Add Under,



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


<!-- 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
<td class="thead">
$vboptionsindex.php?referrerid=$bbuserinfo[B][U]</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:
<!-- ############## SUBSCRIBED THREADS ############## -->

Add BEFORE
<!-- 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
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
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


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?