Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

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


 
Prev Previous Post   Next Post Next
  #1  
Old Aug 25, 2014, 10:09 AM
decompiler
 
2 posts · Aug 2014
Lightbulb [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!
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
RFE 013-04: support the function wp-get-archives() in the limited PHP code juggledad New Versions & Updates 0 Oct 25, 2012 06:51 PM
Show Gravatar Icon in the Byline for Author MissAlexia Post-Kicker, -Byline & -Footer 3 Jun 13, 2012 07:11 AM
Ansense and other code with php conditional in byline mariusanhalt Atahualpa 3 Wordpress theme 14 Jul 25, 2011 05:37 AM
How to insert php code into Byline JakeThePeg Post-Kicker, -Byline & -Footer 1 Aug 27, 2009 06:16 PM
How to insert Gravatar into Byline? vsamigo Post-Kicker, -Byline & -Footer 1 Jul 15, 2009 04:02 PM


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


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