Presumably it tweets to the account you have set in your profile?
Thanks Mikey, this has been really useful
I did change the code slightly so as to use the official twitter button and counter, but it uses the variables you used so thank you..
PHP:<a href="http://twitter.com/share" class="twitter-share-button" data-url="{$requestPaths.fullBasePath}{xen:link threads, $thread}" data-text="{$xenOptions.boardTitle} - {$thread.title}" data-count="horizontal">Tweet</a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
Actually after playing with it for a while I preferred the plain text version you created... Great work
<xen:require css="share_page.css" />
<div class="sharePage">
<div class="facebookLike">
<div class="label faint">{xen:phrase facebook}:</div>
<iframe src="http://www.facebook.com/plugins/like.php?href={xen:urlencode $url}&layout=standard&show_faces=false&width=450&action=like&font=trebuchet+ms&colorscheme=light&height=80" frameborder="0" allowTransparency="true"></iframe>
<a href="http://twitter.com/share" class="twitter-share-button" data-url="{$requestPaths.fullBasePath}{xen:link threads, $thread}" data-text="{$xenOptions.boardTitle} - {$thread.title}" data-count="horizontal">Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
</div>
</div>
javascript:window.open('http://twitter.com/share?text=XenForo Development - Testing The Tweet Button :)&url=http://xfdev.com/threads/testing-the-tweet-button.4/', 'Tweet', 'height=480,width=640', false);
null
the answer lies within your post - "popup blocker" - this uses javascript to make it popup, even the official tweet button has it pop up, there is a version in the .txt file to use a non popup version, but if you have a popup blocker, of course this edit wont work for youI tried it on your website, with my popup blocker it redirects too
[/code]Code:javascript:window.open('http://twitter.com/share?text=XenForo Development - Testing The Tweet Button :)&url=http://xfdev.com/threads/testing-the-tweet-button.4/', 'Tweet', 'height=480,width=640', false);
then outputs
Code:null
'url' parameter does not contain a valid URL.
I copied the code exactly from the download,but I am getting a twitter error:
I copied the code exactly from the download,but I am getting a twitter error:
That's very odd, it works fine on my xfdev.com site.I got this error too.
That's very odd, it works fine on my xfdev.com site.
Have you filled out the "Board URL" & "Home Page URL" in the "Basic Board Information"?
Yes I have, just looked over those settings and both are filled in with the right details.
Automatically tweet all threads from the forum to one central Twitter account would be rad~
best solution i can suggest.
use yahoo pipes to combine the rss feeds of all the forums (since XF seems to lack a combined RSS for the entire forum). feed that RSS to a service like twitterfeed or dlvr.it. and it would work fine. i am currently feeding the rss from this forum to a twitter account named @xentweets.
We use essential cookies to make this site work, and optional cookies to enhance your experience.