Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   [SOLVED] I would like to contribute the code to support Gravatar images in the byline (http://forum.bytesforall.com/showthread.php?t=22747)

decompiler Aug 25, 2014 10:09 AM

[SOLVED] I would like to contribute the code to support Gravatar images in the byline
 
Heya,

I've been updating bfa_postinfo.php manually for a while, and have seen several other users request this functionality. I was wondering if you could possibly include the following (or equivalent version that fits your standards) in the theme proper:

PHP Code:

    // Author Gravatar
    
if (strpos($postinfo_string'%gravatar%') !== FALSE) {
        
$gravatar get_avatar(get_the_author_meta('ID'), 30);
        
$postinfo str_replace("%gravatar%"$gravatar$postinfo);
    } 

I place this in bfa_postinfo.php just below the if() that handles the "Author Yahoo IM ID", but (obviously) you could put it just about anywhere you want in that method.

Thanks!

juggledad Aug 26, 2014 03:48 AM

I'll try and get it in the next release

decompiler Aug 26, 2014 07:55 AM

Thank you, sir!

juggledad Aug 26, 2014 02:48 PM

added to 3.7.19 todo list

juggledad Jan 7, 2015 09:41 AM

Arugh, I forgot to do this for 3.7.19/3.7.20 but it is in the code for 3.7.21


All times are GMT -6. The time now is 09:18 AM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.