Support » Plugin: BuddyVerified » BuddyPress Who’s Online & Members Widgets

  • Resolved mastereros

    (@mastereros)


    Hello @modemlooper

    The BuddyVerified plugin is working fine everywhere on my site except in the BuddyPress Who’s Online and BuddyPress Members widgets.

    In the Who’s Online widget, the verified badge appears very large and displays the user’s name with a right chevron (the widget typically online shows the user’s photo with no name). When you hover over it, it “span class=”. I am assuming the verified badge should not even appear with this specific widget.

    In the BuddyPress Members widget, it displays both the large badge with broken code as well as the appropriate and proper sized badge and name directly underneath it.

    How do I remove this large badge from both of these widgets while still maintaining the appropriate and proper sized one for the Members widget?

    Any solution to this? I sure hope so!

    Here’s an image of the issue

    • This topic was modified 3 years, 12 months ago by mastereros. Reason: broken image
Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter mastereros

    (@mastereros)

    .

    • This reply was modified 3 years, 12 months ago by mastereros.
    Plugin Author modemlooper

    (@modemlooper)

    Read the thread before this one its the same issue.

    Thread Starter mastereros

    (@mastereros)

    I did read the thread before…

    Due to that possible~ solution, I have gone through every file in my theme as well as the member widget itself, there are no title attributes. More importantly, BuddyPress has made many updates over the years specifically removing many if not all title attributes…

    I have even tried plugins to remove title attributes entirely, just to make sure – to no avail, of course.

    Plugin Author modemlooper

    (@modemlooper)

    Check these two links. I’m not sure there is a way to filter this other than removing it from the code. Might be a way to check if the members loop is a widget.

    https://github.com/buddypress/BuddyPress/blob/master/src/bp-members/classes/class-bp-core-recently-active-widget.php#L88

    https://github.com/buddypress/BuddyPress/blob/master/src/bp-members/classes/class-bp-core-members-widget.php#L129

    Thread Starter mastereros

    (@mastereros)

    Thank you! I, unfortunately, did not go through the ‘classes’ folder in bp-members.

    It worked! Thanks again for the help.

    Plugin Author modemlooper

    (@modemlooper)

    Im trying to see if I can’t filter it out of the widgets

    Hi,

    I’ve found that users with the author role can verify themselfes, meaning they have the same access to the buddyverified options like the admin. Please let me know how this can be avoided without having to downgrade the author to a lesser role.

    Thanks in advance.

    Hello there,
    This issue is a minor conflict with the way Buddypress core widget works. I’ll give an example with the Members Widget (Code located in BP-Members/Classes/class-bp-core-members-widget.php)
    The way this plugin works is that it adds an image to each member name, using a standard HTML code if that member is marked as verified.
    You cannot change the way the plugin works, as it’s the best possible way to display a verified tick.

    The problem with the BP Members widget is that is uses “user name” as a tool tip for the image of the users displayed in the widget.
    So what happens is we have <img src="memberimgurl" title="$username">
    What happens is without the verified plugin $Username = John Doe
    Afer the plugin $Username = <img src="verifiedtick.png"> John Doe, which causes the tag to close earlier than it needs to be.

    SOLUTION:
    Remove the tooltip from the images in the widget as follows:
    For example Members Widget:
    BP-Members/Classes/class-bp-core-members-widget.php
    Go to line:129
    <a href="<?php bp_member_permalink() ?>" class="bp-tooltip" data-bp-tooltip="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a>

    And replace it with:
    <a href="<?php bp_member_permalink() ?>"><?php bp_member_avatar(); ?></a>

    What I did was simply remove the tooltip to avoid the problem.

    One problem with this solution is that if you update BuddyPress you need to re-edit the code.

    Hello there,
    This issue is a minor conflict with the way Buddypress core widget works. I’ll give an example with the Members Widget (Code located in BP-Members/Classes/class-bp-core-members-widget.php)
    The way this plugin works is that it adds an image to each member name, using a standard HTML code if that member is marked as verified.
    You cannot change the way the plugin works, as it’s the best possible way to display a verified tick.

    The problem with the BP Members widget is that is uses “user name” as a tool tip for the image of the users displayed in the widget.
    So what happens is we have <img src="memberimgurl" title="$username">
    What happens is without the verified plugin $Username = John Doe
    Afer the plugin $Username = <img src="verifiedtick.png"> John Doe, which causes the tag to close earlier than it needs to be.

    SOLUTION:
    Remove the tooltip from the images in the widget as follows:
    For example Members Widget:
    BP-Members/Classes/class-bp-core-members-widget.php
    Go to line:129
    <a href="<?php bp_member_permalink() ?>" class="bp-tooltip" data-bp-tooltip="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a>

    And replace it with:
    <a href="<?php bp_member_permalink() ?>"><?php bp_member_avatar(); ?></a>

    What I did was simply remove the tooltip to avoid the problem.

    One problem with this solution is that if you update BuddyPress you need to re-edit the code.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘BuddyPress Who’s Online & Members Widgets’ is closed to new replies.