Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles
ShareThis Bookmarking
jim6763nva's Avatar
jim6763nva
Join Date: Oct 2005
Posts: 204

 

Virginia
Show Printable Version Email this Page Subscription
jim6763nva jim6763nva is offline 05-22-2008, 10:00 PM


ShareThis Bookmarking

Don't want to add the normal block of bookmarking links to your forum? This is a small piece of javascript code that can be placed in your template. It will add a ShareThis link your forum. For example, I added it to my Postbit_legacy template. When clicked, it will popup a window that will allow you to submit a thread to bookmarking sites, blogs as well as send an email to friends with a link to the thread and a thumbnail preview of your site. To add this code, go http://www.sharethis.com/getbutton and register as a publisher, then grab this javascript code for the type of site you want to place it on. They also have plugins for Wordpress, Blogger, and Typepad.

More info on what it does: About ShareThis

Other features include:
Automatically updates with new features
Improved email and other message sending
Tracking and Reporting

Get the Code: http://www.sharethis.com/getbutton

Installation information on hack:
  • Files edited: 0
  • Templates edited: 1
  • Files to upload: 0
  • Time to install: 1 minute
Screenshots:
See Attachments.

Please post your comments for this hack. I read ALL posts.
Since this is my first addon/template mod please let me know if there is any information I should have included in this.


MAKE SURE YOU CLICK INSTALL!

Attached Images
File Type: gif sharethisbookmarks.gif (13.4 KB, 0 views)
File Type: gif sharethisblog.gif (10.4 KB, 0 views)
File Type: gif sharethiscontacts.gif (9.9 KB, 0 views)
File Type: gif sharethispreview.gif (15.7 KB, 0 views)
Reply With Quote
  #2  
Old 05-23-2008, 04:14 PM
jim6763nva's Avatar
jim6763nva jim6763nva is offline
 
Join Date: Oct 2005
Location: Virginia
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

** Reserved **
Reply With Quote
  #3  
Old 05-23-2008, 05:48 PM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool -- personally, I just use Add This
Reply With Quote
  #4  
Old 05-23-2008, 06:03 PM
intensecool intensecool is offline
 
Join Date: Feb 2007
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where to place the Code
Reply With Quote
  #5  
Old 05-23-2008, 10:01 PM
jim6763nva's Avatar
jim6763nva jim6763nva is offline
 
Join Date: Oct 2005
Location: Virginia
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by intensecool View Post
Where to place the Code
You might be able to put it in your SHOWTHREAD template, but if you want to put it in your Postbit_legacy template, like I did. Look for the following code:

Code:
 
    
   <if condition="$show['postcount']">#
Just above that, add the code you get from the ShareThis website, and it will appear on the row, and just before each post count.

If you don't want to show the regular bookmark links, you could comment out that code, and add in the ShareThis code between the bookmarking conditionals, like this:

SHOWTHREAD - Look for:
Code:
 
<if condition="$bookmarksites">
Add the ShareThis code right below that. Please keep in mind though, I haven't tested this part yet.

If you are placing the code in Wordpress or some other place, I would not be able to help you there. You would need to check the documentation or with someone that is more familar with adding those widgets.

Hopefully this will give you a starting point.

Jim
Reply With Quote
  #6  
Old 05-23-2008, 10:05 PM
jim6763nva's Avatar
jim6763nva jim6763nva is offline
 
Join Date: Oct 2005
Location: Virginia
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jase2 View Post
Cool -- personally, I just use Add This
Hey Jase, AddThis is pretty cool! Thanks for pointing that out. If I had found that before posting this, I probably would have added it to my site. LOL I just took a quick look at it. Does AddThis put a thumbnail of the website into the email also? I thought that was a pretty cool feature of ShareThis.
Reply With Quote
  #7  
Old 05-24-2008, 09:13 AM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think so. Just adds the javascript dropdown button -- could be easily done though, I guess.
Reply With Quote
  #8  
Old 12-01-2008, 06:25 PM
tidefans tidefans is offline
 
Join Date: Jul 2004
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just found a hack that implements this here: https://vborg.vbsupport.ru/showthrea...=sharethis.com
Reply With Quote
  #9  
Old 12-01-2008, 06:27 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just use the built in social networking icons, but this is nice too
thanks for sharing!
Reply With Quote
  #10  
Old 05-19-2011, 08:25 AM
hyperviperx99's Avatar
hyperviperx99 hyperviperx99 is offline
 
Join Date: Feb 2011
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Which template do you put the codes on?
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:51 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.06190 seconds
  • Memory Usage 2,306KB
  • 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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete