Support » Plugin: Rotating Tweets (Twitter widget and shortcode) » Tweet Owner Icon display

  • Resolved CharlieTait

    (@charlietait)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Tweet Owner Icon display’ is closed to new replies.