The mod does not work as is. And developer has stopped supporting. So I have customised it to work for my site.
I tested & figured out that whatever I add in the global_bootstrap_init_start get appended in the home page URL.
For e.g:
PHP Code:
$engage_callback = $vbulletin->input->clean_gpc('g', 'engage_callback', TYPE_INT);
$add_engage_identifier = $vbulletin->input->clean_gpc('g', 'add_engage_identifier', TYPE_INT);
Leads to URL being
/?engage_callback&add_engage_identified=0
If I change it to
PHP Code:
$engage_callback = $vbulletin->input->clean_gpc('g', 'testing', TYPE_INT);
The URL becomes
/?testing=0
That is if I change the get variable to something that I'm not using in the rest of the code.
I have checked if the php variable $engage_callback has any effect. But it does not. I can change the php variable to whatever I want and there is no change in the the behaviours.
What I see in the Page Source is that the javascript code embedded in it is
Code:
var RELPATH = "?add_engage_identifier=0";
instead of
How does the
PHP Code:
$vbulletin->input->clean_gpc('g', 'add_engage_identifier', TYPE_INT)
results in the
RELPATH variable being filled?
--------------- Added [DATE]1332649890[/DATE] at [TIME]1332649890[/TIME] ---------------
And I tried disabling a few plugins that I have to isolate the problem and it doesn't seem to be due to any of them.