PDA

View Full Version : ShareThis Bookmarking


jim6763nva
23 May 2008, 18:10
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 (http://sharethis.com/poweredby)

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 minuteScreenshots:
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 (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=168819)!

jim6763nva
23 May 2008, 18:14
** Reserved **

Jase2
23 May 2008, 19:48
Cool -- personally, I just use Add This (http://www.addthis.com/)

intensecool
23 May 2008, 20:03
Where to place the Code

jim6763nva
24 May 2008, 00:01
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:



 
<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:


<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

jim6763nva
24 May 2008, 00:05
Cool -- personally, I just use Add This (http://www.addthis.com/)

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.

Jase2
24 May 2008, 11:13
I don't think so. Just adds the javascript dropdown button -- could be easily done though, I guess.

tidefans
01 Dec 2008, 20:25
Just found a hack that implements this here: http://www.vbulletin.org/forum/showthread.php?t=189779&highlight=sharethis.com

Brandon Sheley
01 Dec 2008, 20:27
I just use the built in social networking icons, but this is nice too :)
thanks for sharing! :D

hyperviperx99
19 May 2011, 10:25
Which template do you put the codes on?