Ready to get started?Download WordPress


[resolved] [Plugin: Custom Admin Branding] incompatibilité avecWPBook (8 posts)

  1. pirrre
    Posted 4 years ago #

    custom-admin-branding ne fonctionne pas avec le plugin WPBook


  2. pirrre
    Posted 4 years ago #

    WPBook does'nt work when C.A.B is activated :(

  3. Brooke Dukes
    Posted 4 years ago #

    Hi Pirrre,

    Can you define "dosen't work" are you talking about the admin side or the client/facebook side? Please provide more details in order for me to help you diagnose the problem.

  4. pirrre
    Posted 4 years ago #

    Salut BandonRandon ;)

    The client/facebook side work only when this plugin is desactivated

  5. Brooke Dukes
    Posted 4 years ago #

    Are you requiring users to login prior to them seeing your site content? Can i get your app url and your blog url?

    What happens if WPBook is enabled and someone tries to visit your Facebook App?

  6. Brooke Dukes
    Posted 4 years ago #

    After some investigating looks like what is happening is both WPBook and Custom Admin Branding are using a function named "custom_header()" and "custom_footer". In WPBook 1.5 this function has been renamed but for now the easiest fix should be changing the function name inside of custom_branding.php

    Try changing line 501 from function custom_header() to function custom_header_cab() { and then update line 568 from add_action('admin_head', 'custom_header', 11); to add_action('admin_head', 'custom_header_cab', 11);

    You'll have to do the same thing for custom_footer() on line 572 from function custom_footer() { to function custom_footer_cab() { then on line 607 from add_action('admin_footer', 'custom_footer'); to add_action('admin_footer', 'custom_footer_cab');

    Keep in mind you can use any name you want for the function as long as it's not used by another plugin. You also could change the function name being use in the wpbook/theme/config.php and then update the wpbook/theme/index.php I just thought it may be easier to update the other CAB plugin.

    Let me know if that works

  7. Josh Byers
    Posted 4 years ago #

    I've uploaded a beta version of next release of the Custom Admin Branding plugin that should solve these problems. Please let me know if there are still issues.

    Download plugin version 2.1

  8. pirrre
    Posted 4 years ago #

    I've just uploaded the beta version : It work.
    jayberz, BandonRandon : thank you very much for quickly issue and Answer
    Pirrre ;)

Topic Closed

This topic has been closed to new replies.

About this Topic