Elgg Cookieconsent v1.0

Release Notes

Initial plugin, just an AMD learncase for myself.

TODO:

  • Make the config available to the AMD module so that you don't have to flush the cache in order for an updated message to take effect.
  • More config options as colours and themes...
  • Can you please update location geo complete plugin?

  • Thanks for this. I used a script within my view before, but prefer your plugin. But there are two things to say:

    I get the following error:

    Failed to load resource: the server responded with a status of 500 (Internal Server Error)

    https://www.DOMAIN.com/cache/1433425134/default/js/elgg_cookieconsent/settings.js

    (the settings.js is called settings.js.php in that directory)

     

    And the window does not appear on top of the topbar like shown in your screenshots.

  • @Hanzolo Have you flushed you chaches on your dashboard?

  • Sorry, I'll try to figure out what's going on, but I cannot reproduce it, so it's difficult :)
    None of the testsites I tried it on were 'https', so maybe that's the issue, I don't know. I'll look into it.

  • Ah, that might very well be. Thank you!

  • Hi Dries, thank you very much for this!

    I am under https and everything works fine (Elgg 1.9, FF, Chrome and IE) so that might not be the issue.

    Two things:

    • I translated the message via translation editor by ColdTrick, flushed both Elgg and browser caches but the english version shows;
    • does the plugin prevent cookies from being installed until user accepts? That's also a very important point of the European law (for profiling cookies, not all but just in case you didn't know....)

    Cheers and thank you again

    M

  • this plugin adds the consent box at the very top of the body element of the page, resulting in search engines including the cookie message within the description of the page (in some cases). it is better to append the cookie consent message so that it is the final element within the body element.

  • I'll look into it, I even forgot about this plugin.
    Havent a week off next week might give me some time to overthink this and do what's necessary :)

  • ah, ok. the solution is simple. i just changed this, in cookieconsent.js:

          if (!this.container.lastChild) {
            this.container.appendChild(this.element);
          } else {
            this.container.insertBefore(this.element, this.container.firstChild);
          }

    to be:

    this.container.appendChild(this.element);

  • Hello folks, i'm using the cookie bar on a site, i have changed the colors and content and it works well but at some point it just goes back to the original color (black just like demo of this plugin) and content too its not the one i defined on the interface when editing content for the cookie from the admin dashboard. How can i solve this issue?

Dries

Graphic Designer, with a great Elgg hobby idea and working on this idea for too long now. Time to get it finished I think :)

Stats

  • Category: Communication
  • License: GNU General Public License (GPL) version 2
  • Updated: 2016-6-21
  • Downloads: 927
  • Recommendations: 6

Other Projects

View Dries's plugins