Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cookies Plugin
#1
Upload to extend new plugin to accept web cookies: http://get-simple.info/extend/plugin/coo...lugin/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.
Reply
#2
hi, thanks looks great so far. but it seems like there is a problem to display the translation.

   
Reply
#3
Nice, we needed a plugin for that.
Reply
#4
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.
Reply
#5
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
Reply
#6
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
Reply
#7
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 ?
Reply
#8
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.
Reply
#9
Check if in data/other/cbcookies/cbcookies.xml is created, and permissions of folder and file.

Regards.
Reply
#10
Upload new version(1.3) to extend, more compatible with i18n multilanguage...

Regards.
Reply
#11
(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.
Reply
#12
Hi Dora,

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

Upload new minor version with this fixed.
Regards.
Reply
#13
@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.
Reply
#14
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?
Reply
#15
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
Reply
#16
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!
Reply
#17
in the theme template http://prntscr.com/js4ohn
Reply
#18
(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
Reply
#19
(2018-06-08, 01:16:49)Oleg06 Wrote: in the theme template http://prntscr.com/js4ohn

thank you so much! will try this.
Reply
#20
(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
Reply
#21
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 -->
Reply
#22
thanks all. it worked. yay!
Reply
#23
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.
Reply
#24
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 } ?>
Reply
#25
(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


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply




Users browsing this thread: 1 Guest(s)