Back to vBulletin 4.x Template Modifications

Submit threads, blogs, articles to facebook, twitter, myspace and others - addtoany
Mod Version: 1.00, by TrailRecon

vB Version: 4.0.1 Rating: (34 votes - 4.82 average) Installs: 248
Released: 12 Feb 2010 Last Update: Never Downloads: 0
Not Supported Template Edits External Content  

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
..is this work in CMS,if I whant to share a article?...

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

Attached Thumbnails
Click image for larger version
Name:	cmsbutton.jpg
Views:	9993
Size:	45.3 KB
ID:	112198  

Close


If you would like to add this to blogs, see post #16 HERE

Spoiler (click to open)


Quote by djmac
This is a great MOD job well done. How can I add this to my BLOG. I added it to the CMS BINGO! Works great.

Go to the "blog_show_entry" template.

Find:
Code:
{vb:raw bookmarksites}
add the code DIRECTLY before that (after <p class="bookmarks">)

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">
and add the code right after it

Close


.

Download

No files for download.

Screenshots

Click image for larger version
Name:	share.jpg
Views:	10557
Size:	69.9 KB
ID:	112188   Click image for larger version
Name:	Collapsed.jpg
Views:	1511
Size:	20.0 KB
ID:	112190   Click image for larger version
Name:	expanded.jpg
Views:	389
Size:	29.9 KB
ID:	112191  

Similar Mods

Show Thread Enhancements Submit to Twitter and Facebook vBulletin 4.x Template Modifications

vblts.ru supports vBulletin®, 2022-2024