Random Default Avatar Function
-
I found this code :
/* WpFreaks.com - Start of Default Avatar Modification */ if ( !function_exists('fb_addgravatar') ) { function fb_addgravatar( $avatar_defaults ) { $myavatar = get_bloginfo('template_directory') . '/images/useravatar.png'; $avatar_defaults[$myavatar] = 'Users'; $myavatar2 = get_bloginfo('template_directory') . '/images/myavatar.png'; $avatar_defaults[$myavatar2] = 'My Avatar'; return $avatar_defaults; } add_filter( 'avatar_defaults', 'fb_addgravatar' ); } /* WpFreaks.com - End of Default Avatar Modification */
And it seems like it will do some of the job. I need it to pick a random image from a folder. Is this possible?
Any help would be great. Been searching and trying ideas for hours!
Best,
Brandon
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Random Default Avatar Function’ is closed to new replies.