vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Show Thread Enhancements - Special Post Counter (https://vborg.vbsupport.ru/showthread.php?t=182938)

Dark Zero 06-18-2008 10:00 PM

Special Post Counter
 
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 :p

KURTZ 06-19-2008 11:04 AM

buddy i don't understand the files edits ... why i must do these changes?

Dark Zero 06-19-2008 11:28 AM

Quote:

Originally Posted by KURTZ (Post 1553454)
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)

KURTZ 06-19-2008 11:38 AM

what a shame mate ... :)

waza 06-19-2008 12:42 PM

Some of the file edits you describe, could be done with plugins, not all, but some of them.

Leo Brazil 06-19-2008 05:28 PM

This a good idea but a recount for previous posts would be nice.

SCuN 06-19-2008 05:34 PM

great mod
please add rebulid offtopic post counter

Dark Zero 06-20-2008 02:36 AM

Quote:

Originally Posted by waza (Post 1553527)
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.

winduff 06-20-2008 10:51 AM

is it possible to disable the 'post count', meaning that it only counts the threads created?

Dark Zero 06-20-2008 11:53 AM

No, but you can use this:
https://vborg.vbsupport.ru/showthread.php?t=169816
:)


All times are GMT. The time now is 04:09 PM.

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.01177 seconds
  • Memory Usage 1,738KB
  • 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
  • (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