bugmebar

UNIX name Owner Status
bugmebar eZ Publish Legacy stable
Version Compatible with
N/A N/A
eZ Publish extension providing a cookie based pop-up notice.

bugmebar

eZ Publish extension providing a cookie based pop-up notice.
Based on jquery.bugmebar
and jquery.cookie

Copyright

Portions copyright Enterprise AB Ltd (c) 2014 http://eab.uk
jquery.bugmebar copyright Chris Wharton
jquery.cookie copyright Klaus Hartl

License

GPL 2.0

Requirements

  • eZ Publish 4 or eZ Publish 5 Legacy Edition.
  • ezjscore extension

Install

Install and activate the extension in the usual way:

  1. Copy the bugmebar folder to the extension folder.
  2. Edit settings/override/site.ini.append.php
  3. Under [ExtensionSettings] add:

    ActiveExtensions[]=bugmebar

  4. Reload the autoload arrays

    bin/php/ezpgenerateautoloads.php

  5. Clear the cache:

    bin/php/ezcache.php --clear-all

Usage:

To use this add some code to pagelayout.tpl in your design extension:

  • Add class bugmebar to the div that should have the notice added e.g. <div id="page" class="bugmebar" ....>
  • Add Javascript to call bugbear. For example:

    {literal}

    //![CDATA[
    jQuery(document).ready(function(){
    jQuery('div#page').bugme({
    remember: true, // this stores a cookie to remember cancellation of bugme bar
    expireIn: 28, // set expiry of remember cookie (in days)
    cookieName:"eab_message_cookie_1",
    message: "Please note that, from April, access to parts of this website and associated resources will only be available to members. Please click here for more details" // message that goes inside the bug me bar
    });
    });
    //]]>

    {/literal}

No news yet.

This project has no reviews yet. Be the first one to review it!

No forum messages yet.