1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
    Dismiss Notice
  3. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Tweet Button

Discussion in 'Template Modifications [Archive]' started by Mikey, Oct 6, 2010.

  1. Mikey

    Mikey Well-Known Member

    Attached is the .txt file telling you how to acheive the below affect;

    I am talking of course about the button named "Tweet" in the top right hand corner of the threads.



    Attached Files:

    Insy, Greg M, MrBrian and 6 others like this.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Presumably it tweets to the account you have set in your profile?
  3. Mikey

    Mikey Well-Known Member

    Nope, it's all using Twitters Tweet Button - if you're not logged into twitter and you test this, it will ask you to log in, then tweet it from the account you logged in with.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    OK, thanks.
    Mikey likes this.
  5. projectego

    projectego Active Member

    Great idea, Mikey. I've only recently gotten into the whole Twitter thing. Heh. This'll come in very handy.
    Mikey likes this.
  6. Salty

    Salty Active Member

    Automatically tweet all threads from the forum to one central Twitter account would be rad~
  7. Mikey

    Mikey Well-Known Member

    Thanks to Ceri May for the visual button code posted over at xenfans.com

    If you want this code next to the FaceBook 'like' button, simply follow the info in the .txt and apply it to the template "share_page"

    Here is what my share_page template looks like (using Cezz's button code rather than my link)

    <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}&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=trebuchet+ms&amp;colorscheme=light&amp;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>
    ands a screenshot of it next to the facebook 'like'

    puertoblack2003 likes this.
  8. MentaL

    MentaL Active Member

    I tried it on your website, with my popup blocker it redirects too

    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

  9. Floris

    Floris Guest

    Looks great Mikey, short and simple.
    I am of course hoping for a few more social features to appear in 1.1.x but until then this is very nice to have.
  10. Mikey

    Mikey Well-Known Member

    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 you :rolleyes:
  11. Martyn

    Martyn Active Member

    confused, can you add the bit to add tweet button in the oppisite side of facebook in the main thread? -.-
  12. Travis

    Travis Active Member

    I copied the code exactly from the download,but I am getting a twitter error:
  13. Mayers

    Mayers Member

    I got this error too.
  14. Mikey

    Mikey Well-Known Member

    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"?
  15. Mayers

    Mayers Member

    Yes I have, just looked over those settings and both are filled in with the right details.
  16. Travis

    Travis Active Member

  17. jonsidneyb

    jonsidneyb Well-Known Member

    I am going to sound really stupid. I know tweet is popular but I never did anything tweet related.

    I am sure it is great but what does tweeting actually do?
  18. OperaManiac

    OperaManiac Well-Known Member

    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. :)
  19. Salty

    Salty Active Member


  20. OperaManiac

    OperaManiac Well-Known Member

    i had to make it private because kier said it was polluting twitter's search for xenforo :)


    if you want to follow it, just send a request and i would add you!

    essentially, it post one tweet every 15 minutes from the latest updates on the forum.

Share This Page