Plugin Directory


Ignore:
Timestamp:
01/28/2013 09:27:41 PM (14 years ago)
Author:
rockdio
Message:

Adding first version 4rd revision of my plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proper-avatars/trunk/proper-avatars.php

    r660315 r660333  
    44Plugin URI: http://rockdio.org/ayudatech/wordpress-3-4-and-higher-custom-avatars-the-proper-way/
    55Description: 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.2
     6Version: 0.1.4
    77License: GPL
    88Author: Nathaniel Narvaez (RockDio.org)
    … …  
    1616add_filter( 'avatar_defaults', 'newgravatar' );
    1717function 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
    2322return $avatar_defaults;
    24 }
     23}                                                                                               // Sorry you need to modify code :S
    2524
    2625
    … …  
    2827 * Use Custom Avatar if Provided
    2928 * If no Avatar is found the default from the function above is used
    30  *Nathaniel Narvaez (RockDio.org) @ http://rockdio.org
     29 * Nathaniel Narvaez (RockDio.org) @ http://rockdio.org
    3130 * =================================================================================*/
    3231
Note: See TracChangeset for help on using the changeset viewer.