Giter VIP home page Giter VIP logo

mailchimp-top-bar's People

Contributors

alcharkov avatar dannyvankooten avatar dependabot[bot] avatar gabriel-kaam avatar imazed avatar kellenmace avatar shakaran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mailchimp-top-bar's Issues

Even hidden topbar, makes WordPress admin bar unusable.

When the Admin bar is visible in the front-end, even if we close the top bar, as the z-index value of 999999 is applied to the entire wrapper, the WordPress admin bar becomes unusable.

To fix this, a z-index property can be applied to the "mctb-bar" and the "mctb-close" classes instead of the "mctb" class.

https://wordpress.org/support/topic/top-bar-covers-wordpress-admin-bar-1?replies=5#post-7960427
https://wordpress.org/support/topic/top-bar-covers-wordpress-admin-bar-2?replies=2#post-7965227

Disable bar for people who have subscribed already

Simple cookie check

add_filter( 'mctb_show_bar', function( $show ) {
    return ( ! isset( $_COOKIE['mc4wp_email'] ) && ! isset( $_COOKIE['_mctb'] ) ) || isset( $_POST['_mctb'] );
} );

Add-on with periodic checks
An add-on that will query the selected MailChimp lists for each subscribe element once a month to see if the email is still subscribed. Can get complex real quick though...

top bar hides menu on mobile

The top-bar hides the menu on mobile. The little triangle is too subtle for folks to toggle to hide the top bar.

Conditional selection of list id

I have for the moment write down this dirty code, because I found no way to modify options with your plugin :

    $email_type = apply_filters( 'mctb_email_type', 'html' );
    $listID = $this->options->get( 'list' );
    $request_uri = $_SERVER['REQUEST_URI'];
    if (preg_match("/^\/blog\/tous-les-lieux\//", $request_uri ))
        $listID = "abcde1f23a";

    $result = $api->subscribe( $listID, $email, $merge_vars, $email_type, $this->options->get( 'double_optin' ) );

    do_action( 'mc4wp_subscribe', $email, $this->options->get( 'list' ), $merge_vars, ( $result === true ), 'form', 'top-bar' );

Do you have a better way to do it ? Tx

Blank page

After update to version 1.26 the site does not work (white page admin and frontpage too). WP 4.4, PHP 5.6. (With version 1.25 is everything ok).

Fatal error: Call to undefined method MailChimp\TopBar\Plugin::init() in /.../public_html/wp-content/plugins/mailchimp-top-bar/mailchimp-top-bar.php on line 64

Updating to 1.0.1 break plugin

After updating to 1.0.1 I receive the following message when trying to access the plugin settings:

You do not have sufficient permissions to access this page.

And the item no longer appears in the WP Mailchimp menu.

Top Bar doesn't show because there is no JS added

Hi,

I discovered a few days your 2 plugins : nice, usefull and very simple !
I installed them on a 1st website. No issue. Great experience.

So, I tried on a 2nd site, bigger but with a similar configuration (I thought) but no top bar...
http://www.urtikan.net
I looked for loaded JS, but nothing... no mailchimp-top-bar-js

I don't know where to look and why your wp_enqueue_script... is not successfull.
Maybe a plugin incompatibility ?

Add instruction to refresh lists after changes in MailChimp

If more than the email field is marked as required in the MailChimp Dashboard, a notice will appear asking to change this. To get rid of this message, a refresh of the lists (under MailChimp & Licenses or MailChimp Settings) is needed. Might be a good idea to inform people of this in the same notice, because questions will be asked.

Internet Explorer Display Bug

Just viewed a website I am working on for someone in Internet Explorer (11) and the site displays embedded Youtube Videos. Unfortunately the videos end up in front of the Top Bar.

I have tried in Google Chrome and Safari and this does not happen.

Is there an easy fix for this?

topbar-ie-bug

Add option to completely disable plugin CSS?

Right now, you can leave the color options empty and dequeue the stylesheet using wp_dequeue_style( 'mailchimp-top-bar' ).

We could turn this into an easy option, but I'm not sure it'll be useful for regular users.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.