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)
-   -   Refer Friends! (https://vborg.vbsupport.ru/showthread.php?t=40355)

dstruct2k 06-17-2003 09:17 PM

Addon has been completed, tested, and now works! Someone send me e-mails saying that the $bbuserinfo var holds all the information in the User table for the current user.... I tried adding another un-needed query... :p

Anyways, here's the addon, just replace the PHP and the template, and run this SQL query:[sql]ALTER TABLE `user` ADD `referrals_sent` SMALLINT UNSIGNED DEFAULT '0' NOT NULL ;[/sql]


Once this addon is installed, you can show the current number of sent referrals on any vB page with $bbuserinfo[referrals_sent]

Enjoy!

dstruct2k 06-17-2003 09:22 PM

Oh, and Mist, you might wanna get rid of that attachment too.... I think it's kinda screwed on the "Sending Mail" line... :smoke:

Marulatree 07-15-2003 09:21 AM

My members are still having errors - see quote below:

Quote:

05-27-03 at 05:07 PM Marulatree said this in Post #60
All of my members still get the error page when clicking on refer a friend link. Any ideas. I have installed version 2.0

gspot 01-12-2004 10:31 PM

This changed script only counts the number of actual verified/registered referred members for your users. It will also only show registered and verified referred members in the refer page (status page). You can edit it how you like, but I'm new to php coding, so please reply with any comments.

I got tired of it counting referred members that wouldn't actually be registered and verified... This fixed that.

Also thanks to unixman - all the referred members are now clickable to their profile.

Attached are the new revised files.

armani1072 02-03-2004 11:46 AM

thank you works great !!!

glo 03-07-2004 08:49 AM

Looks great!

does this work with 2.3.0?

gspot 03-07-2004 04:01 PM

Yes... It works great for version, 2.3.0. I ran it on mine for over 4 months before stepping up to version 3

Good luck hope it helps you. :)

glo 03-07-2004 07:34 PM

Thanks for the confirmation Gspot!

Since moving to vb3, have you found many of the hacks you had on your vb2 board were automaticallly built into vb3???

Or are you running it with much less hacks?

gspot 03-08-2004 03:43 AM

actually, I'm not installing very many hacks in my vb3 until the gold is released. There are many hacks that are being upgraded to work in vb3, such as the refer friends hack, but everytime you upgrade, you are required to over-right the files you have hacked, so kind of pointless to me at this time until gold is out..

glo 03-08-2004 03:49 AM

do your members miss any of the old hacks???

I personally only started to hack now, over a year after i got vB, so now the hacks are pretty much rock solid.

Thats my reason for not going to vb3 just yet.


All times are GMT. The time now is 08:06 AM.

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.01303 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete