• Resolved theredeyedronin

    (@theredeyedronin)


    Hi, I was wondering if you could perhaps suggest the best method to pull a larger profile picture in your plugin.

    By default, it pulls the “normal” sized image, which is only 48x48px. according to https://dev.twitter.com/overview/general/user-profile-images-and-banners there are several sizes that can be pulled depending on the variable that occurs with the underscore at the end of the file name. The developer docs say to simply replace that variable with whatever suits you but, to be honest I’m not sure how to do that without breaking the plugin.

    Can you suggest a solution to this issue? I read something about possibly using a String replace() Method but again, I don’t know how to implement that without conflicting with your plugin which works very well without my meddling.

    Thanks

    https://wordpress.org/plugins/rotatingtweets/

Viewing 1 replies (of 1 total)
  • Plugin Author Martin Tod

    (@mpntod)

    I’ve put a new variable profile_image_size into the shortcode in the development version. You can go with:

    • profile_image_size='normal'
    • profile_image_size='bigger'
    • profile_image_size='mini'
    • profile_image_size='original'

    If you want to go further and design your own layout for Tweets, you can do this without breaking the plug-in by creating a custom function in your theme’s functions.php

    In essence, you create a function called

    rotatingtweets_display_override($args, $tweetuser, $main_text, $twitter_object, $twitterlocale, $targetvalue, $retweeter, $show_media, $nextprev) {
    
    }

    that returns what you want the tweet to look like and then set official_format='custom' in the shortcode or widget.

Viewing 1 replies (of 1 total)
  • The topic ‘Pull a larger Profile Picture’ is closed to new replies.