-
AuthorPosts
-
luke66 Friend
luke66
- Join date:
- June 2011
- Posts:
- 15
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 2
- Thanked:
- 2 times in 1 posts
October 9, 2011 at 2:28 pm #169488I am unable to use my AddThis or ShareThis account on the Social Sharing button. See image below.
I have pasted my ShareThis code like in the figure, but it still does not work. See image below.
This problem remained unanswered in this thread. Can someone help, please?
-
khoand Friend
khoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
October 9, 2011 at 3:57 pm #417979Hi,
You replace Share this website module with custom HTML
<div class="share clearfix"><a class="share twitter" href="#" target="_blank" title="Twitter this"> </a> <a class="share facebook" href="#" target="_blank" title="Add to Facebook"> </a> <a class="share flick" href="#" target="_blank" title="Add to Flick"> </a> <a class="share social" href="#" target="_blank" title="Add to Social"> </a> <a class="share youtube" href="#" target="_blank" title="Add to Reddit"> </a> <a class="website" href="#" target="_blank" title="Add to Reddit"><span class="website">Share this website</span></a></div>
with
<div class="share clearfix"><a class="share twitter" href="#" target="_blank" title="Twitter this"> </a> <a class="share facebook" href="#" target="_blank" title="Add to Facebook"> </a> <a class="share flick" href="#" target="_blank" title="Add to Flick"> </a> <a class="share social" href="#" target="_blank" title="Add to Social"> </a> <a class="share youtube" href="#" target="_blank" title="Add to Reddit"> </a> <a class="website" href="javascript::stLight.options(....);" target="_blank" title="Add to Reddit"><span class="website">Share this website</span></a></div>
And you create /templates/ja_travel/blocks/head.php with content is
<?php
/**
* ------------------------------------------------------------------------
* JA T3 System plugin for Joomla 1.7
* ------------------------------------------------------------------------
* Copyright (C) 2004-2011 JoomlArt.com. All Rights Reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
* Author: JoomlArt.com
* Websites: http://www.joomlart.com - http://www.joomlancers.com.
* ------------------------------------------------------------------------
*/
?>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">
var siteurl='<?php echo JURI::base(true) ?>/';
var tmplurl='<?php echo JURI::base(true)."/templates/".T3_ACTIVE_TEMPLATE ?>/';
var isRTL = <?php echo $this->isRTL()?'true':'false' ?>;
</script><jdoc:include type="head" />
<?php if (T3Common::mobile_device_detect()=='iphone'):?>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1; user-scalable=1;" />
<meta name="apple-touch-fullscreen" content="YES" />
<?php endif;?><?php if (T3Common::mobile_device_detect()):?>
<meta name="HandheldFriendly" content="true" />
<?php endif;?><link href="<?php echo T3Path::getUrl('images/favicon.ico') ?>" rel="shortcut icon" type="image/x-icon" />
<?php JHTML::stylesheet ('', 'templates/system/css/system.css') ?>
<?php JHTML::stylesheet ('', 'templates/system/css/general.css') ?>
hcharly Friendhcharly
- Join date:
- April 2008
- Posts:
- 107
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 14
- Thanked:
- 11 times in 1 posts
February 9, 2012 at 9:59 pm #437754Hello Khoand,
Should this works for Joomla 1.5 also?
I tried without success.
Thanks.
-Charlesluke66 Friendluke66
- Join date:
- June 2011
- Posts:
- 15
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 2
- Thanked:
- 2 times in 1 posts
February 10, 2012 at 1:35 pm #437841Its still not working for me either. I gave up and the link is still inactive.
hcharly Friendhcharly
- Join date:
- April 2008
- Posts:
- 107
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 14
- Thanked:
- 11 times in 1 posts
February 11, 2012 at 11:20 am #437909Hello All,
I found out a way to implement this in Joomla 1.5.
Here is how to make the ShareThis work:1- Open and edit plugins/system/jat3/base-themes/default/blocks/head.php
After [PHP]JHTML::stylesheet (”, ‘templates/system/css/general.css’)[/PHP]
Add this code<script type="text/javascript">var switchTo5x=true;</script><script src="http://w.sharethis.com/button/buttons.js" type="text/javascript"></script><script type="text/javascript">stLight.options({publisher:''});</script>
2- Open templates/ja_travel/css/template.css
Finda.website
and replace it witha.website, span.website
3- Now open the custom HTML module which contains the “Share this Website” hmtl code. Replace the code there with the one below changing the service name according to your need.
You may need to set editor to “No editor” for your Joomla user account in order to save this code!<div class=”share clearfix”>
<span class=”st_facebook_large” displayText=”Facebook”></span>
<span class=”st_twitter_large” displayText=”Tweet”></span>
<span class=”st_google_large” displayText=”Google”></span>
<span class=”st_yahoo_large” displayText=”Yahoo”></span>
<span class=”st_sharethis_custom website”>Share this website</span>
</div>Since I am using large icons the span classes are “st_xxxxxxx_large”.
With a class like “st_facebook”, “st_tweet” or “st_digg” you’ll get smaller icons.
More about available services and customization here:
http://help.sharethis.com/customization/chickletsThat’s all.
It works for me. Hope for you too.
-Charles -
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)This topic contains 5 replies, has 3 voices, and was last updated by hcharly 12 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum