[Plugin: Social Author Bio] Customization without getting in trouble in future versions/feature requ
-
Hi Nick,
Thank you for this wonderful plugin. I did two things but I’m not sure it’s the best way to do them without getting into a hassle during an upgrade.
- I changed avatar size. In social_author_bio.php on line 981, I changed get_avatar( $ID, “80” ); into get_avatar( $ID, “140” );
- In multisite installation. Every author get their own personal blog(strictly one author per blog.) I want author name/avatar link in bio box to point to his homepage; ie mainsite.com/his-blog instead of mainsite.com/his-blog/author/his-name. starting at line 1000, within display() function, I added %home% in $token array and a correspoding get_home_url() in $replace array(code below)
// Search $token = array ( '%avatar%', '%prefix%', '%name%', '%author_link%', '%post_count%', '%author_desc%', '%socials%', '%home%'); // Replace $replace = array ( $avatar, $options['prefix'], get_the_author_meta("display_name", $ID), get_author_posts_url($ID), count_user_posts($ID), get_the_author_meta("description", $ID), $this->social_icons($ID), get_home_url());
What is the best way to implement those changes for smoother upgrading process? Also I’d like to request these features to be added in future releases options/customizations. I’m a novice in PHP; your guidance would be greatly appreciated.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘[Plugin: Social Author Bio] Customization without getting in trouble in future versions/feature requ’ is closed to new replies.