PDA

View Full Version : ReferralsHack


Afterburner
26 Aug 2001, 16:38
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
26 Aug 2001, 16:52
thanks for a another good hack.

Lesane
25 Oct 2001, 22:25
A very nice hack, thnx.

Afterburner
05 Nov 2001, 11:55
works also in vB 2.2.0

Marshalus
23 Jul 2002, 08:41
Excellent hack! Probably far too unnoticed.

Chris M
23 Jul 2002, 10:15
Very good...

Just a Q Afterburner...

Whats up with the number 11 position?

Satan

Afterburner
23 Jul 2002, 10:31
isn't there a username ? than you deleted this user

alkatraz
15 Dec 2002, 12:44
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
15 Dec 2002, 12:46
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
30 Jun 2003, 16:13
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.