Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Referrals In Postbit Details »»
Referrals In Postbit
Version: 1.1.0, by Developer Developer is offline
Developer Last Online: Nov 2010 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 02-20-2006 Last Update: 06-08-2006 Installs: 53
Uses Plugins Template Edits
 
No support by the author.

Number Of Referrals In Postbit
Version 1.1.0
Description::.
This hack shows in postbit Number Of Referrals[Requested By cmiller1014 ]
Hack Features::.
1-easy yo install
[See Screen Shot]

Installation::.
1-Import The product.
2-run this script admincp/misc.php?do=referrals to insert number of referrals into the new field
3-Edit Template postbit
Find:
Code:
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
Add after it
Code:
<if condition="$vboptions['usereferrer']">
			<div class="smallfont">
			<strong>$vbphrase[referrals]</strong> $post[referrals]
				</div>
                                                   </if>
2-Edit Template postbit_legacy
Find:

Code:
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
Add after it

Code:
<if condition="$vboptions['usereferrer']">
			<div class="smallfont">
			<strong>$vbphrase[referrals]:</strong> $post[referrals]
				</div>
                                                   </if>
History::.
1.0.0 On 21. Feb 2006 Initial Version.
1.1.1 On 26 Apr 2006 Fix Major BUG.
Hack Languages::.
  • English
Details::.
2 plugins, 3 phrases, 0 option, 0 query

Donation::.
Feel Free To
aT lAsT::.
IF YOu lIkE iT cLIcK INSTALL
vbulletin.org
[/B]
Support Given For Who Clicked Install {ONLY}

Show Your Support

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

Comments
  #22  
Old 04-26-2006, 11:06 AM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 1.1.0 Released fixs all bugs, added a new field in user table to add in it the total number of referrals to avoid using query for each post and you have first to uninstall the old plugin then install the new product and make sure overwrite set on no, after this u've to run this script admincp/misc.php?do=referrals to insert number of referrals into the new field, then do the new template edit
Reply With Quote
  #23  
Old 04-29-2006, 09:49 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will you have to always manually update the referrals in the Admin CP or just the first time?
Reply With Quote
  #24  
Old 04-29-2006, 10:13 AM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nop, first time only
after that automatically in registration using datamanger it will add + 1 to the field in user's table.(look at the product)
Reply With Quote
  #25  
Old 04-29-2006, 10:33 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great! I'll give it a shot then.
Reply With Quote
  #26  
Old 04-29-2006, 04:27 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Developer
Nop, first time only
after that automatically in registration using datamanger it will add + 1 to the field in user's table.(look at the product)
I got to looking at the code and was wondering if there wasn't a way to have that query run on install and not show up in the Maintenace tools at all, if it isn't supposed to be run after the first time. Someone is gonna accidentally run that again, it's bound to happen.

Or am I missing it altogether about that query and what it does?
Reply With Quote
  #27  
Old 04-29-2006, 10:18 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could run it again, noting bad should happen. It basicly rebuilds the entire count and sets it even.
Reply With Quote
  #28  
Old 04-29-2006, 11:32 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery
You could run it again, noting bad should happen. It basicly rebuilds the entire count and sets it even.
What do you mean even?
Reply With Quote
  #29  
Old 05-02-2006, 08:50 AM
FunaGuy's Avatar
FunaGuy FunaGuy is offline
 
Join Date: Dec 2005
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed!
Working Properly
Reply With Quote
  #30  
Old 05-02-2006, 01:47 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
What do you mean even?
You could run the update counter all day long, it would be horrible for preformance but besides that it wouldn't do anything bad or destory the counts.
Reply With Quote
  #31  
Old 05-02-2006, 02:34 PM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works awesome, thanks!

/me clicks install
Reply With Quote
Reply


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:05 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.05332 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_code
  • (3)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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