![]() |
Try This:
Code:
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="TWITTERNAME" data-url="{vb:raw vboptions.bburl}/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> |
Quote:
Quote:
For this reason I prefer to tweet the first page only no matter what page someone hits the tweet button on. Not to mention each page would have it's own tweet counter (so if someone tweets page 2, page 1 would be zero still). For the same reason I don't like using the full title in the URL because if the title is edited the count will reset as well. |
Anyone know why the tweet count resets to 0 when you refresh the page?
|
I used the code from Post 143 here and it works nicely to fix the dropped slash problem. Thank you!
How would that code be modified to Tweet a link to a single post? I'd add the button to the post header bar, next to the permalink. I assume it would use the permalink, but don't know how to code that. Similarly, how would the code for the Facebook 'Like' button be modified to 'Like' a single post instead of the entire thread? Thanx (I'm using 4.1.3) |
Code:
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="YOUR_TWITTER_USERNAME" data-url="{vb:raw vboptions.bburl}/showthread.php?p={vb:raw post.postid}#post{vb:raw post.postid}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> In facebook or anything else use this URL per post: Code:
{vb:raw vboptions.bburl}/showthread.php?p={vb:raw post.postid}#post{vb:raw post.postid} |
I installed this ok and it sends the thread out to my twitter page but the URL on the tweet does not take the reader back to the forum thread?
Its: Tweet to Twitter test http://t.co/vzi8yBF Does anyone know why its creating the wrong link, what do i need to do to the code to correct this and auto post the correct URL back to the forum thread? thanks guys Andy |
There is so much wrong with the URL you pasted I don't know where to begin...
Exactly what code are you using for the twitter buttong- post it here. Also post the URL to a thread that has the twitter button on your forum. |
Thanks BoP -
BTW, I placed a bug report at Twitter regarding the missing / after the .com and they acknowledge the bug: http://code.google.com/p/twitter-api...detail?id=2231 Quote:
|
Cool. :up:
|
Heh,
I also submitted this as a bug report to vBulletin and they acknowledged the bug but downgraded it from my "Major" rating to "Minor". Not being able to let your Twitter users with a large number of followers share a link to your forum is minor? |
All times are GMT. The time now is 01:00 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|