Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

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
  #42  
Old 02-28-2010, 12:44 AM
TrailRecon's Avatar
TrailRecon TrailRecon is offline
 
Join Date: Nov 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, you could, but again, this mod only grabs the page name so for example, if it was in a group, it would not quote the messages in the album, just the page name...same with albums

if you would like i will show you how to add it to them as well. just let me know if you still want that!
Reply With Quote
  #43  
Old 02-28-2010, 03:29 AM
Jabong82 Jabong82 is offline
 
Join Date: Feb 2010
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TrailRecon View Post
well, you could, but again, this mod only grabs the page name so for example, if it was in a group, it would not quote the messages in the album, just the page name...same with albums

if you would like i will show you how to add it to them as well. just let me know if you still want that!
Sure if you could please give me directions I'd appreciated. I already marked as installed.

So is this not possible at all? I mean there would be no link or description?

Thank you.
Reply With Quote
  #44  
Old 03-02-2010, 02:39 AM
Macgiber Macgiber is offline
 
Join Date: Apr 2009
Location: PR
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
  #45  
Old 03-02-2010, 04:12 PM
zonaenlinea's Avatar
zonaenlinea zonaenlinea is offline
 
Join Date: Dec 2009
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why can not I stay down like the others I have up

Reply With Quote
  #46  
Old 03-03-2010, 08:33 PM
pbradish pbradish is offline
 
Join Date: Mar 2006
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent bit of code. Thanks!
Reply With Quote
  #47  
Old 03-19-2010, 12:14 AM
johnny713 johnny713 is offline
 
Join Date: Mar 2006
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for sharing nice code. But can you tell me where to turn on the blog bookmark? I can't find it .
Reply With Quote
  #48  
Old 03-22-2010, 05:15 AM
DirtNations DirtNations is offline
 
Join Date: Dec 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ComoEstaEso-com View Post
Thank you!
Thanks for your work!!

QuickQuestion:
I just went to 'share' a thread via Facebook, and the information that appeared in Facebook was pointing to my website address... yet there was no text of the thread, or a direct link to the thread.
Just a link to the website's homepage.

Do I have something mis-configured?
Thanks for the help TrailRecon... it is very much appreciated!! :up::up:
We are having the same problem. When sharing a thread through Facebook Share, it initially shows the thread title and the proper url to the specific thread, but then it is quickly replaced with the site title, url to the main site, and a generic description that says "powered by vBulletin".

I created a simple link to Facebook Share from a specific thread and we saw the same behavior, so I don't think it is something wrong with this mod as much as it is a bug with vBulletin 4.0.

Any suggestions?
Reply With Quote
  #49  
Old 03-22-2010, 09:45 AM
gyaronn's Avatar
gyaronn gyaronn is offline
 
Join Date: Dec 2009
Location: Poland
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

love the mod grate job m8 :-)
Reply With Quote
  #50  
Old 03-22-2010, 06:23 PM
barnes5150 barnes5150 is offline
 
Join Date: May 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why better social bookmarking is not included in vB4 I will never know.

Thanks for figuring this out. Added to CMS, Forums, and Blog pages
Reply With Quote
  #51  
Old 03-23-2010, 12:57 PM
justasiam justasiam is offline
 
Join Date: Feb 2010
Location: Los Angeles, CA
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for this excellent addition to my forums. I installed it in the forums, articles and blog. I did not do the calendar or albums area as I need it to NOT grab the page title.

Quote:
Originally Posted by TrailRecon View Post
That is correct, this particular one only will share the page you are on. It will share the thread, blog or article...but not an individual post out of the page.

I will start looking into a way to share individual posts but this one won't do it
I too would love to be able to have this option above or below each reply in a post as well as the option i have now to send the entire page. I am no coder, but maybe putting this mod in the "posbit" or "postbit_legacy" template will work.

Also, can somebody tell me how to add this to the bottom of the articles (since it is already at the top) and the top of the blog (since it is already at the bottom). This would be very helpful on long articles and blogs.

I have my bookmarking turned off now that this is here if that is any help to you.
Reply With Quote
Reply


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:28 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.08422 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
  • (2)bbcode_code
  • (3)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
  • (3)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