Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Referrals in Postbit Details »»
Referrals in Postbit
Version: 1.00, by WhaLberg WhaLberg is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.5 Rating:
Released: 04-06-2007 Last Update: Never Installs: 111
 
No support by the author.

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!

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-07-2007, 11:57 AM
zhabbo zhabbo is offline
 
Join Date: Aug 2006
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks,
Reply With Quote
  #3  
Old 04-07-2007, 09:12 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, installed.
I changed <br> to <br /> though
Reply With Quote
  #4  
Old 04-07-2007, 09:53 PM
bacanze bacanze is offline
 
Join Date: Mar 2007
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cheers, might be useful.
Reply With Quote
  #5  
Old 04-07-2007, 11:39 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 04-08-2007, 12:32 AM
NaughtyStud's Avatar
NaughtyStud NaughtyStud is offline
 
Join Date: Jan 2007
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice plugin, Thanks.
Reply With Quote
  #7  
Old 04-08-2007, 05:28 AM
jerrygad jerrygad is offline
 
Join Date: Sep 2006
Location: In Front Of My PC!
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, nice plugin, indeed. Thanks for sharing it with us
*installed*
Reply With Quote
  #8  
Old 04-08-2007, 05:41 AM
zınar's Avatar
zınar zınar is offline
 
Join Date: Aug 2006
Location: End?l?s
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice plugin thanks whalberg,installed.
Reply With Quote
  #9  
Old 04-08-2007, 02:22 PM
Jay... Jay... is offline
 
Join Date: Jan 2006
Location: Sunderland, UK
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 04-08-2007, 02:53 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09082 seconds
  • Memory Usage 2,288KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete