tweet

Bigg Boss Tamil 3's Vanitha Vijayakumar Wishes Brother Arun Vijay on Birthday With a Heartfelt Tweet

Actor-director Vanitha Vijayakumar had been on of the most controversial inmates in Season 3 of Bigg Boss Tamil, since she was vocal about not being in good terms with her family, including her brother Arun Vijay.




tweet

Chiranjeevi Joins Twitter and Instagram on Ugadi, Tweets About 21 Days Lockdown

South star Chiranjeevi has joined Instagram and Twitter on the day of Ugadi in order to stay in touch with his fans directly.




tweet

Sania Mirza clarifies on 'joru ka ghulam' tweet, says wives blamed for players poor show

Mirza has spoken about this tweet during a video interaction with Indian women cricketers Jemimah Rodrigues and Smriti Mandhana on their Youtube chat show "Double Trouble."




tweet

RIP Rishi Kapoor: Sudeep, Ramesh Aravind, Dhananjay & Other Sandalwood Stars Tweet Condolences

The nation woke up to the sad news of legendary Bollywood star Rishi Kapoor's demise today on April 30. The 67-year-old actor, who was suffering from cancer, was shooting for a film in Delhi when he fell ill again earlier this




tweet

Actress Rakul Preet Singh gives a sassy reply to KRK on 'buying alcohol' amid lockdown - Check tweets

Rakul Preet Singh is quite active on social media these days and keeps posting interesting posts to keep busy this quarantine season.




tweet

In 13-tweet retort, Nirmala Sitharaman debunks Congress' claims over corporate loan write-off

Finance Minister Nirmala Sitharaman insisted that the Indian National Congress and Rahul Gandhi should introspect why they "fail to play a constructive role in cleaning up the system".




tweet

Tweeted heresies : Saudi Islam in transformation [Electronic book] / Abdullah Hamidaddin.

New York, NY : Oxford University Press, 2019.




tweet

RSS to Create a Photo Tweet

IFTT Recipe  for an RSS Feed to create a tweet with photo.

complete article




tweet

Create Clicks to Tweets

How to Create Click to Tweets for Easy Sharing of Your Podcast

complete article




tweet

Jack Dorsey on Filter Bubbles, Twitter Fights and 12 Years of Tweeting | WIRED25

Twitter and Square Cofounder and CEO Jack Dorsey spoke with WIRED’s Editor-in-Chief Nicholas Thompson as part of WIRED25, WIRED’s 25th anniversary celebration in San Francisco.




tweet

Texans' Deshaun Watson tweets about Bears' lack of interest during 2017 draft

Everything's totally fine!




tweet

Suhel Seth's tweetstorm against The Economist is beyond snarky

His spat on Twitter with the publication's India correspondent over an article on Ratan Tata transformed into a tweet-size critique of foreign media reporting on India




tweet

Custom Tweet Button for WordPress

How to create a custom Tweet Button for WordPress using the bit.ly and Twitter APIs. The HTML and CSS is completely customisable and there is no need for JavaScript. PHP is used to automatically shorten and cache the URL of a post, fetch and cache the number of retweets, and populate the query string parameters in the link to Twitter.

The custom Tweet Button at the bottom of this post was created using this method. All the files are available on Github and released under MIT license. The PHP code was heavily influenced by the BackType Tweetcount plugin.

How to use

You’ll need your own bit.ly account and to be comfortable editing your theme’s functions.php, style.css, and template files. Be sure to make backups before you start making changes.

Step 1: Download the Custom Tweet Button for WordPress files from Github.

Step 2: Include the custom-tweet-button.php file in your theme’s functions.php file.

Step 3: Replace the bit.ly username, bit.ly API key, and Twitter username placeholders in the tweet_button function with your own. Your bit.ly credentials can be found on the “settings” page of your account.

Step 4: Add the custom Tweet Button CSS to your theme’s style.css file. Add the tweet.png image in your theme’s image folder. Make sure the image is correctly referenced in the CSS file.

Step 5: Call the function tweet_button in your template files (e.g. single.php) at the position(s) in the HTML you’d like the Tweet Button to appear:

if (function_exists('tweet_button')) {
   tweet_button(get_permalink());
}

Why make your own Tweet Button?

Making your own custom Tweet Button for WordPress has several additional advantages over using Twitter’s own offerings.

  • Full control over the HTML and CSS.
    Having full control over the HTML and CSS means that you can choose how to present your Tweet Button. I decided to reproduce the horizontal and vertical styles of Twitter’s own button. But any appearance is possible.

  • All click, traffic, and referrer data is stored in your bit.ly account.
    The URL for any published post is automatically shortened using the bit.ly service. The short URL is then passed to Twitter to ensure you can monitor the click and traffic data in your bit.ly account. The permalink is passed to Twitter in the counturl query string parameter to ensure that it counts the URL that your short URL resolves to.

  • No need for JavaScript or embedded iframes.
    The Tweet Button works without JavaScript. You have full control over any custom JavaScript enhancements you may wish to include. If you’d prefer Twitter’s share page to open in a pop-up window you can write your own JavaScript handler.

  • Faster page load.
    No external JavaScript or image files are loaded; both the short URL and retweet counts are cached.

  • Use the short URL and retweet count for other purposes.
    The short URLs and retweet counts are stored as post meta-data. This makes it easy to display this data anywhere else in a post. The retweet count data could be used for conditional template logic. For example, you could order posts based on the number of retweets, apply custom styles to your most retweeted posts, or display your most tweeted posts in a widget.

  • Easy to add Google Analytics campaign and event tracking.
    The Tweet Button is simple HTML and you have control over all the information that is sent to Twitter. Therefore, it is possible to use Google Analytics to help answer questions like: are people sharing your posts from the homepage or the post itself? If the Tweet Button is displayed above and below your posts, which gets the most clicks? How long do people take to click the Tweet Button? How many people are visiting my site thanks to links posted on Twitter using the Tweet Button?

  • Approximate the number of retweets for old posts.
    Before the release of the official Tweet Button, Twitter did not collect data on the number of times a URL was tweeted. This means your older posts may display far fewer retweets than actually occurred. However, there is a workaround. Use a service like Topsy, Backtype, or Tweetmeme to get the number of times your old post was retweeted. The difference between this and the number from Twitter’s APIs is the approximate number of retweets Twitter missed. To correct the retweet count for old posts add the number of missed retweets to a Custom Field called retweet_count_start.

How the custom Tweet Button works

Once a post is published its permalink URL is shortened using the bit.ly API.

The returned URL is permanently cached in the bitly_short_url Custom Field. The short URL is now part of the post’s general meta-data and can be used in contexts other than the Tweet Button.

The Twitter API is used to get the number of retweets for the post’s permalink URL. This number, along with the time at which it was requested, is cached in the retweet_cache Custom Field. When the cache interval has passed, an API call is made and the returned number of retweets is checked against the value stored in retweet_cache. If the returned number is greater, the value of retweet_cache is updated.

The content of the tweet is automatically created by setting several properties for the http://twitter.com/share URL. The post title makes up the message; the short URL is passed to Twitter as the URL to be displayed in the tweet; the permalink URL is passed to Twitter as the URL to be counted; and your username is declared.

$twitter_params =
'?text=' . urlencode($title) .
'&url=' . urlencode($short_url) .
'&counturl=' .urlencode($url).
'&via=' . $twitter_via;

The default HTML output is very simple and can be fully customised. To display the count number vertically, add the class vcount.

<div class="twitter-share vcount>
   <a class="twitter-button"
      rel="external nofollow"
      title="Share this on Twitter"
      href="http://twitter.com/share?query-string-params"
      target="_blank">Tweet</a>
   <a class="twitter-count" href="http://twitter.com/search?q=url>259</a>
</div>

Further enhancements

Please apply any improvements or enhancements for the script against the source repository.




tweet

Twitter rolls out ‘schedule tweet’ feature for select users

Twitter is allowing a few select users to schedule their tweets on its desktop app.The feature was first spotted by The Next Web who reported that a f




tweet

Trump’s tweets prompt Pfizer to postpone drug price hikes

The president deemed the price rollback a victory, but industry watchers say Pfizer could benefit in the long run




tweet

AAP Punjab chief tweets: Navjot Sidhu and wife most welcome in party




tweet

Tesla falls as Musk says stock too high in 2018-style tweets




tweet

‘All of Hardik’s tweets are against the BJP… Is everything all right with the Congress’, says Vijay Rupani




tweet

New Pak strategy: Bleed India with a thousand tweets

Indian agencies have been engaged in countering Pakistani cyber-attacks on social media platforms for a very long time. But just like the fight against the coronavirus, only through the active participation of ordinary citizens that this war on fake news can be won, suggets Colonel S Dinny (retd).




tweet

Devendra Fadnavis apologises over tweet on Chhatrapati Shahu Maharaj




tweet

Delhi Minorities Commission chief booked for sedition after controversial tweet




tweet

Pakistan's new strategy: Bleed India with a thousand tweets

Indian agencies have been engaged in countering Pakistani cyber-attacks on social media platforms for a very long time.




tweet

Want feedback from Roger Federer? Tweet him your volleying video




tweet

Putting all immigration on hold, tweets Trump; India waits for order, fine print




tweet

After top official replies, Bengal Governor tweets: OMG! where are we heading?




tweet

Javed Jaaferi to file defamation suit against online user over ‘fake’ tweet