Posts: 357
Threads: 23
Joined: Dec 2009
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.
Posts: 5
Threads: 1
Joined: Mar 2013
2013-12-04, 10:14:10
(This post was last modified: 2013-12-04, 10:16:01 by oldRemovedUser.)
hi, thanks looks great so far. but it seems like there is a problem to display the translation.
Posts: 1,247
Threads: 82
Joined: Feb 2011
Nice, we needed a plugin for that.
Posts: 357
Threads: 23
Joined: Dec 2009
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.
Posts: 218
Threads: 59
Joined: May 2013
2014-04-28, 22:36:16
(This post was last modified: 2014-04-28, 22:36:26 by phpman.)
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
Posts: 357
Threads: 23
Joined: Dec 2009
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
Posts: 218
Threads: 59
Joined: May 2013
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 ?
Posts: 3,491
Threads: 106
Joined: Mar 2010
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.
Posts: 357
Threads: 23
Joined: Dec 2009
Check if in data/other/cbcookies/cbcookies.xml is created, and permissions of folder and file.
Regards.
Posts: 357
Threads: 23
Joined: Dec 2009
Upload new version(1.3) to extend, more compatible with i18n multilanguage...
Regards.
Posts: 1
Threads: 0
Joined: Jun 2015
(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.
Posts: 357
Threads: 23
Joined: Dec 2009
Hi Dora,
you are right. If you have enabled debug this message is displayed...
Upload new minor version with this fixed.
Regards.
Posts: 185
Threads: 8
Joined: Apr 2012
@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.
Posts: 2
Threads: 0
Joined: Dec 2016
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?
Posts: 357
Threads: 23
Joined: Dec 2009
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
Posts: 5
Threads: 0
Joined: Jun 2018
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!
Posts: 1,922
Threads: 87
Joined: Apr 2010
Posts: 1,247
Threads: 82
Joined: Feb 2011
2018-06-08, 18:57:59
(This post was last modified: 2018-06-08, 18:59:19 by datiswous.)
(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
Posts: 5
Threads: 0
Joined: Jun 2018
(2018-06-08, 01:16:49)Oleg06 Wrote: in the theme template http://prntscr.com/js4ohn
thank you so much! will try this.
Posts: 5
Threads: 0
Joined: Jun 2018
(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
Posts: 5
Threads: 0
Joined: Jun 2018
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 -->
Posts: 5
Threads: 0
Joined: Jun 2018
thanks all. it worked. yay!
Posts: 21
Threads: 6
Joined: Dec 2015
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.
Posts: 116
Threads: 12
Joined: Nov 2014
2023-02-17, 21:11:09
(This post was last modified: 2023-02-17, 21:11:36 by tuxy.)
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 } ?>
Posts: 324
Threads: 5
Joined: May 2012
2023-02-18, 00:56:13
(This post was last modified: 2023-02-18, 00:57:29 by islander.)
(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
|