WordPress.org

Ready to get started?Download WordPress

Forums

Twitget
[resolved] Fully customize output (3 posts)

  1. SlammedDime
    Member
    Posted 1 year ago #

    You have some options now for before/after tweet, etc... what would be really awesome would be to allow us to fully customize the html of a tweet as well.

    Something like giving us a textarea in the settings where we could put in something like the following:

    "<span>{tweetText}</span><a href="{tweetUrl}">{tweetTime}</a>"

    You could create a number of predefined variables based on the information in each tweet returned from the API call, plus a few custom ones to make it easier for us to insert them into the textarea.

    Also - can you create an option for relative times, in addition to specifying a date format (ala: http://stackoverflow.com/a/2690541)?

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

  2. Boštjan Cigan
    Member
    Plugin Author

    Posted 1 year ago #

    I'll try adding both, but I'm a little busy at the moment.

    Cheers.

  3. Boštjan Cigan
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry it took so long. The custom parameters are:

    {$tweet_text} - the text of the tweet
    {$tweet_time} - the time of the tweet
    {$tweet_location} - the location of the tweet (example: Budapest)
    {$profile_image} - the url to the profile image of the user
    {$user_real_name} - the real name of the user
    {$user_twitter_name} - username of the twitter user
    {$url} - website url of the user
    {$user_description} - description of the user
    {$user_location} - user location
    {$follower_count} - number of followers
    {$friends_count} - number of friends

    But you can check all that in version 1.3 in the "Advanced settings" section.

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.