Quote:
Originally Posted by VBDev
Thank you very much for this post !
I am going to add it to the todo list and will do the replacements for the next version.
The only place where there are jquery uses is in the js files and the mgc_cb_evo template.
|
No problem at all sorry it took so long I was so busy with own projects. I posted this issue while you where gone on vacation. Also I have another thing for you which I think is crucial which also fixes a IE issue with the new fix I posted few posts above.
Code:
OPEN PLUGIN: Product : MGC chatbox Evo->Headinclude add
FIND:
$vbulletin->templatecache['headinclude'] = str_replace($vbulletin->templatecache['headinclude'],$vbulletin->templatecache['headinclude'].fetch_template('mgc_cb_evo_headinclude'),$vbulletin->templatecache['headinclude'])
;
REPLACE WITH:
if ($vbulletin->options['mgc_cb_evo_active'] && $vbulletin->userinfo['mgc_cb_evo_show'] && can_view_mgc_cb_evo())
{$vbulletin->templatecache['headinclude'] = str_replace($vbulletin->templatecache['headinclude'],$vbulletin->templatecache['headinclude'].fetch_template('mgc_cb_evo_headinclude'),$vbulletin->templatecache['headinclude'])
;}
CHANGE: Hook Location
FROM:
global_start
TO:
parse_templates
This is crucial to me because your loading jquery and the three other files on EVERY page of my site even though 90% of the time it is not used. This allows for a check IF the user can see it and is allowed too and the chatbox is ON it will load the js otherwise it will not appear. This also fixes the IE issue of jQuery null or not an object when you do the above fix for your mod not interfering with other js platforms.
Enjoy