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)

drsli 04-17-2009 02:32 PM

Works perfectly with 3.82 too. Many thanks! :)

obmob 04-18-2009 03:07 PM

I just realized that addthis popups an invisible flash movie coming from clearspring.com, it seems to be tracking what you do.

Read a couple of warnings while googling, any thought from you guys?
You might find clearspring, addthis and statcounter cookies.

karnevil 04-22-2009 01:07 AM

Nice Mod, thanks.

Installed on vB 3.7.0 and placed into each post made on the forum next to the yin yang rep button See screenshot below.

In Postbit Templates>>postbit

Find
Code:

<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> &nbsp;
Immediately after insert your Addthis code

before

Code:

</if>
                        <if condition="$show['reputationlink']">
                                <span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>

Marked as installed and tipped MOTM.

Thanks F0xy

goldenchild79 06-18-2009 09:28 PM

the twitter button doesn't work right. when i click on the twitter button, it takes me to twitter and there is only a shorten url and @addthis. it doesn't have the title of the thread. anyway i can fix that? thanks.

GSeybold 06-29-2009 02:43 AM

good stuff.. nice forum by the way:)

Fuzzy Logic 07-06-2009 09:05 PM

Works great, thanks, but in your image the button is centered vertically within the box, mine is a little high (the bottom of the button is level with the text in the next box) - anyone know how I can move it down a few pixels or centre it vertically?

Many thanks!

mrt12345 07-08-2009 02:56 PM

Thanks that was great

Kingdombuilder 10-26-2009 05:20 AM

Wow, Thank you and great mod. i have it installed and all is well.

balkanboy 12-21-2009 09:05 AM

this works with vb4?

Edit: Dang doesnt seem to have same code any chance someone can do a quick one for vb4

F0xy 12-21-2009 09:20 AM

Quote:

Originally Posted by balkanboy (Post 1934472)
this works with vb4?

Edit: Dang doesnt seem to have same code any chance someone can do a quick one for vb4

I haven't upgraded to vb4 yet. I will when it goes gold and update this add-on.

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 12:53 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.01229 seconds
  • Memory Usage 1,773KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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