Unmaintained [TH] Follow Button Above Sidebar (Large) 1.1a

Adds a Twitter follow button above the sidebar for your site's twitter account.

  1. DEXTER
    Compatible XF Versions:
    • 1.2
    • 1.3
    • 1.4
    I was looking for a non-intrusive way to display an image or object which links to my site's Twitter account. I found out about Twitter buttons, and did so by adding one to the top of my sidebar. This add on will create a template modification for XenForo 1.2 which displays a Large twitter button above the sidebar. By default, the alignment is set to right, but you can change it if you wish.

    Preview:
    twitterlarepreview.png
    To install:

    1. Upload the xml file the same way as you would install a normal add on @ AdminCP >> Home >> Install Add on.

    2. Turn on debug mode. You will need it to edit the Template modification.

    3. Go to Appearance >> Template modifications >> Select the one for this add on.

    4. To change to your Twitter account, edit the following code in the 'replace' box to reflect your twitter username:
    Code:
    "https://twitter.com/XenForo"
    Code:
    Follow @XenForo
    5. Press Save, and you're done! :D

    For those who are using XenForo 1.1.x, you can add this via a manual template edit. You can do so by adding the following code to your ad_sidebar_top template. :)
    Code:
    <p align="right"><a href="https://twitter.com/XenForo" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @XenForo</a>
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script></p>
    Note: You may need to add a <br> tag if adding right next to the text that is already in the template.

    Feel free to use and modify this to suit your forum's needs. Please do not re-distribute this add on without prior consent.

    Enjoy :)

    Images

    xteam likes this.
  • About Us

    Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.
  • Quick Navigation

    Open the Quick Navigation

  • Like us on Facebook

  • Premium VIP Member

    The management works very hard to make sure the community is running the best software, best designs, and all the other bells and whistles. Care to buy us a beer? We'd really appreciate it!

    Premium Upgrade