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)
-   -   Referrals In Postbit Template (https://vborg.vbsupport.ru/showthread.php?t=36845)

Matt 03-31-2002 09:00 PM

Referrals In Postbit Template
 
I am not a master hacker *lol* and I spent a while trying to figure out how to get this damn thing to work!

Requested By : Mist

What Does It Do?
Simply allows you to use $referrals in the postbit template. This will display the users total number of referrals.

Hack temporarily Retracted ;)

Freddie Bingham 04-01-2002 02:51 PM

This is a *bad idea*.

Matt 04-01-2002 02:52 PM

Here it is....

Recluse 04-01-2002 02:55 PM

Quote:

Originally posted by freddie
This is a *bad idea*.

why? just wondering :lick:

Matt 04-01-2002 02:56 PM

I was about to ask the same *lol*

Admin 04-01-2002 03:14 PM

Quote:

Originally posted by freddie
This is a *bad idea*.
I haven't seen the file but I guess it adds a query per user on showthread.php.

Anyway, Matt, take a look at freddie's query here:
https://vborg.vbsupport.ru/showthrea...threadid=25170 (when I started and had no clue :eek: )
It should give you a basic idea of how to implement this.

Matt 04-01-2002 03:16 PM

Thanks for replying, Freddie vanished after he said that and I was totally confused by what he meant.

It did add a query per user yes. I will have a look into trying to get rid of that, just being new to all of this I saw it worked and posted. :(

Thanks again!

*goes off to try and fix it*

Matt 04-01-2002 03:18 PM

I was actually thinking of just creating a new table in user and storing the total referrals, as then I could just pull it out with the rest. Is that a bad idea?

Admin 04-01-2002 03:21 PM

It's either that or another query in showthread.php. I really don't know enough to tell you what's better performance wise, but I do have a feeling another field on the already busy user table for larger boards would be bad.

Matt 04-01-2002 03:30 PM

Thanks. I am just confused as to how you can get the info I need without looping through the members.


All times are GMT. The time now is 03:53 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.01449 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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