vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Show Thread Enhancements - Addthis Bookmark Integration (https://vborg.vbsupport.ru/showthread.php?t=187190)

balkanboy 12-21-2009 05:29 PM

Quote:

Originally Posted by F0xy (Post 1934475)
I haven't upgraded to vb4 yet. I will when it goes gold and update this add-on.

Thanks looking forward to it

muratcan25 03-31-2010 06:33 AM

Thank you

xash 05-15-2010 02:50 AM

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:

https://vborg.vbsupport.ru/external/2010/05/38.png

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


firattetik 11-11-2010 01:33 AM

nice thanks

nbaphenom 01-16-2011 06:36 PM

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?

PEPITO69 02-08-2011 03:39 PM

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

PEPITO69 02-09-2011 08:52 PM

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


yotsume 02-12-2011 05:54 AM

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


All times are GMT. The time now is 01:42 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01205 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete