Submit threads, blogs, articles to facebook, twitter, myspace and others - addtoany
Just thought I would share a way I found for your members to submit threads to any social networking site like facebook, Twitter, digg...any of them!
----------------------------------------------------------------------------------------- To add this code, you will need to edit your "ShowThread" template. Go to: Admincp>Styles & Templates>Style manager>Edit templates>Show Thread templates>SHOWTHREAD In the SHOWTHREAD template, Find: Code:
<div id="thread_controls" class="thread_controls"> <div> And below that, add this code: Code:
<a class="a2a_dd" href="http://www.addtoany.com/share_save"><img src="http://static.addtoany.com/buttons/share_save_171_16.png" width="171" height="16" border="0" alt="Share/Bookmark"/></a><script type="text/javascript">a2a_show_title=1;a2a_num_services=14;</script><script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script> If you would like to customize the button code, go to https://www.addtoany.com Anyway, that is it! very simple, light weight and effective! Enjoy! Here you will find a demo --> http://www.trail-recon.com/vforum/showthread.php/827-For-vBulletin-org-Demo?p=11178 EDIT: If you would like to add this to the CMS articles, see post #8 HERE Spoiler (click to open)
Quote by whitedd
That is a great idea! I added it to the article pages! Here is a DEMO: http://www.trail-recon.com/vforum/content.php/159-Trail-Recon-Review-Gearwrench-Ratcheting-Flex-Head-Wrench-Set If you wanna do it this same way... Go to the "vbcms_content_article_page" template Find: Code:
<vb:if condition="$comment_block"> <div class="article_rating_container"> <a href="{vb:raw page_url}#comments" rel="nofollow">{vb:raw comment_count} <vb:if condition="$comment_count == '1'">{vb:rawphrase comment}<vb:else />{vb:rawphrase comments}</vb:if></a> <img src="{vb:raw vboptions.bburl}/{vb:stylevar imgdir_misc}/comment.png" alt="{vb:rawphrase comments}" border="0" /> </div> </vb:if> </div> And below that </div> tag add the button code: Code:
<a class="a2a_dd" href="http://www.addtoany.com/share_save"><img src="http://static.addtoany.com/buttons/share_save_171_16.png" width="171" height="16" border="0" alt="Share/Bookmark"/></a><script type="text/javascript">a2a_show_title=1;a2a_num_services=14;</script><script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script> Just did some testing on my site but in a bunch of configurations it appears to be trouble free Close
If you would like to add this to blogs, see post #16 HERE Spoiler (click to open)
Quote by djmac
Go to the "blog_show_entry" template. Find: Code:
{vb:raw bookmarksites} One thing to note, this will only display in that location if bookmarks are turned ON in the admin cp settings. If bookmarks are turned on I think it looks best there If you would like to have this button in the blogs but DO NOT want to have the bookmarks turned on, you would need to move it outside that conditional statement. So instead... find: Code:
<div class="blogcontrol fly"> Close
. Download No files for download. Screenshots |
Similar Mods
Show Thread Enhancements Submit to Twitter and Facebook | vBulletin 4.x Template Modifications |