Zen Cart Logo
Forums / All Other Contributions/Addons / Cookie Control [Support Thread]

Cookie Control [Support Thread]

Views: 54,574

Results 101 to 120 of 174
2 Mar 2015, 11:35 AM
#101
simon3215 avatar

simon3215

New Zenner

Join Date:
Dec 2014
Location:
manchester
Posts:
62
Plugin Contributions:
0

Cookie Control [Support Thread]

Also noticed that if i zoom out the js slide dosnt change it stays at max width but everything else works fine .... maybe this points to a solution iv not got the knowledge to notice

15 Mar 2015, 7:42 PM
#102
mikeondraco avatar

mikeondraco

Zen Follower

Join Date:
Feb 2015
Location:
UK
Posts:
165
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Has anyone (else) tried this with ZC1.5.4 yet. My results so far are zero lol

Mike

15 Mar 2015, 8:07 PM
#103
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Cookie Control [Support Thread]

Mikeondraco:

Has anyone (else) tried this with ZC1.5.4 yet. My results so far are zero lol

Mike

It should work just fine on every 1.5.x version.

15 Mar 2015, 9:35 PM
#104
mikeondraco avatar

mikeondraco

Zen Follower

Join Date:
Feb 2015
Location:
UK
Posts:
165
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Design75:

It should work just fine on every 1.5.x version.

Thanks for that - obviously me then :smile:

Mike

16 Mar 2015, 7:30 AM
#105
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Cookie Control [Support Thread]

Mikeondraco:

Thanks for that - obviously me then :smile:

Mike

Do you have a link to your site, that makes it easier to spot problems. Most obviously would be an jQuery error.

16 Mar 2015, 10:58 AM
#106
mikeondraco avatar

mikeondraco

Zen Follower

Join Date:
Feb 2015
Location:
UK
Posts:
165
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Will do so later, am still fighting with the merge of the tpl_main_page.php as I have a template installed over the top too which has already modified that file. Appears to be |(partly) where my trouble is.

Mike

16 Mar 2015, 11:10 AM
#107
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Cookie Control [Support Thread]

Mikeondraco:

Will do so later, am still fighting with the merge of the tpl_main_page.php as I have a template installed over the top too which has already modified that file. Appears to be |(partly) where my trouble is.

Mike

If you open your customized tpl_main_page.php, just add the code below right before the </body> tag

<!--BOF cookie control script-->
<?php if (COOKIE_CONTROL_STATUS == 'true'){?>
<?php require($template->get_template_dir('tpl_cookie_control.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_cookie_control.php');?>
<?php } ?>
<!--EOF cookie control script-->

that's all

16 Mar 2015, 11:28 AM
#108
mikeondraco avatar

mikeondraco

Zen Follower

Join Date:
Feb 2015
Location:
UK
Posts:
165
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Just worked that out and did exactly that. All the other files I have checked and are installed in the correct directories (am using the Winchester_Black template). I now have the site back (sort of) but if you have a look you will see the issues:

1 - the left-hand side boxes and white vertical band should not be there and only appear after inserting the cookie control script text

2 - no cookie control visble

http://www.dracocrafts.com/dczencart

My pasted text into tpl_main_page.php shown right at the bottom.

<script src="<?php echo $template->get_template_dir('jquery.tabSlideOut.v1.3.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/jquery.tabSlideOut.v1.3.js' ?>" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
    $('.slide-out-div').tabSlideOut({
        tabHandle: '.handle',                     //class of the element that will become your tab
        pathToTabImage: '<?php echo $template->get_template_dir('tab.png',DIR_WS_TEMPLATE, $current_page_base,'images') . '/tab.png' ?>', //path to the image for the tab //Optionally can be set using css
        imageHeight: '50px',                     //height of tab image           //Optionally can be set using css
        imageWidth: '60px',                       //width of tab image            //Optionally can be set using css
    tabLocation: 'left',                      //side of screen where tab lives, top, right, bottom, or left
        speed: 300,                               //speed of animation
        action: 'click',                          //options: 'click' or 'hover', action to trigger animation
        topPos: '100px',                          //position from the top/ use if tabLocation is left or right
        leftPos: '20px',                          //position from left/ use if tabLocation is bottom or top
        fixedPosition: true                      //options: true makes it stick(fixed position) on scroll
    });

});

</script>
<div class="slide-out-div"> <a class="handle" href="http://link-for-non-js-users.html">Content</a> <?php echo SLIDE_OUT_CONTENT; ?> </div> <!--BOF cookie control script--> <?php if (COOKIE_CONTROL_STATUS == 'true'){?> <?php require($template->get_template_dir('tpl_cookie_control.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_cookie_control.php');?> <?php } ?> <!--EOF cookie control script--> </body>

Mike

16 Mar 2015, 11:48 AM
#109
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Cookie Control [Support Thread]

Mikeondraco:

Just worked that out and did exactly that. All the other files I have checked and are installed in the correct directories (am using the Winchester_Black template). I now have the site back (sort of) but if you have a look you will see the issues:

1 - the left-hand side boxes and white vertical band should not be there and only appear after inserting the cookie control script text

2 - no cookie control visble

http://www.dracocrafts.com/dczencart

My pasted text into tpl_main_page.php shown right at the bottom.

<script src="<?php echo $template->get_template_dir('jquery.tabSlideOut.v1.3.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/jquery.tabSlideOut.v1.3.js' ?>" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
    $('.slide-out-div').tabSlideOut({
        tabHandle: '.handle',                     //class of the element that will become your tab
        pathToTabImage: '<?php echo $template->get_template_dir('tab.png',DIR_WS_TEMPLATE, $current_page_base,'images') . '/tab.png' ?>', //path to the image for the tab //Optionally can be set using css
        imageHeight: '50px',                     //height of tab image           //Optionally can be set using css
        imageWidth: '60px',                       //width of tab image            //Optionally can be set using css
    tabLocation: 'left',                      //side of screen where tab lives, top, right, bottom, or left
        speed: 300,                               //speed of animation
        action: 'click',                          //options: 'click' or 'hover', action to trigger animation
        topPos: '100px',                          //position from the top/ use if tabLocation is left or right
        leftPos: '20px',                          //position from left/ use if tabLocation is bottom or top
        fixedPosition: true                      //options: true makes it stick(fixed position) on scroll
    });

});

</script>
<div class="slide-out-div"> <a class="handle" href="http://link-for-non-js-users.html">Content</a> <?php echo SLIDE_OUT_CONTENT; ?> </div> <!--BOF cookie control script--> <?php if (COOKIE_CONTROL_STATUS == 'true'){?> <?php require($template->get_template_dir('tpl_cookie_control.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_cookie_control.php');?> <?php } ?> <!--EOF cookie control script--> </body>

Mike

Are you sure you edited the right tpl_main_page.php ? because even if cookie control is not working this should be visible in the source code```

<!--BOF cookie control script-->
16 Mar 2015, 11:51 AM
#110
mikeondraco avatar

mikeondraco

Zen Follower

Join Date:
Feb 2015
Location:
UK
Posts:
165
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Oh right, best go and check then :smile:

Like Arnie, I'll be back...

Mike

16 Mar 2015, 11:58 AM
#111
mikeondraco avatar

mikeondraco

Zen Follower

Join Date:
Feb 2015
Location:
UK
Posts:
165
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

I certainly appear to have, in the unzipped files I have:

required_core_edits\includes\templates\YOUR_TEMPLATE\common

so modified the tpl_main_page.php file in

/dczencart/includes/templates/winchester_black/common

Mike

16 Mar 2015, 4:42 PM
#112
mikeondraco avatar

mikeondraco

Zen Follower

Join Date:
Feb 2015
Location:
UK
Posts:
165
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Ok, some sort of success. I also modified the tpl_main_page.php file in

\includes\templates\template_default\common

with the same cookie script, and now the corner cookie banner works, but not the start-up pop-up, nor does the control box fade out after the 6 seconds if the corner banner is clicked (presume it's supposed to ?).

If I restore the other file back to the original (winchester_black one) then it doesn't work.

Also, the (unwanted) side boxes and white vertical strip are still there, whereas not with the unmodified Winchester_black file.

Progress or not?

Mike

16 Mar 2015, 6:39 PM
#113
mikeondraco avatar

mikeondraco

Zen Follower

Join Date:
Feb 2015
Location:
UK
Posts:
165
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Ok, more progress, although I am not entirely sure what I did, other than upload the modified file again to the winchester_black/common directory, still need the modified file in the template_default\common directory as well though.

The result is that the unwanted side-boxes and white strip have gone, but I still cannot get the fading out pop-up cookie box to display when the site first loads.

Any ideas?

Mike

17 Mar 2015, 11:46 AM
#114
mikeondraco avatar

mikeondraco

Zen Follower

Join Date:
Feb 2015
Location:
UK
Posts:
165
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Mikeondraco:

Ok, more progress, although I am not entirely sure what I did, other than upload the modified file again to the winchester_black/common directory, still need the modified file in the template_default\common directory as well though.

The result is that the unwanted side-boxes and white strip have gone, but I still cannot get the fading out pop-up cookie box to display when the site first loads.

Any ideas?

Mike

Still battling on here - on my own too it seems :dontgetit

The attached image shows the pop-up box when the corner banner is clicked. The text, certainly the box title, is a tad too large, such that it runs into the box closer (X). I am having difficulty (again...) finding the appropriate setting to change this ? Plus of course the issues above.

Attachment #15067

Mike

29 Mar 2015, 11:02 AM
#115
mikeondraco avatar

mikeondraco

Zen Follower

Join Date:
Feb 2015
Location:
UK
Posts:
165
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

Mikeondraco:

Still battling on here - on my own too it seems :dontgetit

The attached image shows the pop-up box when the corner banner is clicked. The text, certainly the box title, is a tad too large, such that it runs into the box closer (X). I am having difficulty (again...) finding the appropriate setting to change this ? Plus of course the issues above.

Attachment #15067

Mike

Something I said? ... Mike

29 Mar 2015, 6:01 PM
#116
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

I am having problems putting this with v1.5.4

29 Mar 2015, 10:50 PM
#117
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

adb34:

I am having problems putting this with v1.5.4

I have this working on v1.5.4

31 May 2015, 10:09 AM
#118
moosesoom avatar

moosesoom

New Zenner

Join Date:
Dec 2008
Location:
Rimini, Italy, Italy
Posts:
67
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

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

31 May 2015, 10:35 AM
#119
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Cookie Control [Support Thread]

moosesoom:

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.

31 May 2015, 6:18 PM
#120
moosesoom avatar

moosesoom

New Zenner

Join Date:
Dec 2008
Location:
Rimini, Italy, Italy
Posts:
67
Plugin Contributions:
0

Re: Cookie Control [Support Thread]

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

Thanks
Francesco