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
  #32  
Old 02-25-2010, 01:57 AM
cloferba cloferba is offline
 
Join Date: Apr 2009
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i know i can change language, but what i need is to change the button text "Share/Save" to something more "friendly"

so..no way to change that
Reply With Quote
  #33  
Old 02-25-2010, 05:38 PM
ComoEstaEso-com ComoEstaEso-com is offline
 
Join Date: Jul 2009
Location: Puerto Rico
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TrailRecon View Post
In the admin CP, along the left side menu, click on the one called settings to expand it. one of the sub menus is "social Bookmarking manager"
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:
Reply With Quote
  #34  
Old 02-25-2010, 05:41 PM
TrailRecon's Avatar
TrailRecon TrailRecon is offline
 
Join Date: Nov 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cloferba View Post
i know i can change language, but what i need is to change the button text "Share/Save" to something more "friendly"

so..no way to change that

Yes...you can.

It is simply an image. See this part of the code

Code:
<img src="http://static.addtoany.com/buttons/share_save_171_16.png" border="0" alt="Share"/>
it points to the image of the button. I checked their TOS and they support new buttns and ask if you make a new one to share it here

http://www.flickr.com/groups/addtoany_buttons/pool/


So in other words. yes, create a new image for the button. Host it wherever you choose then change the code above to point to the location of the newly created button
Reply With Quote
  #35  
Old 02-25-2010, 05:44 PM
TrailRecon's Avatar
TrailRecon TrailRecon is offline
 
Join Date: Nov 2009
Posts: 40
Благодарил(а): 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.
:
Thanks comoestaeso!

Does this sound like what you experienced? If not, let me know and I will look at what is happening

Quote:
Why doesn't Facebook use the page title and how can I set the image Facebook uses?

Facebook does link sharing a little differently than most other services. Facebook uses the Meta Description of a shared page instead of the page's title or the title you have set for your AddToAny sharing widget. To change the description or image on Facebook, you will need to modify your pages. For information on setting the description and image that Facebook uses, see http://wiki.developers.facebook.com/...ying_Meta_Tags.
Reply With Quote
  #36  
Old 02-25-2010, 05:58 PM
ComoEstaEso-com ComoEstaEso-com is offline
 
Join Date: Jul 2009
Location: Puerto Rico
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TrailRecon View Post
Thanks comoestaeso!

Does this sound like what you experienced? If not, let me know and I will look at what is happening
Thanks again for all your support!

I'm going to get on that, and will update later tonight (running out the door at the moment).
Will follow-up on how it went

Have a great day!!

-- AJ
.
Reply With Quote
  #37  
Old 02-25-2010, 06:11 PM
TrailRecon's Avatar
TrailRecon TrailRecon is offline
 
Join Date: Nov 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ComoEstaEso-com View Post
Thanks again for all your support!

I'm going to get on that, and will update later tonight (running out the door at the moment).
Will follow-up on how it went

Have a great day!!

-- AJ
.
Sounds good! Let me know if that was not it ad I will be happy to help if I can
Reply With Quote
  #38  
Old 02-27-2010, 09:18 AM
is_it_me is_it_me is offline
 
Join Date: Mar 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by is_it_me View Post
Is there anyway this could be used for events listed in the calendars?

This would be well handy as my site is a local community what's on site.

Thanks in advance for any help.
Any ideas, anyone?
Reply With Quote
  #39  
Old 02-27-2010, 10:16 PM
TrailRecon's Avatar
TrailRecon TrailRecon is offline
 
Join Date: Nov 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by is_it_me View Post
Is there anyway this could be used for events listed in the calendars?

This would be well handy as my site is a local community what's on site.

Thanks in advance for any help.

soryy, bit of a rush right now but this should work well for you.


Navigate to your CALENDAR template:

find:
Code:
<body>
{vb:raw header}
{vb:raw navbar}

<div id="pagetitle">
and directly beneath that ad this code:
Code:
<span style="float: right;"><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></span>

problem is, this button grabs the page title...not the content such as posts which is how it treats calendar events. So this will put the button on the page but if a user clicks it, it will only auto fill out the comment as the page titkle and they would have to type the comment they like...i do not think there is a way (with this mod) to have the event title captured by the button buut I can look into it when I have some more time
Reply With Quote
  #40  
Old 02-27-2010, 10:46 PM
stl7997 stl7997 is offline
 
Join Date: Nov 2009
Location: Germany
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice! This will be a great addition to any forum! Thanks for the find!
Reply With Quote
  #41  
Old 02-27-2010, 11:22 PM
Jabong82 Jabong82 is offline
 
Join Date: Feb 2010
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any way to make this work for albums and groups?
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:35 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.05292 seconds
  • Memory Usage 2,353KB
  • 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
  • (5)bbcode_code
  • (8)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
  • (1)pagenav_pagelinkrel
  • (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