Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2012-03-11 22:12:28
- scdoody
- Member
- Registered: 2006-10-18
- Posts: 129
Help With "Tweet" Button
I’m trying to put a tweet button on all my posts. I’m doing this by including this code on the article_full form:
<div style=“float:right; padding:0px; margin:0px;”>
<script type=“text/javascript”>
tweetmeme_url = ‘<txp:permlink/>’;
tweetmeme_source = ‘mytwitterusername’;
tweetmeme_style = ‘compact’;
</script>
<script type=“text/javascript” src=“http://tweetmeme.com/i/scripts/button.js”></script>
</div>
BUT the problem is that it doesn’t include the link, it just includes the page title and my twitter username. Help!! What do I need to put for the tweetmeme_url field to get my article’s full URL to show up in the pre-populated tweet?
Thanks!
Offline
Re: Help With "Tweet" Button
You can use twitter’s official button scripting for this, instead of tweetmeme. I provide an example in my GitHub repo
Go to the twitter directory in the repo and copy the code from that into your article form. Cheers, Phil.
Offline
Pages: 1