Description of Tweet This! Module v0.4Updated to version 0.4 - February 12th 2009Twitter is a powerful tool for promoting your site. Even if you don't use Twitter yourself, your users might be regular Twitterers. So what if you put a "Tweet this!" link on every story on your site? Without even needing to register, people who find an interesting story can tweet it to their friends -and some people have hundreds or thousands of friends on Twitter!
The Twitter post includes the title of the link, and an automatically shortened url to the story on your site. Unlike the "Add this link to..." functionality which posts the original story to Digg, StumbleUpon, etc. the "Tweet this!" module promotes the submitted story instead. That means
your site gets new visitors from Twitter, the person who submitted the story will get more votes on it, and the original author will still get hits. Everyone's a winner!
Okay, enough promotion, here are the details...
Instructions- 1. Upload the tweet_this folder to your modules folder. Install it from Module Management in Admin.
- 2. You'll need the following in /templates/your_template/link_summary.tpl:
{checkActionsTpl location="tpl_link_summary_pre_report"}
before this block of code:
{if $link_shakebox_currentuser_votes eq 0 && $link_shakebox_currentuser_reports eq 0}
<span id="xreport-{$link_shakebox_index}"><span id="linksummaryBury"><a href="javascript:{$link_shakebox_javascript_report}">{#PLIGG_Visual_Vote_Bury#}</a></span></span>
{/if}
NotesWhen you click the Tweet this! link under a story, this module checks the database to see if a shortened link exists. If not, it uses
http://th8.us/ to create a short link and stores it in the database. If another user tweets the same story, the short link from the database is used, rather than creating a new one.
CreditsMany thanks to Richard X. Thripp who created
http://th8.us/ and the
Tweet This plugin for Wordpress which this module is based on.
Revision History- v0.4 2009/02/12 Nick - Fix to make this module compatible with changes at th8.us.
- v0.3 2009/01/20 Nick - Renamed module hook for compatibility with other modules.
- v0.2 2008/01/09 Nick - Fixed url location issue and user page issue as noted by ditto here and landshark here in the comments.
- v0.1 2008/12/05 Nick - first version.
IMPORTANT: The story submission approval module and block discarded stories are encouraged with any "add to any" or tweet modules like this one. A spammer can tweet the story on step 3 since the story's url has been already set!
Story submission approval -
http://forums.socialwebcms.com/index.php?topic=414.0block discarded stories -
http://forums.socialwebcms.com/index.php?topic=284.0