vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - AddThis - Facebook Like, Tweet and Share buttons (https://vborg.vbsupport.ru/showthread.php?t=259176)

joomla 02-19-2011 10:00 PM

AddThis - Facebook Like, Tweet and Share buttons
 
1 Attachment(s)
Make sharing easy with the most popular sharing platform in the world.
http://www.addthis.com


Tested On: Firefox, Chrome and IE8-9


http://img573.imageshack.us/img573/7703/jtraddthis.jpg


How To Install


Open Template (SHOWTHREAD)

Search For

Code:

<div id="pagetitle" class="pagetitle">
Add Below It

Code:

<vb:if condition="THIS_SCRIPT == 'showthread'">
<div style="float: right; padding: 0px 0px 0px 0px;">
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4fc7b85501ab7a01"></script>
<!-- AddThis Button END -->
</div>
</vb:if>

Update:
Facebook, tweet google plus and more options https://www.addthis.com/get

OldSchoolDSL 02-20-2011 09:14 PM

IMPORTANT: When applying the above modification, please remember to change your user name in the code YOUR user name and not use the authors.

PHP Code:

#username=YOUR USER NAME" 


Randomm 02-20-2011 09:15 PM

haha thanks OldSchool for the head up

tagged

BlueCheri 02-20-2011 10:11 PM

Sorry may be dumb question, do I need to have 'Add This' username?

Thanx in advance

Quote:

Originally Posted by OldSchoolDSL (Post 2164724)
IMPORTANT: When applying the above modification, please remember to change your user name in the code YOUR user name and not use the authors.

PHP Code:

#username=YOUR USER NAME" 



OldSchoolDSL 02-20-2011 10:45 PM

Quote:

Originally Posted by BlueCheri (Post 2164735)
Sorry may be dumb question, do I need to have 'Add This' username?

Thanx in advance

It is advised. This will allow you to track user statistics for FREE using AddThis.com

You can visit AddThis.com to format the code however, without it.

AURFSCAN 02-20-2011 11:19 PM

1 Attachment(s)
thanks joomla , I have had this before but this is a good spot for it.

just go to addthis.com , sign up get your own button code and replace the red code
with your own you get from addthis.com

Code:

<vb:if condition="THIS_SCRIPT == 'showthread'">
<div style="float: right; padding: 0px 0px 0px 0px;">
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4d61862450ce0855"></script>
<!-- AddThis Button END -->

</div>
</vb:if>



also you dont need to use their image you can use your own

I made mine to suit my colors and style

:)

3amalah 02-21-2011 12:36 AM

Thanks But I Need To Know Why Every Time I Refresh The Page Counter Return To Zero ?

Brandon Sheley 02-21-2011 12:53 AM

I didn't know you could track stats with addthis
I've used sharethis (http://sharethis.com/) to do the same but I didn't like the load time.
I'll try it with the addthis code to see how bad it is

thx

thr45h3r 02-21-2011 01:09 AM

Thanks marked installed

BlueCheri 02-21-2011 02:54 AM

Ok, thanx for help and advice.

Yes I also face the counter (twitter) problem :(

Quote:

Originally Posted by OldSchoolDSL (Post 2164755)
It is advised. This will allow you to track user statistics for FREE using AddThis.com

You can visit AddThis.com to format the code however, without it.



All times are GMT. The time now is 12:18 AM.

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.01338 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)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
  • (10)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