Results 1 to 10 of 174

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Cookie Control [Support Thread]

    Quote Originally Posted by moosesoom View Post
    Hello Design75,
    could you please take a look to my site source? (www dot armiexordinanza dot it)
    It seems correctly loading your code but cookie popup does not appear

    Many thanks, kind regards
    Francesco
    It looks like you are not loading any jquery.

  2. #2
    Join Date
    Dec 2008
    Location
    Rimini, Italy, Italy
    Posts
    67
    Plugin Contributions
    0

    Default Re: Cookie Control [Support Thread]

    How can I debug jquery use (or not use) ? Any pointer for that?

    Thanks
    Francesco

  3. #3
    Join Date
    Dec 2008
    Location
    Rimini, Italy, Italy
    Posts
    67
    Plugin Contributions
    0

    Default 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)


  4. #4
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default 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

  5. #5
    Join Date
    Dec 2008
    Location
    Rimini, Italy, Italy
    Posts
    67
    Plugin Contributions
    0

    Default Re: Cookie Control [Support Thread]

    Done....but results are the same...maybe some other jscript is conflicting with cookie law one?

  6. #6
    Join Date
    Dec 2008
    Location
    Rimini, Italy, Italy
    Posts
    67
    Plugin Contributions
    0

    Default 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.

  7. #7
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Cookie Control [Support Thread]

    Quote Originally Posted by moosesoom View Post
    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!

 

 

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  2. EasyPopulate 4.0 Support Thread
    By chadderuski in forum Addon Admin Tools
    Replies: 3672
    Last Post: 11 Sep 2025, 05:07 PM
  3. BackUp ZC [Support Thread]
    By skipwater in forum All Other Contributions/Addons
    Replies: 285
    Last Post: 23 Dec 2020, 10:40 AM
  4. SysCheck [support thread]
    By swguy in forum All Other Contributions/Addons
    Replies: 36
    Last Post: 24 Oct 2020, 05:28 AM
  5. Replies: 7
    Last Post: 7 Apr 2011, 10:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg