![]() |
PHP Code:
PHP Code:
=> Less code to process less often, yet same result (if you also remove the unnecessary option to turn off the feature -> if users want to turn it off they will simply disable the product). |
OK, here's what you do. You go to user id 1's account and look at their join date. Use that as the site start date. Then calculate how many hits you "think" you've had and enter that in the hits setting. This is not rocket science. ;)
|
Quote:
|
Currently the code is on global_shutdown, eg. being executed on every page.
But due to the condition it does the query only when the current script is index.php (forumhome). So why not execute it just for index.php and avoid the condition on all other pages? I don't see a reason for putting the code in a global place when there is an appropriate hook forumhome_complete that has exactly the context you want ;) |
OK, that makes sense. Code moved and setting deleted.
Can the starting count setting code stay in global_shutdown or should that be moved also? And thanks for the heads up, sir. You know when you speak, I listen. ;) |
I'd remove that from frontend code and handle it completely within ACP:
Make appropriate plugins for the misc.php ACP script and let the user set the start there - no need for an option. |
OK, you lost me on that one. How would they set it?
|
Ive reinstalled it and now the visitors count is stuck at 0.
|
Read the install file and do the file edit.
|
Quote:
ps all work appreciated ! |
All times are GMT. The time now is 12:53 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:
|