• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
[TH] Follow Button Above Sidebar (Large)

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

No permission to download
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 :)
Likes: xteam
Author
DEXTER
Downloads
2
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from DEXTER