Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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, 10: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, 03:48 AM
juggledad's Avatar
juggledad
 
23,765 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 02:45 PM.
  #3  
Old Aug 26, 2014, 07:55 AM
decompiler
 
2 posts · Aug 2014
Thank you, sir!
  #4  
Old Aug 26, 2014, 02:48 PM
juggledad's Avatar
juggledad
 
23,765 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, 09:41 AM
juggledad's Avatar
juggledad
 
23,765 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 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 04:47 AM.


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