WordPress.org

Ready to get started?Download WordPress

Forums

Rotating Tweets (Twitter widget and shortcode)
[resolved] Tweet Owner Icon display (3 posts)

  1. CharlieTait
    Member
    Posted 1 year ago #

    I've written a custom display format based on the case 2 display format. The layout all works fine however it doesn't pull the tweet owners profile image for a retweet as it does in the case 2 display format. I'm obviously missing something. Can anybody help identify what I am doing wrong? I've included the case 2 code and the new code I created, case 6.

    case 2:
    # This is a slightly adjusted version of the original tweet - designed for wide boxes - consistent with Twitter guidelines
    $result .= "\n\t\t<div class='rtw_wide'>";
    $result .= "\n\t\t<div class='rtw_wide_icon'>".rotatingtweets_user_intent($tweetuser,$twitterlocale,'icon',$targetvalue)."</div>";
    $result .= "\n\t\t<div class='rtw_wide_block'><div class='rtw_info'>";
    $result .= "\n\t\t\t<div class='rtw_time_short'>".rotatingtweets_timestamp_link($twitter_object,'short',$targetvalue).'</div>';
    $result .= "\n\t\t\t<div class='rtw_name'>".rotatingtweets_user_intent($tweetuser,$twitterlocale,'name',$targetvalue)."</div>";
    $result .= "\n\t\t\t<div class='rtw_id'>".rotatingtweets_user_intent($tweetuser,$twitterlocale,'screen_name',$targetvalue)."</div>";
    $result .= "\n\t\t</div>";
    $result .= "\n\t\t<p class='rtw_main'>".$main_text."</p>";
    //$result .= "\n\t\t<div class='rtw_meta'><div class='rtw_intents'>".rotatingtweets_intents($twitter_object,$twitterlocale, 1).'</div>';
    if(isset($retweeter)) {
    $result .= "\n\t\t<div class='rtw_rt_meta'>".rotatingtweets_user_intent($retweeter,$twitterlocale,"<img src='".plugins_url('images/retweet_on.png',__FILE__)."' width='16' height='16' alt='".sprintf(__('Retweeted by %s','rotatingtweets'),$retweeter['name'])."' />".sprintf(__('Retweeted by %s','rotatingtweets'),$retweeter['name']),$targetvalue)."</div>";
    }
    $result .= "\n\t\t<div class='rtw_meta'><span class='rtw_expand' style='display:none;'>".__('Expand','rotatingtweets')."</span><span class='rtw_intents'>".rotatingtweets_intents($twitter_object,$twitterlocale, 2,$targetvalue).'</span>';
    $result .= "</div></div></div>";
    break;

    case 6;
    $result .= "\n\t\t<div class='rtw_wide'>";
    $result .= "\n\t\t<div class='rtw_wide_icon'>".rotatingtweets_user_intent($tweetuser,$twitterlocale,'icon',$targetvalue)."</div>";
    $result .= "\n\t\t<div class='rtw_wide_block'><div class='rtw_info'>";
    $result .= "\n\t\t\t<div class='rtw_name'>".rotatingtweets_user_intent($tweetuser,$twitterlocale,'name',$targetvalue)."</div>";
    $result .= "\n\t\t\t<div class='rtw_id'>".rotatingtweets_user_intent($tweetuser,$twitterlocale,'screen_name',$targetvalue)."</div>";
    $result .="\n\t\t</div>";
    $result .= "\n\t\t<p class='rtw_main'>".$main_text."</p>";
    $result .= "\n\t\t<div class='rtw_meta'><div class='rtw_intents'>".rotatingtweets_intents($twitter_object,$twitterlocale, 1,$targetvalue).'</div>';
    $result .= rotatingtweets_timestamp_link($twitter_object,'long',$targetvalue);
    $result .= "</div></div></div>";
    break;

    http://wordpress.org/extend/plugins/rotatingtweets/

  2. Martin Tod
    Member
    Plugin Author

    Posted 1 year ago #

    Try changing line 1020 to:

    $rt_replace_array = array(1,2,3,6);

    :-)

  3. CharlieTait
    Member
    Posted 1 year ago #

    Got it, thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic