vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   ReferralsHack (https://vborg.vbsupport.ru/showthread.php?t=26487)

Afterburner 08-25-2001 09: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 01:52 PM

thanks for a another good hack.

Lesane 10-25-2001 07: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 05:41 AM

Excellent hack! Probably far too unnoticed.

Chris M 07-23-2002 07:15 AM

Very good...

Just a Q Afterburner...

Whats up with the number 11 position?

Satan

Afterburner 07-23-2002 07: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"
Code:

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

<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

Code:

<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 01: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.. :)


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

All credit to him for originally creating the modification.


All times are GMT. The time now is 11:05 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.01549 seconds
  • Memory Usage 1,733KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete