The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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? |
#2
|
|||
|
|||
![]()
Try using isset() on the variable governing the redirection URL.
|
#3
|
||||
|
||||
![]()
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. |
#4
|
||||
|
||||
![]() 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:
![]() |
#5
|
||||
|
||||
![]()
I should have specified... I'm trying to avoid all file modifications.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|