Changeset 660333 for proper-avatars/trunk/proper-avatars.php
- Timestamp:
- 01/28/2013 09:27:41 PM (14 years ago)
- File:
-
- 1 edited
-
proper-avatars/trunk/proper-avatars.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
proper-avatars/trunk/proper-avatars.php
r660315 r660333 4 4 Plugin URI: http://rockdio.org/ayudatech/wordpress-3-4-and-higher-custom-avatars-the-proper-way/ 5 5 Description: Proper way of displaying Custom avatars, remove calls to http://gravatar.com, Use local default Avatar, Add custom avatar for the blog users,Display Custom avatar for blog users, Display default avatar for unregistered commenter, Display custom avatar for comment replies. 6 Version: 0.1. 26 Version: 0.1.4 7 7 License: GPL 8 8 Author: Nathaniel Narvaez (RockDio.org) … … 16 16 add_filter( 'avatar_defaults', 'newgravatar' ); 17 17 function newgravatar ($avatar_defaults) { 18 //$myavatar = get_bloginfo('stylesheet_directory').'/folder/file.jpg'; // Uncomment this line and set your own path (inside theme folder) 19 // 20 $myavatar = 'http://rockdio.org/imagenes/escucha.jpg'; // Change this to point to where your custom 21 // avatar is stored 22 $avatar_defaults[$myavatar] = "Rockdio Avatar"; // Change this to describe your Default Avatar 18 19 $myavatar = site_url().'/wp-content/plugins/proper-avatars/img/default.jpg'; // Replace the file in the plugin folder (easier no?) 20 //$myavatar = get_bloginfo('stylesheet_directory').'/folder/file.jpg'; // Or uncomment this line and set your own path (inside theme folder) 21 $avatar_defaults[$myavatar] = "Custom Default Avatar"; // Change this to describe your Default Avatar 23 22 return $avatar_defaults; 24 } 23 } // Sorry you need to modify code :S 25 24 26 25 … … 28 27 * Use Custom Avatar if Provided 29 28 * If no Avatar is found the default from the function above is used 30 * Nathaniel Narvaez (RockDio.org) @ http://rockdio.org29 * Nathaniel Narvaez (RockDio.org) @ http://rockdio.org 31 30 * =================================================================================*/ 32 31
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)