Annika Backstrom
Forum Replies Created
-
Forum: Plugins
In reply to: [Who's Online] AdminHello deruyck! Apologies, but this feature isn’t currently available. I could see adding a filter, or putting a user blacklist in the widget config. Would either of these options work for you?
Forum: Plugins
In reply to: [Who's Online] User name & time out of vertical alignment with avatarHey ranebo,
Are you still having this issue? If so, are you using a stock theme, or something custom? Happy to dig into the CSS myself if this is a theme from the official repo.
Forum: Reviews
In reply to: [Who's Online] not editableYeah, the only really configurable thing is the author link. What else are you customizing?
Forum: Plugins
In reply to: [Who's Online] I need help changing the profile links in this pluginI don’t have BuddyPress set up, but it looks like there’s a bp_core_get_userlink() function. Try this:
function my_userlink( $link, $user ) { return bp_core_get_userlink( $user->ID ); } add_filter('wpwhosonline_author_link', 'my_userlink', 10, 2);
Untested!
Forum: Themes and Templates
In reply to: [P2] [Theme: P2] Fix .newcomment transparency animationThe diff is 8 months old, so it’s likely out of date with the current release of P2. Not sure I’ll have any opportunity to fix it in the immediate future.
Forum: Plugins
In reply to: [Who's Online] [Plugin: Who's Online] Directory location for user profiles???I assume it’s pretty common in P2 blogs for teams, where the whole point is that any user can create a post. That aside, the idea of a “profile” is different from blog to blog, particularly if you’re using something like bbPress.
The code sample I included above should work in your theme’s functions.php, though it’s hard to prescribe a “best” location. If you want to try adding it somewhere and reply again with your specific error, I can help you debug the issue.
Forum: Plugins
In reply to: [Who's Online] [Plugin: Who's Online] Directory location for user profiles???I’ve bumped the plugin to version 0.6, adding a filter
wpwhosonline_author_link
to allow for customization of this link. By default, it usesget_author_posts_url()
.You can add something like this in a plugin or your theme’s functions.php:
function mytheme_whosonline_link( $link, $user ) { return '<a href="/user/' . $user->user_login . '">' . esc_html( $user->display_name ) . '</a>'; } add_filter( 'whosonline_author_link', 'mytheme_whosonline_link', 10, 2 );
Forum: Plugins
In reply to: [Plugin: Debug Bar] Not showing up in Admin Bardebug-bar.php
is calling$wp_admin_bar->add_menu()
and specifying a parent menutop-secondary
that does not exist before WordPress 3.3. Change this:$wp_admin_bar->add_menu( array( 'id' => 'debug-bar', 'parent' => 'top-secondary', 'title' => apply_filters( 'debug_bar_title', __('Debug', 'debug-bar') ), 'meta' => array( 'class' => $classes ), ) );
To this:
$wp_admin_bar->add_menu( array( 'id' => 'debug-bar', 'title' => apply_filters( 'debug_bar_title', __('Debug', 'debug-bar') ), 'meta' => array( 'class' => $classes ), ) );
Forum: Plugins
In reply to: [Who's Online] [Plugin: Who's Online] Show only online users in widgetGood call. If you can modify CSS on your site, you could set .wpwhosonline-recent and .wpwhosonline-ancient to display: none, in lieu of any code change.