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

Reply
 
Thread Tools
Special Post Counter Details »»
Special Post Counter
Version: 1.1, by Dark Zero Dark Zero is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.x Rating:
Released: 06-18-2008 Last Update: 07-10-2008 Installs: 42
DB Changes Uses Plugins Auto-Templates
Re-useable Code Code Changes Translations Is in Beta Stage  
No support by the author.

Click in Install for receive update news and better support!!

This is a port for 3.7 version of the same name hack.

Special Post Counter (SPC) adds a extra post counter in postbit. This new counter adds or remove post made in specified forums.
For example, all post made in OffTopic forums go to a OffTopic Post counter instead the regular one. In that way users don't need to flood forums for win post and can keep track of their stats in that section instead of disabling post count for that forum.
This hack only add a new counter for all specified forums one like. Not multiple counters for multiple forums.


Features:
What does include and count this hack:
Post Reply
New Thread
Delete Post/Thread
Restore Post/Thread
Moderate Post/Thread
Inline moderation actions including above ones
Rebuild Special Post Counter - NEW in 1.1


What does not include and count this hack (in order of difficulty):
  1. Show in other sections different as Show Thread
  2. AdminCP controls for search of modify
  3. [S]Rebuild Special Post Counter[/S] - done
  4. Move Post/Thread
  5. Search by special posts exclusively
  6. Merge/Unmerge Post/Thread
I planning add some features listed above in future (show in other sections, admincp controls) but others are a little complex to implement (merge/search/move). Suggestion about them are welcome!


Because vBulletin have hardcoded the post counter instances, multiple file edits are required.
I resumed them into 12 instances in 4 files. Basically all edits are adding a spc count exception.


Version History
(current first):
1.1
- Added Rebuild Special Post Counter in Maintenance
- Fixed a problem with the forum id listing

1.0
- Initial release in 3.7



Installing:
  • Import product-spc_post11.xml
  • Follow file edit instructions in spc_install.html
Upgrading:
  • Import product-spc_post11.xml using Allow Overwrite Option
  • Apply the file edits in spc_update11.html (basically using "replace all" option in notepad) and adjust Forum ID section if need.
Im apologize for my bad grammar and spell, im learning every day

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 06-19-2008, 11:04 AM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

buddy i don't understand the files edits ... why i must do these changes?
Reply With Quote
  #3  
Old 06-19-2008, 11:28 AM
Dark Zero's Avatar
Dark Zero Dark Zero is offline
 
Join Date: May 2002
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KURTZ View Post
buddy i don't understand the files edits ... why i must do these changes?
I can't make the addon with plugin because vbulletin doesn't have hooks for them. So manual edit for files is required (vbulletin 3.0 style)
Reply With Quote
  #4  
Old 06-19-2008, 11:38 AM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what a shame mate ...
Reply With Quote
  #5  
Old 06-19-2008, 12:42 PM
waza waza is offline
 
Join Date: Apr 2005
Location: Belgium
Posts: 341
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Some of the file edits you describe, could be done with plugins, not all, but some of them.
Reply With Quote
  #6  
Old 06-19-2008, 05:28 PM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This a good idea but a recount for previous posts would be nice.
Reply With Quote
  #7  
Old 06-19-2008, 05:34 PM
SCuN SCuN is offline
 
Join Date: Mar 2008
Location: BE
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod
please add rebulid offtopic post counter
Reply With Quote
  #8  
Old 06-20-2008, 02:36 AM
Dark Zero's Avatar
Dark Zero Dark Zero is offline
 
Join Date: May 2002
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by waza View Post
Some of the file edits you describe, could be done with plugins, not all, but some of them.
I ported from 3.0 to 3.7. I used some plugins for auto insert the counter in postbit but i can't find other way to modify all counter instances without doing more sql queries.
Reply With Quote
  #9  
Old 06-20-2008, 10:51 AM
winduff winduff is offline
 
Join Date: Nov 2006
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possible to disable the 'post count', meaning that it only counts the threads created?
Reply With Quote
  #10  
Old 06-20-2008, 11:53 AM
Dark Zero's Avatar
Dark Zero Dark Zero is offline
 
Join Date: May 2002
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, but you can use this:
https://vborg.vbsupport.ru/showthread.php?t=169816
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 08:31 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.05964 seconds
  • Memory Usage 2,297KB
  • 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_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
  • (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