Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
Submit threads, blogs, articles to facebook, twitter, myspace and others - addtoany Details »»
Submit threads, blogs, articles to facebook, twitter, myspace and others - addtoany
Version: 1.00, by TrailRecon TrailRecon is offline
Developer Last Online: May 2011 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.1 Rating:
Released: 02-11-2010 Last Update: Never Installs: 248
Template Edits
 
No support by the author.

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













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








.

Screenshots

File Type: jpg share.jpg (69.9 KB, 0 views)
File Type: jpg Collapsed.jpg (20.0 KB, 0 views)
File Type: jpg expanded.jpg (29.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 11-07-2010, 02:22 PM
dcuellar dcuellar is offline
 
Join Date: Nov 2007
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance you can help me find a way to exclude certain forums?


Here's a small contribution for those who want to place this in the blog. (I tried the one suggested here, but I didn't like where it was being placed)

Find:
Code:
<div id="pagetitle">
And Place this above:
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" align="right"/></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>



Look below for a screenshot of the location. Right on the top. I feel people will find it more easily this way.
Attached Images
File Type: png Screen shot 2010-11-07 at 11.17.21 AM.png (39.1 KB, 0 views)
Reply With Quote
  #103  
Old 11-07-2010, 04:35 PM
dcuellar dcuellar is offline
 
Join Date: Nov 2007
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found out how to EXCLUDE FORUMS WHEN PLACING THE CODE IN SHOWTHREAD TEMPLATE:

Use this code instead of the one provided by the author of this mod:
Code:
<vb:if condition="!in_array($GLOBALS['forumid'], array(x,y,z))">
<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>
</vb:if>
Replace what's in red with your forum id's. Separate multiple id's with a comma in between.
Reply With Quote
  #104  
Old 11-09-2010, 11:56 PM
hardboiled's Avatar
hardboiled hardboiled is offline
 
Join Date: Dec 2009
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works awesome, thanks.
Reply With Quote
  #105  
Old 11-15-2010, 02:32 PM
motorola motorola is offline
 
Join Date: May 2009
Location: Romania
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After upgrading to 4.0.8 I got a probblem. Look in the screenshot. How can I move to the left like it was in 4.0.7 ?
Attached Images
File Type: jpg share.JPG (19.9 KB, 0 views)
Reply With Quote
  #106  
Old 11-16-2010, 02:10 AM
Fusion2 Fusion2 is offline
 
Join Date: Oct 2006
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your demo site goes to an Out of Service go-daddy website.
Reply With Quote
  #107  
Old 11-16-2010, 02:10 PM
motorola motorola is offline
 
Join Date: May 2009
Location: Romania
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fusion2 View Post
Your demo site goes to an Out of Service go-daddy website.
My demo site?
Reply With Quote
  #108  
Old 11-19-2010, 07:34 PM
aberg aberg is offline
 
Join Date: Jul 2004
Location: Netherlands
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boko577 View Post
Hey I'm trying to use another code that I like more, but every time I put the code in, the buttons come up a line above the other buttons like "Thread Tools" and so on. This makes the bar longer and it doesn't look right. Could you try and get this code to work?
PLEASE NO ONE USE THE CODE BELOW! THIS HAS TRACKING TO MY WEBSITE AND GIVES ME MY OWN ANALYTICS! If you want this code instead go to addthis.com
Code:
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style">
<a href="http://www.addthis.com/bookmark.php?v=250&amp;username=boko577" class="addthis_button_compact">Share</a>
<span class="addthis_separator">|</span>
<a class="addthis_button_facebook"></a>
<a class="addthis_button_myspace"></a>
<a class="addthis_button_google"></a>
<a class="addthis_button_twitter"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=boko577"></script>
<!-- AddThis Button END -->
Same here, but I don't read I solution for this.
Anyone the solution?
Reply With Quote
  #109  
Old 12-11-2010, 02:09 PM
baghdad4ever baghdad4ever is offline
 
Join Date: Apr 2007
Location: baghdad
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks

its great
Reply With Quote
  #110  
Old 12-25-2010, 08:36 AM
motorola motorola is offline
 
Join Date: May 2009
Location: Romania
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uninstalled, its not working good on 4.1.0 PL2
Reply With Quote
  #111  
Old 01-16-2011, 05:15 AM
jgt58 jgt58 is offline
 
Join Date: May 2010
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doesnt work right on 4.1.1
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04410 seconds
  • Memory Usage 2,340KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete