Re: Cookie Control [Support Thread]
my template jscript dir:
BAKjquery.form.min.jsBAK
jscript_google_analytics.php
jscript_supertracker.php
BAKjscript_script_loader.phpBAK
jquery-1.4.4.min.js
jscript_cookieControl-5.1.min.php
jscript_imagehover.js
on_load
jquery 1.4.4 is correctly loaded for image management with lightbox popups
I tried to substitute jquery 1.4.4 wint 1.7 from google apis, but I have same result: lightbox is ok, cookie law popup doed not show at all (as long ad it's present in page source)
:(
Re: Cookie Control [Support Thread]
Yes you are loading jquery for lightbox, but that si not site wide.
find in includes/ templates/YOUR_TEMPLATE/common/html_header.php
PHP Code:
/**
* load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically
*/
$directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js');
while(list ($key, $value) = each($directory_array)) {
echo '<script type="text/javascript" src="' . $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value . '"></script>'."\n";
}
<?php
/**
* load all page-specific jscript_*.js files from includes/modules/pages/PAGENAME, alphabetically
*/
and change it to
PHP Code:
/**
* load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically
*/
$directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js');
while(list ($key, $value) = each($directory_array)) {
echo '<script type="text/javascript" src="' . $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value . '"></script>'."\n";
}
/** CDN for jQuery core **/
?>
<script>window.jQuery || document.write('<script src="//code.jquery.com/jquery-1.11.1.min.js"><\/script>');</script>
<script>window.jQuery || document.write('<script src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"><\/script>');</script>
<?php
/**
* load all page-specific jscript_*.js files from includes/modules/pages/PAGENAME, alphabetically
*/
this will ensure to load jquery when it is not loaded by another script
Re: Cookie Control [Support Thread]
Done....but results are the same...maybe some other jscript is conflicting with cookie law one?
Re: Cookie Control [Support Thread]
SOLVED!!!!
In italian language files I had to substitute a\' with à and so on... (I hate accented vowels) :)
Hope it could help everyone with this problem.
Re: Cookie Control [Support Thread]
Quote:
Originally Posted by
moosesoom
SOLVED!!!!
In italian language files I had to substitute a\' with à and so on... (I hate accented vowels) :)
Hope it could help everyone with this problem.
Wow, good catch. I never would have guessed that!
1 Attachment(s)
Re: Cookie Control Support Thread
Hi,
I'm using ZenCart 1.5.4 and have just installed Cookie Control.
When the Cookie Control displays it shows two triangles (or a triangle and a diamond if configured to show a diamond). I've checked all of the install files etc. Any ideas what is going wrong?
Attachment 15678
Re: Cookie Control Support Thread
Do you have a link to your site?
Re: Cookie Control Support Thread
A client is using this plugin but a resource is returning a 403. Specifically, https://ssl.geoplugin.net/javascript.gp in tpl_cookie_control.php
I've contacted Geo Plugin (waiting for a reply). Is there another way to accomplish this until they fix the issue on their end?
Re: Cookie Control Support Thread
Quote:
Originally Posted by
jeking
A client is using this plugin but a resource is returning a 403. Specifically,
https://ssl.geoplugin.net/javascript.gp in tpl_cookie_control.php
I've contacted Geo Plugin (waiting for a reply). Is there another way to accomplish this until they fix the issue on their end?
Likewise, looking at the cookie-control javascript I don't see where that geoplugin script's output is even used.
Re: Cookie Control Support Thread
It has been a long time since i had a look at this code, but I think it is used with "geoplugin_countryName". And I think i remember seeing a mention somewhere that that is a paid service nowadays
Quote:
Originally Posted by
lat9
Likewise, looking at the cookie-control javascript I don't see where that geoplugin script's output is even used.