WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Tweetbacks] get_avatar function and comment_type (4 posts)

  1. edeleon
    Member
    Posted 5 years ago #

    Could be a good idea to have on the settings to add a list of comment_types to get the avatar, i'm using tweetback and using the comment_type to css the tweets coming from Twitter and I'm using a new Facebook connect plugin and using the comment_type as 'facebook' to css the comments from there.

    I changed the line where u check if the comment_type is 'tweetback' to this, but i think you can add a list

    if ( isset($id_or_email->comment_type) && '' != $id_or_email->comment_type && 'comment' != $id_or_email->comment_type && 'tweetback' != $id_or_email->comment_type && 'facebook' != $id_or_email->comment_type )

    Yo can see and example of this on

    http://www.lacomuna.tv/episodio/lacomunatv-001-tribal/#comment-119

  2. Joost de Valk
    Member
    Posted 5 years ago #

    My tweetbacks plugin actually rewrites the get_avatar function to do just that, though it doesn't include facebook, of course.

  3. edeleon
    Member
    Posted 5 years ago #

    But i think it could be good to add a field on the settings page to let the user add as many types as they want, i'm sure some other plugins can use this kind of "pingbacks" from other apps.

    TIA

  4. Joost de Valk
    Member
    Posted 5 years ago #

    Could be, but that's not the goal of my plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags