Changeset 660333
- Timestamp:
- 01/28/2013 09:27:41 PM (14 years ago)
- Location:
- proper-avatars/trunk
- Files:
-
- 2 edited
-
proper-avatars.php (modified) (3 diffs)
-
readme.txt (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 -
proper-avatars/trunk/readme.txt
r660315 r660333 5 5 Requires at least: 3.0.x 6 6 Tested up to: 3.4.x 7 Stable tag: 0.1. 37 Stable tag: 0.1.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 32 32 * Plugin created 33 33 34 Version 0.1.3 35 * Updated the path to the default image to make it compliant with WP 3.5.1 36 37 Version 0.1.4 38 * Added folder /img inside "/wp-contents/plugins/proper-avatars" 39 the plugin will look for "default.jpg" in there to show it. 40 This was done to fix a hardcoded call to my own site i forgot to remove while testing the custom funtionality 41 42 34 43 == Installation == 35 44 … … 37 46 1. Finally, enable the plugin from the 'Plugins' page. 38 47 1. Go to your user profile and add the url to your avatar 48 49 1. Now you can change the default image inside: "/wp-contents/plugins/proper-avatars/img" just drop a new image (96x96 px) in the folder and name it "default.jpg" 50 39 51 40 52
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)