• Resolved polokina

    (@polokina)


    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.

    1. I changed avatar size. In social_author_bio.php on line 981, I changed get_avatar( $ID, “80” ); into get_avatar( $ID, “140” );
    2. 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.

    http://wordpress.org/extend/plugins/social-autho-bio/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Nick Powers

    (@nickpowers)

    I can certainly include an avatar size in the next release, coming as soon as I document all the new changes.

    As for the 2nd one can you give me a link to an example of what you are describing?

    Thread Starter polokina

    (@polokina)

    Sure, http://mastaa.com/tyga/. Pardon the appearance. It’s a dummy/test site. Social Author Bio is on top of the blog. You’ll notice when you click the name(Tyga) it takes you to the homepage of his blog mastaa.com/tyga instead of author page(mastaa.com/tyga/author/tyga.) In settings page, I substituted %author_link% with %home%

    Another thing, what’s the best way to get rid of “website” icon? I don’t want it among social icons. As it is now, I have no choice but to choose one(WP, Blogger, or website I think?) because there isn’t a “none” radio button

    Also the avatar pic quality decreased significantly when I changed the size to 140px. When I tested a different plugin, the avatar quality didn’t decrease. You can compare Social Author Bio’s avatar above with an avatar from a different plugin on this link: http://laivu.com/maraha/. At 150px, the avatar has higher quality. What do you think is causing this degradation in quality?

    Thank you so much Nick for this fantastic plugin and support

    Plugin Author Nick Powers

    (@nickpowers)

    Yes, I see now.

    I don’t see any reason not to include %home% with a link to get_home_url() in the next version.

    When you upgrade to the next version you will have to go into and adjust the avatar size from the default 80 to the size of your choice.

    I am not sure of what there is a difference in the image quality. This is the only thing I could find out about sizes and gravatars: https://en.gravatar.com/site/implement/images/

    Keep an eye out for the new version at: http://nickpowers.info/wordpress-plugins/social-author-bio/ as I will be posting it there first, along with a new forum for support.

    Plugin Author Nick Powers

    (@nickpowers)

    For your last question, if you leave the Website field empty in the user’s profile then it will not display the website icon.

    Thread Starter polokina

    (@polokina)

    Hi Nick.

    About the images, those are not gravatars. They’re locally uploaded images using User Avatar plugin.

    About the last question, I didn’t fill website field but the website icon is still displayed. It points to the homepage by default when the website field is empty.

    Thanks for the link

    Plugin Author Nick Powers

    (@nickpowers)

    For the avatar resolutions I would suggest you contact the creator of the User Avatar plugin.

    I’ll look into why it is not hiding the icon.

    Thread Starter polokina

    (@polokina)

    Ok. Thank you sir!

    Thread Starter polokina

    (@polokina)

    Hi Nick, I’m marking this as resolved since for the most part it is. I haven’t looked into why “website” icon shows up even when website field isn’t filled yet. Thanks for everything.

    Plugin Author Nick Powers

    (@nickpowers)

    I just uploaded v 2.4 and it includes both the %home% dir variable and the ability for the admin to specify the avatar size.

    I have also verified that providing an empty website field prevents that icon from being displayed.

    This is just a few of many new features in v 2.4. Check it out and let me know what you think.

    Nick

    Nick,

    Please help author page to display.

    Installed Social Author Bio WordPress Plugin.

    Upon clicking the Author Posts,Author page is not found.
    http://dalespencerbooks.com/author/ye89432!-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2/

    It’s putting this junk code at the end of the url string “-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2”

    See screen shots:
    http://dalespencerbooks.com/pagenotfound.png
    http://dalespencerbooks.com/post.png

    Please help.

    Thanks,
    Roxie

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.