PDA

View Full Version : ReferralsHack


Afterburner
08-25-2001, 10:00 PM
English:

With this hack normal members can show the referrals of all members.

sample page:
http://216.40.240.19/vbulletin/ref.php?s=

and click on the username to see the referrals


Deutsch:

Mit diesem Hack k?nnen jetzt auch die normalen Mitglieder sehen wer wem geworben hat.

Beispiel:
http://216.40.240.19/vbulletin/ref.php?s=

und klickt auf einen Usernamen um die Referrals zu sehen

joecrow
08-26-2001, 02:52 PM
thanks for a another good hack.

Lesane
10-25-2001, 08:25 PM
A very nice hack, thnx.

Afterburner
11-05-2001, 09:55 AM
works also in vB 2.2.0

Marshalus
07-23-2002, 06:41 AM
Excellent hack! Probably far too unnoticed.

Chris M
07-23-2002, 08:15 AM
Very good...

Just a Q Afterburner...

Whats up with the number 11 position?

Satan

Afterburner
07-23-2002, 08:31 AM
isn't there a username ? than you deleted this user

alkatraz
12-15-2002, 10:44 AM
Great hack!

Couple of small bugs I found:

In ref_for_user, Profile is typed "Profil" instead of "Profile"

<td bgcolor="{categorybackcolor}" align="center" nowrap><smallfont color="{categoryfontcolor}"><b>Profile</b></smallfont></td>


and in ref_for_user1 I was getting some crappy fonts for all the data so I added smallfont tags to it

<tr>
<td align="center" bgcolor="{secondaltcolor}"><smallfont>$zaehlen</smallfont></td>
<td align="center" bgcolor="{firstaltcolor}"><smallfont><a href="ref.php?s=$session[sessionhash]&action=showreferrals&referrerid=$user[userid]&startdate=$startdate&enddate=$enddate">$user[username]</a><br><smallfont>($user[usertitle])</smallfont></smallfont></td>
<td align="center" bgcolor="{secondaltcolor}"><smallfont>$user[count]</smallfont></td>
<td align="center" bgcolor="{firstaltcolor}"><smallfont>$user[posts]</smallfont></td>
<td align="center" bgcolor="{secondaltcolor}"><smallfont>
<a href="private.php?s=$session[sessionhash]&action=newmessage&userid=$user[userid]"><img src="{imagesfolder}/sendpm.gif" border="0" alt="PM"></a></smallfont></td>
<td align="center" bgcolor="{firstaltcolor}"><smallfont>
<a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$user[userid]"><img src="{imagesfolder}/profile.gif" border="0" alt="Profil"></a></smallfont></td>
<td align="center" bgcolor="{secondaltcolor}"><smallfont>$userdate <font color="{timecolor}">$usertime</font></smallfont></td>
<td align="center" bgcolor="{firstaltcolor}"><smallfont>$userlastdate <font color="{timecolor}">$userlasttime</font></smallfont></td>
</tr>



Thanks!!

alkatraz
12-15-2002, 10:46 AM
also in ref_for_user2


<tr>
<td align="center" bgcolor="{firstaltcolor}"><smallfont>$zaehlen1</smallfont></td>
<td align="center" bgcolor="{secondaltcolor}"><smallfont>$profile</smallfont><br><smallfont>($user[usertitle])</smallfont></td>
<td align="center" bgcolor="{firstaltcolor}"><smallfont>$user[posts]</smallfont></td>
<td align="center" bgcolor="{secondaltcolor}"><smallfont>
<a href="private.php?s=$session[sessionhash]&action=newmessage&userid=$user[userid]"><img src="{imagesfolder}/sendpm.gif" border="0" alt="PM"></a></smallfont></td>
<td align="center" bgcolor="{firstaltcolor}"><smallfont>$userdate <font color="{timecolor}">$usertime</font></smallfont></td>
<td align="center" bgcolor="{secondaltcolor}"><smallfont>$userlastdate <font color="{timecolor}">$userlasttime</font></smallfont></td>
</tr>

Oblivion Knight
06-30-2003, 02:13 PM
I was pleasantly surprised to see that the hack still works for vB 2.3.0, since this is EXACTLY what I have been wanting and it barely strains the database at all. I've been editing the file and templates all day to give a more "complete" feel to it.

My changes can be viewed here:
http://www.umbrellaonline.co.uk/forums/ref.php

Features include:
- Cleaner templates
- 100% English translation, including code
- Who's Online Status - "Viewing Top Referrerals List"

With your permission Afterburner, I will share the code.. :)


[EDIT]
I've recieved permission from Afterburner to post the updated code, so here it is.. :)

All credit to him for originally creating the modification.