Plugin Directory

Changeset 660333


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

Adding first version 4rd revision of my plugin

Location:
proper-avatars/trunk
Files:
2 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
  • proper-avatars/trunk/readme.txt

    r660315 r660333  
    55Requires at least: 3.0.x
    66Tested up to: 3.4.x
    7 Stable tag: 0.1.3
     7Stable tag: 0.1.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    … …  
    3232* Plugin created
    3333
     34Version 0.1.3
     35* Updated the path to the default image to make it compliant with WP 3.5.1
     36
     37Version 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
    3443== Installation ==
    3544
    … …  
    37461. Finally, enable the plugin from the 'Plugins' page.
    38471. Go to your user profile and add the url to your avatar
     48
     491. 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
    3951
    4052
Note: See TracChangeset for help on using the changeset viewer.