GetSimple Support Forum
Cookies Plugin - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: Cookies Plugin (/showthread.php?tid=5411)

Pages: 1 2


Cookies Plugin - cumbe - 2013-12-01

Upload to extend new plugin to accept web cookies: http://get-simple.info/extend/plugin/cookies-plugin/742/

The plugin displays a message to accept web cookies; it creates a cookie in browser.
It is easy to use. Information in extend.

Regards.


RE: Cookies Plugin - oldRemovedUser - 2013-12-04

hi, thanks looks great so far. but it seems like there is a problem to display the translation.

[attachment=323]


RE: Cookies Plugin - datiswous - 2013-12-05

Nice, we needed a plugin for that.


RE: Cookies Plugin - cumbe - 2013-12-05

Hi inJection; you have right, there is a bug with langs....

Upload to extend a new version fixed the bug.

datiswous, I needed it too...

Regards.


RE: Cookies Plugin - phpman - 2014-04-28

Hi cumbe,

i have a question i use SEO Manager and i like to use the cbcookie plugin too.

But now i have the problem that SEO Manager use a function called get_footer() too. And i do not use this function of SEO Manger which are now enabled if i add this to the template to use cbcookie.

Is there any workaround to use cb cookie with different function call?

Hope you can help.

Harald


RE: Cookies Plugin - cumbe - 2014-04-29

Hi phpman,

I think that you can use the function cb_cookies() directly in template and don't use get_footer().

Code:
<?php cb_cookies(); ?>

Regards


RE: Cookies Plugin - phpman - 2014-04-29

hmm... if i do this i show only the "accept" test on top or bottom of my side not the message behind
which generate normaly from cb_cookie. What i made wrong ?


RE: Cookies Plugin - Carlos - 2014-04-29

You should have a <?php get_footer(); ?> tag in your template. Both plugins should be able to use that function without conflicts. But there must only be one get_footer call.


RE: Cookies Plugin - cumbe - 2014-04-30

Check if in data/other/cbcookies/cbcookies.xml is created, and permissions of folder and file.

Regards.


RE: Cookies Plugin - cumbe - 2015-11-29

Upload new version(1.3) to extend, more compatible with i18n multilanguage...

Regards.


RE: Cookies Plugin - Dora - 2016-04-25

(2015-11-29, 07:47:56)cumbe Wrote: Upload new version(1.3) to extend, more compatible with i18n multilanguage...

Regards.

I have this message displayed on my main page after updating to " Cookies Plugin" version 1.3.



Notice: Undefined index: cbcookies/name in /home/byzatisn/www/plugins/cbcookies.php on line 39

Anything I can do about that ?

Thank you.


RE: Cookies Plugin - cumbe - 2016-04-25

Hi Dora,

you are right. If you have enabled debug this message is displayed...

Upload new minor version with this fixed.
Regards.


RE: Cookies Plugin - morvy - 2016-05-06

@cumbe small suggestion, maybe the CSS inclusion could be enabled/disabled in backend, so developer can use his own styles, and maybe that small part of code would be faster with inlining, no need to include another external file.


Activation changes css style in backend - gaetanoc - 2017-01-05

When I activate the plugin the style of characters in GS administration changes and becomes bigger: how can I activate the plugin without have chenges in characters?


RE: Cookies Plugin - cumbe - 2017-01-07

Hi gaetanoc,
I have tested with last version of GS and cookies plugin and haven't had any change.
What theme is using?
Enable debug mode and use firebug to check this change of style.
Regards


RE: Cookies Plugin - lindacarey - 2018-06-08

any help with this would be so much appreciated. I installed this plugin but it does not show up at all. I saw in the documentation that you have to add get_footer() in template.

My question is ... which template? The theme file?

I am new to GetSimple. I inherited it from another designer. Also is there supposed to be some sort of code before the "get_footer()" ? I don't know code at all.

I emailed the developer but never got a reply :-(

HELP!


RE: Cookies Plugin - Oleg06 - 2018-06-08

in the theme template http://prntscr.com/js4ohn


RE: Cookies Plugin - datiswous - 2018-06-08

(2018-06-08, 00:58:11)lindacarey Wrote: any help with this would be so much appreciated. I installed this plugin but it does not show up at all. I saw in the documentation that you have to add get_footer() in template.

My question is ... which template? The theme file?

I am new to GetSimple. I inherited it from another designer. Also is there supposed to be some sort of code before the "get_footer()" ?   I don't know code at all.

I emailed the developer but never got a reply :-(

HELP!

You have to add it to where the <footer></footer> is located in your theme code. This can be the main template file (Default Template), but it can also be another file like for example footer.inc.php - in some themes the template is devided in seperate files, like header, sidebar, default template and footer. For example the default suplied theme Innovation has this structure.

See also: http://get-simple.info/wiki/how_to:theme_editor


RE: Cookies Plugin - lindacarey - 2018-06-11

(2018-06-08, 01:16:49)Oleg06 Wrote: in the theme template http://prntscr.com/js4ohn

thank you so much! will try this.


RE: Cookies Plugin - lindacarey - 2018-06-11

(2018-06-08, 18:57:59)datiswous Wrote:
(2018-06-08, 00:58:11)lindacarey Wrote: any help with this would be so much appreciated. I installed this plugin but it does not show up at all. I saw in the documentation that you have to add get_footer() in template.

My question is ... which template? The theme file?

I am new to GetSimple. I inherited it from another designer. Also is there supposed to be some sort of code before the "get_footer()" ?   I don't know code at all.

I emailed the developer but never got a reply :-(

HELP!

You have to add it to where the <footer></footer> is located in your theme code. This can be the main template file (Default Template), but it can also be another file like for example footer.inc.php - in some themes the template is devided in seperate files, like header, sidebar, default template and footer. For example the default suplied theme Innovation has this structure.

See also: http://get-simple.info/wiki/how_to:theme_editor



RE: Cookies Plugin - lindacarey - 2018-06-11

ok thanks for this info. it's helpful! The theme is Innovation so I guess I put the code at the end of the footer.inc.php file like this?

</div>
<?php get_footer(); ?>
</footer>
</div>

</div><!-- /.container -->


RE: Cookies Plugin - lindacarey - 2018-06-11

thanks all. it worked. yay!


RE: Cookies Plugin - backit - 2019-08-14

Hi, thanks for the plugin.

To set cookies only if the user accept it, i added a reload document in acceptco function:
Code:
<script type="text/javascript">

function acceptco(id, ident){
    if (ident == "cbcookies"){
        var frm=document.getElementById(id);
        if(frm.style.display=="block"){
                var fecha = new Date();
                tiempo = <?php echo $cbtmp; ?>;
                fecha.setTime(fecha.getTime() + tiempo);
                document.cookie = "acceptco" + ' = ' + escape("Y") +         ((tiempo == null) ? "" : "; expires = " + fecha.toGMTString()) +"; path=/";
                frm.style.display="none";
        }
    }
    location.reload();  // <<== added this line
}
</script>

and where is the set cookies function (i.e. googleanalytics):
Code:
<!-- Check if cookie accepted -->
<script>
function checkCookie(){
   // acceptco = getsimple cookies plugin  
   if (document.cookie.split(';').filter((item) => item.trim().startsWith('acceptco=')).     length) {
      return true;
   }
   return false;
}
</script>
<!-- -------- -->



<script async src="https://www.googletagmanager.com/gtag/js?id=xxxxx"></script>
<script>
   if ( checkCookie() ){
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
      gtag('config', 'xxxxx', { 'anonymize_ip':true });
   }
</script>

in this way everywhere you have to set a cookie just use checkCookie() before setting it.


RE: Cookies Plugin - tuxy - 2023-02-17

Hi guys,
Installed the Cookies-plugin on my test-website.
The message shows up correctly, but is there a way, if the visitor not click on the ACCEPT button the tracking scripts are disabled/hide, until the visitor clicks on the 'accept' button?

Is there a way implement this in the Cookie plugin or with an if-condition disabled/enabled the scripts in the theme-template.

Example:


Code:
<?php if (cookie-plugin == ACCEPT) { ?>
<script>
TRACKING-CODE
</script>
<?php } ?>



RE: Cookies Plugin - islander - 2023-02-18

(2023-02-17, 21:11:09)tuxy Wrote: Hi guys,
Installed the Cookies-plugin on my test-website.
The message shows up correctly, but is there a way, if the visitor not click on the ACCEPT button the tracking scripts are disabled/hide, until the visitor clicks on the 'accept' button?

Is there a way implement this in the Cookie plugin or with an if-condition disabled/enabled the scripts in the theme-template.

Example:


Code:
<?php if (cookie-plugin == ACCEPT) { ?>
<script>
TRACKING-CODE
</script>
<?php } ?>
This plugin is only giving notice of the use of cookies.
It does nothing regarding excepting or not.
It is not a GRPD script.
* as for as i know