dbvista
Forum Replies Created
-
Forum: Plugins
In reply to: [Add Local Avatar] [Plugin: Add Local Avatar] Admin bar avatar wrong sizeI created an awful hack to distinguish the usual avatars (in comments) from the one in the Admin Bar.
That, together with Haecceity’s CSS above, makes everything work out.
Forum: Plugins
In reply to: get_avatar with a link?My current hack is to check the $size argument of the get_avatar callback. If it’s equal to 16, it’s the Admin Bar, because our avatars are all larger than 16 pixels wide. It’s a lousy hack but is working so far.
Forum: Plugins
In reply to: get_avatar with a link?Or alternatively, can my plugin detect when it’s in the Admin Bar and strip off the “A” tag only in that situation?
Forum: Plugins
In reply to: [Add Local Avatar] [Plugin: Add Local Avatar] Admin bar avatar wrong sizeBen: Thanks for the suggested fix. I tried it too (hard-coding 16px) but it doesn’t work in my case because of the two nested “A” tags, which seem to throw off both Firefox and Internet Explorer. I would guess it’s illegal HTML.
Forum: Plugins
In reply to: [Add Local Avatar] [Plugin: Add Local Avatar] Admin bar avatar wrong sizeI found the problem on our site. We have an Avatar plugin that is returning not only the image, but an ‘A’ tag that makes the image into a link. In the admin bar, this produces a nested ‘A’ tag which breaks things. So instead of this:
<li id="wp-admin-bar-my-account-with-avatar" class="menupop"> <a href="https://myblog/wp-admin/network/profile.php"> <span> <img src="https://avatarserver/jsmith.jpg" width="16" alt=""/> jsmith </span> </a> </li>
our site displays this:
<li id="wp-admin-bar-my-account-with-avatar" class="menupop"> <a href="https://myblog/wp-admin/network/profile.php"> <span> <a href="https://homepages/jsmith"> <img src="https://avatarserver/jsmith.jpg" width="16" alt=""/> </a> jsmith </span> </a> </li>
Time to modify the plugin.
Forum: Plugins
In reply to: [Add Local Avatar] [Plugin: Add Local Avatar] Admin bar avatar wrong sizeOur avatars are larger than 16px, but everywhere else on the site they are being scaled down to 16px. Only the admin bar displays the avatars as full size. Maybe the admin bar should be using “16px” explicitly as the size.
Forum: Plugins
In reply to: [Add Local Avatar] [Plugin: Add Local Avatar] Admin bar avatar wrong sizeMe too — the avatar in the top left of the page is so large it covers the blog title. IMHO the avatar shouldn’t even be there — a simple user menu (like on normal blog pages) would be sufficient.
Forum: Networking WordPress
In reply to: Categorizing blogs (not posts)?Thanks! That provided the needed functionality.
I found several bugs in the plugin and reported them to the author.
Forum: Networking WordPress
In reply to: Multisite javascript – where's the right place?Never mind, answered my own question:
https://planetozh.com/blog/2008/04/how-to-load-javascript-with-your-wordpress-plugin/
Forum: Networking WordPress
In reply to: List of blogs via RSS?Installed & configured the ADA plugin and its feed showed an incomplete list. Thanks for suggesting it though.
Forum: Networking WordPress
In reply to: Role for creator of blog?Thank you David – you are right, I was mistaken. I fooled myself by accidentally visiting a site as a super-admin.
Forum: Networking WordPress
In reply to: Role for creator of blog?FYI, I’m talking about setting the role at the moment of site creation. Not after the fact. Thanks.
Forum: Plugins
In reply to: Add New User: Making email address optional/defaulted?I wound up adding JavaScript to my theme. In functions.php:
if ( is_admin() ) wp_enqueue_script(...);
And then a little jquery in the JavaScript file:
jQuery(document).ready(function($){ if (location.pathname.match(/\/wp-admin\/user\-new\.php$/) ) { .... } });
Forum: Fixing WordPress
In reply to: Allowing anyone to post in Active Directory environment?I gave up and installed the Mingle Forum plugin to have a discussion group model for this.
Forum: Plugins
In reply to: [Plugin: Active Directory Integration] Single config for multisiteHmm, now it’s working.