• Resolved Chris

    (@chrmrtns)


    I have a site with BuddyBoss and that is using the WordPress wp-login.php to let users in – unfortunately the wp-login.php does not show the cookie box, while others do.

    Is there a way to get around this or do I need to change the login to somethig else?

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    There usually isn’t any user tracking on the wp-login.php, is this different on your site?

    It should be possible by including some additional scripts, but I wouldn’t do it if there’s no necessity.

    Thread Starter Chris

    (@chrmrtns)

    Thanks for getting back. ??

    I am using BuddyBoss theme and platform, and those use wp-login.php as login page.

    Except some pages like imprint and privacy policy all pages are hidden and users are forced to login first. So, if you are not logged in, you will be redirected to wp-login.php

    This wp-login.php can be renamed, but it still needs cookie notice here.

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @chrmrtns,

    As Rogier suggested; there is typically no user tracking/content to block on the wp-login.php page. Does this differ in your case?

    As this would require some degree of customization to the plugin, I am curious to know more about the necessity to load the Cookie Banner/Cookie Blocker on the wp-login.php page, as opposed to loading it when actually visiting the front-end of the site.

    Kind regards, Jarno

    Thread Starter Chris

    (@chrmrtns)

    @jarnovos Yes, thanks – normally there is only a test cookie (wordpress_test_cookie), but if you use Matomo or something else to track visitors, this visit of wp-login.php will be tracked, too.

    And I think, all pages which you can reach from the outside should have the cookie notice enabled imo – even if this is just the wp-login.php.

    And in case of BuddyBoss, the login can be customized to a different page, using redirects or anything, but in this case – just because it is well designed – I am using the standard wp-login.php. Admin bar is disabled, and the user can only use the login area but cannot access and admin backend.

    Still, I think we need cookie notice enabled on the wp-login.php page.

    • This reply was modified 1 year, 4 months ago by Chris. Reason: mention contributor
    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    You can add the following code in a mu-plugin:

    <?php
    function cmplz_my_add_banner(){
    	add_action( 'login_enqueue_scripts', array(COMPLIANZ::$banner_loader, 'enqueue_assets') );
    	add_action( 'login_head', array( COMPLIANZ::$banner_loader, 'cookiebanner_css' ) );
    	add_action( 'login_footer', array( COMPLIANZ::$banner_loader, 'cookiebanner_html' ) );
    }
    add_action('plugins_loaded', 'cmplz_my_add_banner');
    Thread Starter Chris

    (@chrmrtns)

    Well, @rogierlankhorst, thanks, but this throws an error:

    Uncaught Error: Access to undeclared static property COMPLIANZ::$banner_loader 

    So, in my case this is not working. And in the plugin I can find nothing related to banner_loader.

    Also this is a good starting point, but hard to find out…

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    @chrmrtns sorry, the code I posted is based on the new, 7.0 version which is about to be released. You can find this version here:

    https://github.com/really-simple-plugins/complianz-gdpr

    Let me know if that works for you.

    Thread Starter Chris

    (@chrmrtns)

    @rogierlankhorst Thanks for providing the link to the Github. Currently the plugin cannot be activated because it creates a fatal error.

    Anyway… Here is what I got:

    Got error ‘PHP message: PHP Fatal error:? Uncaught Error: Class “COMPLIANZ” not found…

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    @chrmrtns I’m sorry, thanks for reporting it, I’ve fixed this error now, can you check again?

    Thread Starter Chris

    (@chrmrtns)

    Cool, @rogierlankhorst – this fixed the error. Thanks a lot. Will now try a bit around, before getting into your BF deal.

    Have a great afternoon.

    • This reply was modified 1 year, 4 months ago by Chris. Reason: mentioned user
    Thread Starter Chris

    (@chrmrtns)

    @rogierlankhorst – well, FYI the cookie box on login page works now as expected. Awesome. ??

    One thing I did not yet managed to work properly: There is a link in the cookie box “Dienste verwalten” – it just hyperlinks #cmplz-cookies-overview and does nothing else – can you guide me where I have a mistake? And – I did not manage to add custom css after activation, is this a premium feature?

    Thanks for answering – have a great evening.

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @chrmrtns,

    Have you generated a Cookie Policy with Complianz already? After doing that, the link on the Cookie Banner should point to that page.

    Set the Cookie Policy to Generated by Complianz under Wizard -> General -> Documents, go through the Wizard to ensure that every step is completed and a Cookie Scan & Sync with CookieDatabase had been performed; and finally let the plugin create your new Cookie Policy under the Documents -> Create Documents step.

    The Custom CSS field is available under Complianz -> Consent Banner -> Custom CSS, enable the Custom CSS slider and the field should unlock. Note that you must have completed the Wizard for this as well.

    Kind regards, Jarno

    Thread Starter Chris

    (@chrmrtns)

    Thx ??

    Maybe I have been to fast setting things up.

    Have a great weekend.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Can it work on wp-login.php?’ is closed to new replies.