![]() |
HITCounter - Link Forum Counter
This is a port originally By Zajako and Mone.
With kind permission i've updated the mod for vBulletin 3.5, this version comes with an enhancement, i.e via your ACP (forum manager) you can adjust the starting value for any counter. Installation is done easily via the importing of an xml file. See screenshots! Enjoy! Update : Huge Respect to KirbyDE who really is the genius behind this mod, cheers dude. Update 1.3 : optimized code - (no more updates to totals) - Thanx KirbyDE If you use this mod please click Install - cheers! |
Can't you do the file edit via a plug-in?
|
Quote:
-b6 |
Quote:
Shouldn't this be in plug-ins then? |
No need to be sorry your right, there is a file edit in three places within "functions_forumlist.php", everything else gets automagically installed via the xml file settings, template, queries etc...
The file edit merges the new 'linkhits' template into the forum home display, maybe the next version will be free of file edits... which would be great! -b6 |
There should be some hooks you can use for the file edits, though, shouldn't there?
|
The Template is not the Problem, can be done with a Plugin.
Hook: forumbit_display PHP Code:
However, getting the count doesn't seem to be possible without the File edit. The other Option would be to use a Query. But this would add 1 Query to Forumhome and every forumdisplay.php call where the Forum being displayed contains sub-forums that are links. Or the Forumcache would have to be rebuild upon every Hit, which is even worse IMHO. However, some furhter suggestions: Your Counter-Update seems to be run every Time smth. is being done in ACP? I'd suggest to get rid of the Settings and the admin_global Plugin. Instead, make a new control in Forum Manager that shows the current Value so the User can just input it's own. Hook: forumdata_start PHP Code:
PHP Code:
Don't execute the Update in Global-Start, as this causes 1 additional Query for every Forum being displayed, no matter if it is a Link or not. Hook: header_redirect PHP Code:
Hook: cache_templates PHP Code:
|
Thanx KirbyDE, i'll look into this...cheers
-b6 |
There you go! I knew Kirby would be able to help. ;)
|
b6gm6n - is the username Kingpin related?
|
All times are GMT. The time now is 09:51 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|