PDA

View Full Version : Show Thread Enhancements - Special Post Counter


Dark Zero
06-18-2008, 10:00 PM
Click in Install for receive update news and better support!!

This is a port for 3.7 version of the same name (https://vborg.vbsupport.ru/showthread.php?t=68041) 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):
Show in other sections different as Show Thread
AdminCP controls for search of modify
Rebuild Special Post Counter - done
Move Post/Thread
Search by special posts exclusively
Merge/Unmerge Post/ThreadI 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
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
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
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
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!

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.

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
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
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
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
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
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/showthread.php?t=165673&highlight=Post+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?