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
  #22  
Old 02-20-2010, 09:18 PM
GeorgeB85 GeorgeB85 is offline
 
Join Date: Nov 2008
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way it could link to the thread that you are using the mod for. Meaning if I am in one thread, and I click say "twitter" I noticed it only posts my forums name and a link to the website, but didn't mention nothing about the thread.
Reply With Quote
  #23  
Old 02-20-2010, 09:53 PM
TrailRecon's Avatar
TrailRecon TrailRecon is offline
 
Join Date: Nov 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GeorgeB85 View Post
Is there a way it could link to the thread that you are using the mod for. Meaning if I am in one thread, and I click say "twitter" I noticed it only posts my forums name and a link to the website, but didn't mention nothing about the thread.
where did you put the button? In the location in the instructions it will paste in the name of the thread. If it is in a different location it may not
Reply With Quote
  #24  
Old 02-20-2010, 10:22 PM
GeorgeB85 GeorgeB85 is offline
 
Join Date: Nov 2008
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TrailRecon View Post
where did you put the button? In the location in the instructions it will paste in the name of the thread. If it is in a different location it may not
I found the issue. I was using a custom code from the site that uses the mod. I used your mod, and now it works.
Reply With Quote
  #25  
Old 02-21-2010, 11:34 AM
is_it_me is_it_me is offline
 
Join Date: Mar 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Brillant - so easy to install on my vb4.02 test site.

Tested it to twitter & facebook with a thread headed 'Please ignore - test only' and not only did it work, but needless to say dozens of people clicked on the link - lol.

Thanks very much for this.
Reply With Quote
  #26  
Old 02-22-2010, 11:41 AM
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
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
Thanks for this!
Installed and it looks great!

Question:
Where do I turn on the bookmarks in vB?
I searched, yet can't find it.

Thanks for the work! Much appreciated
Reply With Quote
  #27  
Old 02-22-2010, 07:18 PM
TrailRecon's Avatar
TrailRecon TrailRecon is offline
 
Join Date: Nov 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
Reply With Quote
  #28  
Old 02-23-2010, 08:06 AM
is_it_me is_it_me is offline
 
Join Date: Mar 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #29  
Old 02-24-2010, 03:17 PM
cloferba cloferba is offline
 
Join Date: Apr 2009
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i customize language?

instead of show Share/Save i want to show "SHARE THIS POST"

Instructions to translate this button are the next:
Quote:
var a2a_config = a2a_config || {};
// de
// German / Deutsch
a2a_config.localize = {
Share: "Teilen",
Save: "Sichern",
Subscribe: "Abonnieren",
Email: "E-Mail",
Bookmark: "Lesezeichen",
ShowAll: "Alle anzeigen",
ShowLess: "Weniger anzeigen",
FindServices: "Finde Dienste",
FindAnyServiceToAddTo: "Finde deinen Bookmarkdienst",
PoweredBy: "Unterst?tzt von",
ShareViaEmail: "Teile via E-Mail",
SubscribeViaEmail: "Abonniere via E-Mail",
BookmarkInYourBrowser: "Lesezeichen im Browser setzen",
BookmarkInstructions: "Benutze die Tasten Ctrl+D oder Cmd+D um die Seite zu speichern",
AddToYourFavorites: "Als Favorit setzen",
SendFromWebOrProgram: "Sende die Seite von der Website oder einem Programm aus",
EmailProgram: "E-Mail-Programm"
};
but i dont know where i must add this code! :S

on faq its not explained...

somebody can help me?
Reply With Quote
  #30  
Old 02-24-2010, 05:44 PM
TrailRecon's Avatar
TrailRecon TrailRecon is offline
 
Join Date: Nov 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what language do you want?
Reply With Quote
  #31  
Old 02-24-2010, 06:10 PM
TrailRecon's Avatar
TrailRecon TrailRecon is offline
 
Join Date: Nov 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I appologize, I can not wait any longer for a response...I will be back later.

I think this will give you the idea about how to manually do the language

Code:
<a class="a2a_dd" href="http://www.addtoany.com/share_save">
    <img src="http://static.addtoany.com/buttons/share_save_171_16.png" border="0" alt="Share"/>
</a>

<script type="text/javascript">
a2a_config = {
   
    num_services: 10,
    show_title: 1
};

// de
// German / Deutsch
a2a_config.localize = {
   Share: "Teilen",
   Save: "Sichern",
   Subscribe: "Abonnieren",
   Email: "E-Mail",
   Bookmark: "Lesezeichen",
   ShowAll: "Alle anzeigen",
   ShowLess: "Weniger anzeigen",
   FindServices: "Finde Dienste",
   FindAnyServiceToAddTo: "Finde deinen Bookmarkdienst",
   PoweredBy: "Unterst?tzt von",
   ShareViaEmail: "Teile via E-Mail",
   SubscribeViaEmail: "Abonniere via E-Mail",
   BookmarkInYourBrowser: "Lesezeichen im Browser setzen",
   BookmarkInstructions: "Benutze die Tasten Ctrl+D oder Cmd+D um die Seite zu speichern",
   AddToYourFavorites: "Als Favorit setzen",
   SendFromWebOrProgram: "Sende die Seite von der Website oder einem Programm aus",
   EmailProgram: "E-Mail-Programm"
};

</script>

<script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

However, there is a MUCH simpler way to change the language, Go to the customize button here:
http://www.addtoany.com/buttons/

You will see a selection for "more options" After clicking that you can choose your language and will not need to fill it out manually.

I have not had a chance to look into changing the text on the button. I do not know that it is possible...but feel free to look. You will l need to read through their FAQ and maybe search the web. you prolly have to host their js or API files locally to do that but you may first want to look into their TOS before doing so.
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 01:04 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.06952 seconds
  • Memory Usage 2,343KB
  • 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
  • (4)bbcode_code
  • (4)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