Archive for the ‘Development’ Category

Author Avatars List 1.7.1

Hi all

Update: found a small bug which I have fixed in 1.7.1

Lots of changes in version 1.7.0 some of which have been in the dev branch for a while

  • Added Local User select to Single Avatar Shortcode creator
  • Replaced wp_specialchars() with esc_html()
  • Removed support pre 3.0 wordpress installs
  • Added BBPRESS_post_count as shortcode display and sort options
  • Added show_email to shortcode display option
  • Added some translation updates
  • Fixed issue with TniyMCE breaking when using HTTPS
  • And a few other tidy ups
  •  Added SQL filter to only fetch the users for the rolls being requested rather than all users
  • Added caching to the main get_users function which will use an object cache if turned on
  • Started to add support for filters so the template can changed via the calling themes.

I have the ability to pick a local user using a drop and you can now show the users email (don’t use this on public page – you will get spam)

email_selector

Some site that have lots of users were find that some queries were very slow so I have tried to help this a better query (small results set) and and caching if you have it turned on. I plan to do some more work on this.

Filters now available do use

apply_filters('aa_userlist_empty', '<p class="no_users">'. __('No users found.', 'author-avatars'). '</p>');
apply_filters('aa_userlist_group_template', $this->group_template)
apply_filters('aa_userlist_group_wrapper_template', $this->group_wrapper_template)
apply_filters('aa_userlist_template', $this->userlist_template)


apply_filters(‘aa_user_template’, $this->user_template,$user)

and here are the default strings

/**
 * Group wrapper template
 * - {groups} is replaced by the list of groups
 */
 var $group_wrapper_template = '<div class="grouped-author-list">{groups}</div>';

 /**
 * Group template
 * - {name} is replaced by the name of the group
 * - {group} is replaced by the list of users
 */
 var $group_template = '<div class="author-group"><strong>{name}</strong><br/>{group}</div>';

 /**
 * Wrapper template
 * - {users} is replaced by the list of users
 */
 var $userlist_template = '<div class="author-list">{users}</div>';

 /**
 * User template
 * - {class} is replaced by user specific classes
 * - {user} is replaced by the user avatar (and possibly name)
 */
 var $user_template = '<div class="{class}">{user}</div>';


I hope this update goes well I had been holding of releasing it as it kept getting big and have found time to test and release

I have moved the main code repo to https://github.com/pbearne/wp-author-avatars feel free to create a pull requests and submit patches there.

Ownership change

As of now, I am stepping down as maintainer and handing over ownership to Paul Bearne, who will provide support and drive further developments.

Ben

Thanks Ben

Paul

Dutch translation

I have just received Dutch translation files from René. Thanks!

If you would like Dutch translation of the plugin feel free to download the .mo file from SVN trunk. You can activate the translation by putting the file into the translations folder of the author-avatars plugin. Alternatively wait for the next release of the plugin, where the translation will be included…

Belarusian translation

I have just received Belarusian translation files from FatCow. Thanks!

If you would like Belarusian translation of the plugin feel free to download the .mo file from SVN trunk. You can activate them by putting them into the translations folder of the author-avatars plugin. Alternatively wait for the next release of the plugin, where the translation will be included…

Also note that I made a mistake when adding the german translation into the last release; if you are running a German Blog, you can find an updated version of the .mo file in SVN trunk (download).

use