WordPress.org

Ready to get started?Download WordPress

Forums

Author Avatars List
Show Username and another field in Avatar Title (14 posts)

  1. gurunanak
    Member
    Posted 1 year ago #

    I have been using author avatars now for one week and i appreciate the plugin capabilities. It really works well though i was wondering if there is a way i can display the username and City like below :

    DANIEL | LONDON

    Currently i just have managed to show the default username below the avatar but i want to add City or any other field of my choice.

    Please, any kind help will be appreciated.

    http://www.lagallete.com

    http://wordpress.org/extend/plugins/author-avatars/

  2. Paul Bearne
    Member
    Plugin Author

    Posted 1 year ago #

    I am thinking about adding a template and filters to the plug-in so this may be possible.

  3. Lichtkrone
    Member
    Posted 1 year ago #

    Hi there,

    just one question.
    Is it possible to combine 2 oder more parameters to show more or less?
    And if "yes", than how?

    Ex: I like to show a list of our "authors" AND their username with the avatars...

  4. Paul Bearne
    Member
    Plugin Author

    Posted 1 year ago #

    yes we can can combine the show options

    [authoravatars roles=administrator user_link=authorpage show_name=true show_email=true show_biography=true show_postcount=true show_bbpress_post_count=true order=display_name,asc]

    demo here : http://wp-dev.bearne.ca/all-options-turned-on/

    I only show the display name (as the username is part of the login) but you can filter just author via roles

    Use the Helper in the tinyMCE editor to create the shortcode

    Paul

  5. Lichtkrone
    Member
    Posted 1 year ago #

    It works !
    Thanks a lot for help and this great plugin :)

    Thomas from Lichtkrone network

  6. gurunanak
    Member
    Posted 1 year ago #

    Hi Paul

    Thanks, i got your response that you are adding a template and filters but currently if someone was working on tight schedule there is no way to implement it. This site http://www.nairobiraha.com (caution site has nude image) is using your plugin and this has been implemented. Please assist.

  7. Paul Bearne
    Member
    Plugin Author

    Posted 1 year ago #

    no the right filter are not in place all I can suggest is same ajax to walk the page and call back to update the content

    there a number of flitters in the code like "aa_user_template" but I don't have fliter wrapping the output that also pass's the user object so you can extend it.

    Coming soon!!!

  8. Paul Bearne
    Member
    Plugin Author

    Posted 1 year ago #

    I have added the user object to the "aa_user_template" filter on the dev version of the code

    https://github.com/pbearne/wp-author-avatars

    not tested but you welcome to install and work with it

  9. gurunanak
    Member
    Posted 1 year ago #

    Hi Paul. I have taken alot of time trying to figure out how i can achieve this but i have failed. I downloaded the version at github as you said and i don't know how i can be able to display avatars and the name plus one extra field of my choice Example DANIEL as name and CITY. Please would you be more simpler in your explanation so i can try to understand. I am not a pro in php or ajax editing.

    Thank you.

  10. Paul Bearne
    Member
    Plugin Author

    Posted 11 months ago #

    got the the ping let me see what I can do

  11. gurunanak
    Member
    Posted 11 months ago #

    Hi @Paul thanks i will really appreciate. I have created some custom fields using xprofile and i want to be able to display the default avatar name and say location captured using the xprofile created fields. In my Visual studio and SQL experience i am sure its possible to select from the two tables using user id then if the shortcode has show name it will concatenate the two fields with a separator like space or "|" . I am not a PHP guy but i know it is possible.

  12. gurunanak
    Member
    Posted 11 months ago #

    Hi Guys i need to include the xprofiledata colums in this querry where xprofiledata userid = $wpdb->users user id and xprofiledata field_id=4

    $query = "SELECT user_id, user_login, display_name, user_email, user_url, user_registered, meta_key, meta_value FROM $wpdb->users, $wpdb->usermeta".
    " WHERE " . $wpdb->users . ".ID = " . $wpdb->usermeta . ".user_id AND ". $blogs_condition . " AND user_status = 0".$roleQuery;

    Any help will be appreciated

  13. Paul Bearne
    Member
    Plugin Author

    Posted 11 months ago #

    I will try to create some docs to help

  14. gurunanak
    Member
    Posted 10 months ago #

    Hi Pbearne, will this ever be possible really ?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic