WordPress.org

Ready to get started?Download WordPress

Forums

oAuth Twitter Feed for Developers
Output Styling (7 posts)

  1. Elliot Toman
    Member
    Posted 1 year ago #

    This looks like a very useful plugin, but I'm a frontend designer and don't know how to style the PHP array. Can you point me to any resources where I can learn about it?

    http://wordpress.org/extend/plugins/oauth-twitter-feed-for-developers/

  2. matt adams
    Member
    Posted 1 year ago #

    try this.

    https://github.com/stormuk/storm-twitter-for-wordpress/wiki/Example-code-to-layout-tweets

    and to add a element / clss to the tweets i did this:
    echo '<p class="tweet">' . $the_tweet . '</p>';

  3. matt adams
    Member
    Posted 1 year ago #

    i just now dove into this, but post up any questions here

  4. mlkingh
    Member
    Posted 1 year ago #

    I am using that example from stormuk, but I cannot figure out how to add a profile image into it and I need profile images on there for my client. I don't write PHP code although I can manipulate it sometimes. Any sample code that shows how to add the profile image to the example above?

  5. matt adams
    Member
    Posted 1 year ago #

  6. mlkingh
    Member
    Posted 1 year ago #

    Like this?

    echo '<p class="tweet">' . $the_tweet . '</p>';
     echo '$profile_image_url';
     echo '
            <div class="twitter_intents">
                <p><a href="https://twitter.com/intent/tweet?in_reply_to='.$tweet['id_str'].'">Reply</a> | 
                <a href="https://twitter.com/intent/retweet?tweet_id='.$tweet['id_str'].'">Retweet</a> | 
                <a href="https://twitter.com/intent/favorite?tweet_id='.$tweet['id_str'].'">Favorite</a></p>
            </div>';
           echo '
       <div class="timestamp">
                <a href="https://twitter.com/mlkingh/status/'.$tweet['id_str'].'">
                    '.date('h:i A M d',strtotime($tweet['created_at']. '- 8 hours')).'
                </a>
            </div>';// -8 GMT for Pacific Standard Time
        } else {
            echo '
            <hr>
            <a href="http://twitter.com/mlkingh">Click here to read mlkingh\'S Twitter feed</a>';
        }
    }
    }

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged/corrupted by the forum's parser.]

  7. mlkingh
    Member
    Posted 1 year ago #

    I mean like this...I forgot to click the code stamp in the WYSIWYG

    `echo '<p class="tweet">' . $the_tweet . '</p>';
    echo '$profile_image_url';
    echo '
    <div class="twitter_intents">
    <p>Reply |
    Retweet |
    Favorite</p>
    </div>';
    echo '
    <div class="timestamp">

    '.date('h:i A M d',strtotime($tweet['created_at']. '- 8 hours')).'

    </div>';// -8 GMT for Pacific Standard Time
    } else {
    echo '
    <hr>
    Click here to read mlkingh\'S Twitter feed';
    }
    }
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.