Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications

Reply
 
Thread Tools
Addthis Bookmark Integration Details »»
Addthis Bookmark Integration
Version: 1.00, by F0xy F0xy is offline
Developer Last Online: Oct 2017 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.x Rating:
Released: 08-03-2008 Last Update: 08-03-2008 Installs: 110
Template Edits
Re-useable Code Translations  
No support by the author.

Loved the addition of bookmarks in vbulletin but hated the way they were placed at the bottom of the thread, each time I read a thread I immediately found myself scrolling to the top again. I tried moving the bookmarks to the top but didn't like the way they looked.

I came across http://www.addthis.com which allows you to add a handy piece of code to your website that allows you to bookmark a thread to any of the large bookmark sites, 34 different site's in total with out any mess or cluttering up the postbit area with tons of images. Plus addthis.com track all clicks and pages that have been submitted from your site.

AddThis is already on hundreds of thousands of websites including TIME Magazine, Oracle, TechCrunch, Freewebs, Entertainment Weekly, Topix, Lonely Planet, MySpace, PGA Tour, Tower Records, Squidoo, Zappos, FOX, ABC, CBS just to name a few and could be on your vbulletin forum within minutes!!

Demo click here then a thread to view demo


Quick and easy installation:
register an account at http://www.addthis.com and log in, once logged in click Get your button code! and scroll down to and choose from a number of different buttons and get your code.

in SHOWTHREAD
find:
HTML Code:
<td class="vbmenu_control" id="threadtools" nowrap="nowrap">
above add:

HTML Code:
<!-- AddThis Button BEGIN -->
<td class="vbmenu_control" id="addthis" nowrap="nowrap">
ADD THE ADDTHIS CODE HERE
</td>
<!-- AddThis Button END -->
done!

Make this the simplest MOTM Ever

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 12-21-2009, 05:29 PM
balkanboy balkanboy is offline
 
Join Date: Dec 2008
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by F0xy View Post
I haven't upgraded to vb4 yet. I will when it goes gold and update this add-on.
Thanks looking forward to it
Reply With Quote
  #53  
Old 03-31-2010, 06:33 AM
muratcan25's Avatar
muratcan25 muratcan25 is offline
 
Join Date: May 2009
Location: Turkey
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #54  
Old 05-15-2010, 02:50 AM
xash xash is offline
 
Join Date: Dec 2009
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I took your instructions and tweaked the AddThis code to make the button blend in with the default vBulletin 3.7.x template, so it looks like an inbuilt feature. I've also added AddThis trackback code to track click analytics for links shared through the AddThis button, and I've set the mouseover pop-up delay to 350ms so that it doesn't annoy users by accidentally popping up the menu on hover.

Here's what it looks like on my forum (see the Share button, note how it looks like an inbuilt vBulletin button). It aligns perfectly in Opera, Chrome and Firefox:



And here's the code I used:

(make sure to substitute YOURADDTHISUSERNAME and YOURBOARDURL in the code below)

PHP Code:
<!-- AddThis Button BEGIN -->
<
td class="vbmenu_control" id="addthis" nowrap="nowrap">
<
div class="addthis_toolbox addthis_default_style">
<
a href="http://www.addthis.com/bookmark.php?v=250&amp;username=YOURADDTHISUSERNAME" style="text-decoration:none;" class="addthis_button">Share <img src="http://YOURBOARDURL/images/misc/menu_open.gif" BORDER=/></a>
</
div>
<
script type="text/javascript">
var 
addthis_config = {
    
data_track_clickbacktrue,
ui_delay350
}
</
script>
<
script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=YOURADDTHISUSERNAME">
</
script>
</
td>
<!-- 
AddThis Button END --> 
Reply With Quote
  #55  
Old 11-11-2010, 01:33 AM
firattetik firattetik is offline
 
Join Date: Jul 2010
Location: T?rkiye/İzmir
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice thanks
Reply With Quote
  #56  
Old 01-16-2011, 06:36 PM
nbaphenom nbaphenom is offline
 
Join Date: May 2007
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Having issues in 3.8.4 with people using firefox

http://img338.imageshack.us/img338/5049/ugly2.png

I use Google Chrome and dont have that issue. Anyone know a fix?
Reply With Quote
  #57  
Old 02-08-2011, 03:39 PM
PEPITO69 PEPITO69 is offline
 
Join Date: Mar 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yesterday i found the same problem. I had to write quite "____" above, to have enough width in <td> but the result is ugly and doesn't fit in iphone. I try width with % and absolute numbers but didn't work.

http://img823.imageshack.us/img823/1038/assft.gif
Reply With Quote
  #58  
Old 02-09-2011, 08:52 PM
PEPITO69 PEPITO69 is offline
 
Join Date: Mar 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is my solution:

PHP Code:
<td class="vbmenu_control" id="addthis" nowrap="nowrap">

<!-- 
AddThis Button BEGIN -->
  

<
div class="addthis_toolbox addthis_default_style" style="width:315px;">
<
class="addthis_button_facebook_like" fb:like:width="100":layout="button_count"></a>
<
class="addthis_button_tweet"></a>
<
class="addthis_counter addthis_pill_style"></a>
</
div>

  <
script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
  <
script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xxxxxxxxxxxx"></script>


<!-- 
AddThis Button END -->


</
td
Reply With Quote
  #59  
Old 02-12-2011, 05:54 AM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a couple of problems:

First the standard code to include in the showthread template is messed up in firefox. The buttons break to three lines. How can I fix that?

Second, how can I code this to show up on the vbadvanced homepage for threads in my news block?

Here is a link to the site: www.maczuki.com
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 03:45 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.04477 seconds
  • Memory Usage 2,296KB
  • Queries Executed 23 (?)
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_html
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete