• Tried using this plugin last night on our Multisite/Buddypress install.

    It seemed to be working properly, with 2 major bugs.

    1) Like another post in this forum, after you hit “Load more” posts, those avatars did not display a hover card.

    2) The hovercard did not style properly. I was seeing the avatar and about 20 pixels of so of grey border to the right of it, which meant that I saw a TINY bit of the text data that was intended to display.

    Unfortunately, the styling of the hovercard just broke, and it only showed this small portion of the card. The rest was cut off and would not display.

    https://www.ads-software.com/extend/plugins/buddypress-hovercards/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mike Martel

    (@mike_cowobo)

    Hi TMJ31, thanks for your feedback. Can you tell me which versions of BP and WP with which theme you are using? I am really trying, but can’t reproduce the ‘Load More’ -> no hovercards problem.

    Unfortunately, I also can’t reproduce your styling problem, could you please give me the following information:

    1) are you using the hovercard.php template supplied with the plugin, or do you have one in your (child)theme folder?
    2) are you using the bp-default theme, a child-theme thereof or another custom theme?
    3) do you use the standard WordPress folder structure? (shouldn’t be a problem, but hey..)
    4) are loading your pages in via AJAX? (Using Advanced Ajax Page Loader for instance..)

    Also, if you can, could you see if tipsy.css and tipsy.hovercard.css are actually loaded on your page?

    Sorry I can’t be of any help straight away!

    Plugin Author Mike Martel

    (@mike_cowobo)

    Hi TMJ31, are you by any chance using BP1.6 and restricting access to wp-admin?

    BP1.6 changed their AJAX url to point to adminajax, which means that functions hooking into a`dmin_init are now firing on ajax requests (like the hovercard).

    If you deny access to wp-admin at admin_init (as many BP sites do – see the codex at https://codex.www.ads-software.com/Plugin_API/Action_Reference/admin_init ) the response coming into the hovercard function is not the hovercard, but most likely the BP site again (or whatever you have set to happen if the user has no access to wp-admin).

    EDIT: Forgot to mention the solution, for whoever is affected: in the conditional statement blocking wp-admin access in your functions.php, make sure you don’t just check for user privileges ( like current_user_can('manage_options') or is_super_admin() ), but that you add && $_SERVER['PHP_SELF'] != '/wp-admin/admin-ajax.php' to check if the current request is an ajax request.

    Example:

    if ( ! is_super_admin() && $_SERVER['PHP_SELF'] != '/wp-admin/admin-ajax.php' ) {
        // do your redirect here
    }

    Thread Starter Tyler

    (@tmj31)

    Thanks for your detailed replies: Let me *attempt* to respond appropriately…

    1) are you using the hovercard.php template supplied with the plugin, or do you have one in your (child)theme folder?

    I’ve tried both

    2) are you using the bp-default theme, a child-theme thereof or another custom theme?

    A child theme version of BP Social from wpmudev.org

    3) do you use the standard WordPress folder structure? (shouldn’t be a problem, but hey..)

    As far as I am aware, yes ??

    4) are loading your pages in via AJAX? (Using Advanced Ajax Page Loader for instance..)

    Not through any mechanism I am aware of, although we have a complex setup, so who knows?

    Also, if you can, could you see if tipsy.css and tipsy.hovercard.css are actually loaded on your page?

    How would I go about checking this? (JS and CSS are not my strengths)

    Should also mention, I have the plugin disabled now, since it was not working properly…

    1) discussed here https://www.ads-software.com/support/topic/plugin-buddypress-hovercards-load-more?replies=3

    2) it’s your css issue. I assume it could be something like text-align: left; in the inner of your hovercard.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: BuddyPress Hovercards] Hovercards not fully displaying’ is closed to new replies.