vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Submit threads, blogs, articles to facebook, twitter, myspace and others - addtoany (https://vborg.vbsupport.ru/showthread.php?t=235702)

TrailRecon 02-11-2010 10:00 PM

Submit threads, blogs, articles to facebook, twitter, myspace and others - addtoany
 
1 Attachment(s)
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 www.addtoany.com


Anyway, that is it! very simple, light weight and effective! Enjoy! :)




Here you will find a demo --> CLICK HERE



https://vborg.vbsupport.ru/attachmen...8&d=1265998303









EDIT:

If you would like to add this to the CMS articles, see post #8 HERE

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








.

COL NIL SATIS 02-12-2010 04:32 PM

Mate thats class..installed nice and easily ..looks a1..cheers pal

TrailRecon 02-12-2010 04:54 PM

Quote:

Originally Posted by COL NIL SATIS (Post 1980897)
Mate thats class..installed nice and easily ..looks a1..cheers pal

Thanks for the kind words! Glad you enjoy it! :)

KProjects 02-12-2010 07:13 PM

Cool - thanks!

Just added to: TwilightRumors.com (wife's site) ;)

GrossKopf 02-12-2010 07:59 PM

Fantastic mod! I've got it installed.

whitedd 02-12-2010 08:48 PM

..is this work in CMS,if I whant to share a article?...

WriteToEnlight 02-12-2010 10:29 PM

Quote:

Originally Posted by whitedd (Post 1981030)
..is this work in CMS,if I whant to share a article?...

I'd like to have this in the cms also

TrailRecon 02-13-2010 12:04 AM

1 Attachment(s)
Quote:

Originally Posted by whitedd (Post 1981030)
..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: CLICK HERE

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



https://vborg.vbsupport.ru/external/2010/10/14.jpg

djmac 02-15-2010 05:14 AM

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.

zonaenlinea 02-15-2010 12:31 PM

thank prefect


All times are GMT. The time now is 06:18 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01493 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete