WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Hovercards
Hovercards not fully displaying (5 posts)

  1. TMJ31
    Member
    Posted 2 years ago #

    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.

    http://wordpress.org/extend/plugins/buddypress-hovercards/

  2. Mike
    Member
    Plugin Author

    Posted 2 years ago #

    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!

  3. Mike
    Member
    Plugin Author

    Posted 2 years ago #

    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 http://codex.wordpress.org/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
    }
  4. TMJ31
    Member
    Posted 2 years ago #

    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...

  5. James
    Member
    Posted 2 years ago #

    1) discussed here http://wordpress.org/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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.