![]() |
counter code and redir pages
vB3 gold.
I have counter code for my hit counter in my phpinclude_start template. The counter is being incremented on redirection pages, whether the redirection pages are disabled or not. In my case I have redir pages disabled, so the result is the counter is incremented twice when a form is submitted. The redir pages are spawned by many different files, so checking THIS_SCRIPT will not work. Any other ideas? |
Try using isset() on the variable governing the redirection URL.
|
That's a good idea. But it didn't work.
Based on that suggestion, I looked at the STANDARD_REDIRECT template and the standard_redirect() function, looking for variables to check. I tried them all, no luck. |
Quote:
For fear of saying something obvious and making myself look like an idiot, I'll suggest a long and boring way of doing things. 1. I'd put up a flag in print_standard_redirect(), functions.php. PHP Code:
PHP Code:
|
I should have specified... I'm trying to avoid all file modifications.
|
All times are GMT. The time now is 02:00 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|