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
:)

winduff 06-20-2008 06:43 PM

muchos gratias :)

Allan 06-20-2008 07:27 PM

Nice idea :)

winduff 06-20-2008 07:33 PM

just spotted, that mod looks great however its not per forum... it counts the threads everywhere but not in specific forums :(

AnimeOmega 06-25-2008 03:43 PM

Awesome hack =] thanks !

Oyabun 06-28-2008 04:01 PM

Could you upload your PHP files? I just edited them all as you described, but it doesn't seem to work.

WA.Helpers 06-28-2008 08:40 PM

Please, add an option to count only threads without posts :)

aamirkhj 07-03-2008 02:21 AM

It is not counting posts in the specified forum, post counter seems not working, any solutions ??

Dark Zero 07-03-2008 03:18 AM

Quote:

Originally Posted by Oyabun (Post 1561345)
Could you upload your PHP files? I just edited them all as you described, but it doesn't seem to work.

I can't add the entire files, they have copyright, sorry
Quote:

Originally Posted by WA.Helpers (Post 1561538)
Please, add an option to count only threads without posts :)

Only counting new threads? Since this hack control most instances is possible in the future!

Quote:

Originally Posted by aamirkhj (Post 1565440)
It is not counting posts in the specified forum, post counter seems not working, any solutions ??

You add the product and set the forums in the vBulletin options section?
Also you apply all the file edit required?

WA.Helpers 07-06-2008 11:58 AM

Thank you for reply.

Quote:

Only counting new threads? Since this hack control most instances is possible in the future!
Yes, it will be useful for counting all posted hacks, releases, announcements..etc.

Skyrider 07-07-2008 03:50 PM

Hey Dark Zero, I have this great plugin installed! Thanks for this. But I have a small problem. I also have installed this plugin: https://vborg.vbsupport.ru/showthread.php?t=177366

Which seems to be taking over the whole posts, and not showing up the offtopic posts at all. Is it possible you can take a look in to this? Also, I've tried to add multiple off-topic section numbers within the adminCP "SPC Forum ID" options, but it seems when I post in the off-topic section, the post count of the offtopic posts won't rise at all.

EDIT:
This plugin doesn't work properly I'm afraid. My sub sections where it should be working is as followed: 5, 19, 22 ,23 ,24 on http://forum.esforces.com/forumdisplay.php?f=5

Yet, it doesn't work as it should.. It seems to be only working within the Fan Fics and Fight Club section. Can this be fixed if possible?

Dark Zero 07-07-2008 11:46 PM

Ok, i see the problem, the old explode function for counting the ids also counts the spaces. For next version this one only counts number and commas.

For workaround this, use this format for put the ids: [number][comma][space]
5, 19, 22, 23, 24

For all people with problems with special posts try this
:)

Skyrider 07-08-2008 12:07 AM

Quote:

Originally Posted by Dark Zero (Post 1569626)
Ok, i see the problem, the old explode function for counting the ids also counts the spaces. For next version this one only counts number and commas.

For workaround this, use this format for put the ids: [number][comma][space]
5, 19, 22, 23, 24

For all people with problems with special posts try this
:)

It seems to be working :), but I still have problems with the activity plugin installed. I need to find a way to add the offtopic posts in it as well.

Dark Zero 07-08-2008 12:30 AM

Quote:

Originally Posted by FF|Skyrider (Post 1569645)
It seems to be working :), but I still have problems with the activity plugin installed. I need to find a way to add the offtopic posts in it as well.

You should ask to the mod author for use other counter aside from the default one in his mod :)

Skyrider 07-08-2008 06:57 AM

Quote:

Originally Posted by Dark Zero (Post 1569663)
You should ask to the mod author for use other counter aside from the default one in his mod :)

I'd like the counter to be like the activity plugin though, as it looks good :).

jafari 07-09-2008 05:40 AM

Is there any way to count old posts (post send before install this mod) ?
I think this mod only count post which post after mod install !

Dark Zero 07-09-2008 05:53 AM

Quote:

Originally Posted by jafari (Post 1570727)
Is there any way to count old posts (post send before install this mod) ?
I think this mod only count post which post after mod install !

no for the moment but in the next version i will add that option

jafari 07-09-2008 06:26 AM

and the next version realse date? :confused:

Dark Zero 07-11-2008 11:41 AM

Quote:

Originally Posted by jafari (Post 1570759)
and the next version realse date? :confused:

Today and now i finish it :)

jafari 07-11-2008 02:25 PM

Thanks Dark zero !

Jhonnyf 10-04-2008 03:16 PM

don't work in 3.7.3

WoGuziczek 12-08-2008 06:39 PM

Jhonnyf, This hack work perfectly on 3.7.3 ;)

Good work :)

Howie6666 02-04-2009 10:19 AM

What exactly are the installation steps?

Im a bit of a newbie.. do i have to know code for this?

Where do i upload the php files.. Which directory?

And does this mod count previous posts? Was that fixed?

Falon 02-15-2009 04:10 PM

I have installed this mod: https://vborg.vbsupport.ru/showthrea...Thank+You+AJAX
and my post counter (your mod) is bellow.
I want your mod under main post counter.

J3rico 03-23-2009 11:23 AM

Hi, very nice mod, thanks! Only one question, is possible to select some groups, for example only the registered users and not the staff?
thanks so much !!!

jeremycards 05-17-2009 10:08 PM

i have a question. What im looking for is a post counter than counts the posts users make in a single thread (or subforum if its not posible for thread). Because im making a forum game where users get stronger depending how many posts they made in an especific thread, so i would need something than tells me that. Can this add-on tell me how many posts did each user made in that subforum or thread?.

Maast 07-20-2009 03:37 AM

tried to install it on 3.8.3
install looked like it went well, my problem occurred when I went into the admin panel and clicked on Maintenance then clicked on Update counters and the page went blank which would led me to believe that there is a code problem on that page but I didn't modify that page?
any ideas? Also forum manager was not working as well so I had to uninstall it?

RedHacker 08-28-2009 07:10 AM

Dont worked in 3.8.1 it saw 0 Offtopic posts

Tettinntil 06-04-2010 08:53 PM

3.8.4.
Updating the counter manually works, but it seems as if it does not automatically count if I do not update...

Tettinntil 06-05-2010 07:47 AM

Will the counter work if the setting for the forums is set to not count the posts in the user's postcount?


All times are GMT. The time now is 07:14 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.01442 seconds
  • Memory Usage 1,811KB
  • 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
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (39)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete