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


  #1  
Old Aug 25, 2014, 11:09 AM
decompiler
 
2 posts · Aug 2014
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!
  #2  
Old Aug 26, 2014, 04:48 AM
juggledad's Avatar
juggledad
 
23,550 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I'll try and get it in the next release
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Aug 26, 2014 at 03:45 PM.
  #3  
Old Aug 26, 2014, 08:55 AM
decompiler
 
2 posts · Aug 2014
Thank you, sir!
  #4  
Old Aug 26, 2014, 03:48 PM
juggledad's Avatar
juggledad
 
23,550 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
added to 3.7.19 todo list
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jan 7, 2015, 10:41 AM
juggledad's Avatar
juggledad
 
23,550 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Arugh, I forgot to do this for 3.7.19/3.7.20 but it is in the code for 3.7.21
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

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 07:51 PM
Show Gravatar Icon in the Byline for Author MissAlexia Post-Kicker, -Byline & -Footer 3 Jun 13, 2012 08:11 AM
Ansense and other code with php conditional in byline mariusanhalt Atahualpa 3 Wordpress theme 14 Jul 25, 2011 06:37 AM
How to insert php code into Byline JakeThePeg Post-Kicker, -Byline & -Footer 1 Aug 27, 2009 07:16 PM
How to insert Gravatar into Byline? vsamigo Post-Kicker, -Byline & -Footer 1 Jul 15, 2009 05:02 PM


All times are GMT -6. The time now is 05:39 AM.


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