vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Referrals in Postbit (https://vborg.vbsupport.ru/showthread.php?t=144222)

WhaLberg 04-06-2007 10:00 PM

Referrals in Postbit
 
Dear vBulletin users,

Yesterday I saw a thread about "how to show referrals in postbit" and I decided to do a favour to those people who want that.

HOW TO INSTALL

1) Please upload the "plugin" first.

2) Go to your postbit or postbit_legacy template and find:
HTML Code:

$vbphrase[posts]: $post[posts]
Add after:
HTML Code:

<br />Referrals: $referrals
That's all!

Congratulations! You have it working!


zhabbo 04-07-2007 11:57 AM

Thanks,

Floris 04-07-2007 09:12 PM

Nice, installed.
I changed <br> to <br /> though

bacanze 04-07-2007 09:53 PM

Cheers, might be useful.

Logikos 04-07-2007 11:39 PM

I would suggest using vBulletins database class to do this.

PHP Code:

$refcount $db->query_first_slave("SELECT COUNT(*) AS count FROM " TABLE_PREFIX "user WHERE referrerid = $this->post[userid]");
$referrals vb_number_format($refcount['count']); 



Would be more efficient. :)

NaughtyStud 04-08-2007 12:32 AM

Nice plugin, Thanks. ;)

jerrygad 04-08-2007 05:28 AM

Yeah, nice plugin, indeed. Thanks for sharing it with us :D
*installed*

zınar 04-08-2007 05:41 AM

Nice plugin thanks whalberg,installed.

Jay... 04-08-2007 02:22 PM

is there anyway to get the font of 'Referrals' in the postbit the same as the rest of the items in the postbit?

have a look at where it says referrals, you'll see what i mean

http://www.donkproject.net/forum/showthread.php?t=399

Brandon Sheley 04-08-2007 02:53 PM

nice hack, I agree .. I would want the font a little smaller to match


All times are GMT. The time now is 04:52 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.01140 seconds
  • Memory Usage 1,734KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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