AddThis

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Sep 17, 2014 5:44 pm
Reply with quote
Report this post
Hi,
I use AddThis, but I can not find how to enter the code in the template.
I've tried in the parameters K2 -> Social but nothing is displayed.
Can you help me?
Best Regards.
Gioacchino
User avatar
Expert Boarder

teitbite
Thu Sep 18, 2014 9:09 am
Reply with quote
Report this post
Hi

It depends where You want this buttons to show. Can You please tell me ? If it's for articles only than add it into: /html/com_k2/templates/default/item.php
User avatar
Moderator

GK User
Thu Sep 18, 2014 9:33 am
Reply with quote
Report this post
teitbite wrote:Hi

It depends where You want this buttons to show. Can You please tell me ? If it's for articles only than add it into: /html/com_k2/templates/default/item.php

Hi,
This is the code that generates the AddThis Sharing Sidebar and Follow Header.
In addition to the articles wanted display it also in the home page.
Best Regards.
Gioacchino
User avatar
Expert Boarder

teitbite
Fri Sep 19, 2014 10:20 am
Reply with quote
Report this post
Hi

In such case use file: /html/com_k2/templates/default/item.php and add it right under the code:

Code: Select all
                    <?php if(!empty($this->item->fulltext)): ?>
                    <?php if($params->get('itemIntroText')): ?>
                    <div class="itemIntroText"> <?php echo $this->item->introtext; ?> </div>
                    <?php endif; ?>
                    <?php endif; ?>
                    <?php if($params->get('itemFullText')): ?>
                    <div class="itemFullText"> <?php echo (!empty($this->item->fulltext)) ? $this->item->fulltext : $this->item->introtext; ?> </div>
                    <?php endif; ?>



for homepage, just select it to display a K2 article, so asme file will handle it than :)
User avatar
Moderator

GK User
Fri Sep 19, 2014 3:24 pm
Reply with quote
Report this post
teitbite wrote:Hi

In such case use file: /html/com_k2/templates/default/item.php and add it right under the code:

Code: Select all
                    <?php if(!empty($this->item->fulltext)): ?>
                    <?php if($params->get('itemIntroText')): ?>
                    <div class="itemIntroText"> <?php echo $this->item->introtext; ?> </div>
                    <?php endif; ?>
                    <?php endif; ?>
                    <?php if($params->get('itemFullText')): ?>
                    <div class="itemFullText"> <?php echo (!empty($this->item->fulltext)) ? $this->item->fulltext : $this->item->introtext; ?> </div>
                    <?php endif; ?>



for homepage, just select it to display a K2 article, so asme file will handle it than :)

Hi,
Hi,
thanks teitbite, is not exactly what I wanted.
I solved it with the plugin joomla sourcer.
Thanks anyway for your interest.
Best Regards
Gioacchino
User avatar
Expert Boarder

teitbite
Sat Sep 20, 2014 1:55 pm
Reply with quote
Report this post
Hi

Ok. I thought it's what You have asked. Sorry I have not understood.
User avatar
Moderator

GK User
Sun Sep 21, 2014 12:31 am
Reply with quote
Report this post
Hello,
This was a problem for me too until I saw that addthis.com as a free Joomla plugin that makes it easy (be sure to clear the browser cashe though)
http://support.addthis.com/customer/portal/articles/381232-addthis-for-joomla-
Hopes this helps
Kind regards
Drew
User avatar
Gold Boarder

teitbite
Sun Sep 21, 2014 10:18 am
Reply with quote
Report this post
Hi

Hahaha. That was a good one :) Thank You. This is something I will use as well... a lot :D
User avatar
Moderator

GK User
Mon Sep 22, 2014 9:56 am
Reply with quote
Report this post
drdrew wrote:Hello,
This was a problem for me too until I saw that addthis.com as a free Joomla plugin that makes it easy (be sure to clear the browser cashe though)
http://support.addthis.com/customer/portal/articles/381232-addthis-for-joomla-
Hopes this helps
Kind regards
Drew

Hi,
very interesting, but not convincing.
See attach.
Senza-titolo-1.jpg

Best Regards
Gioacchino
User avatar
Expert Boarder

teitbite
Mon Sep 22, 2014 12:40 pm
Reply with quote
Report this post
Hi

Try add it onto the code as I've explained than. This way You will have a full control of where this will be displayed. A layout You still have to set in AddThis page as I'm not mistaken.
User avatar
Moderator

GK User
Mon Sep 22, 2014 5:05 pm
Reply with quote
Report this post
teitbite wrote:Hi

Try add it onto the code as I've explained than. This way You will have a full control of where this will be displayed. A layout You still have to set in AddThis page as I'm not mistaken.

Hi,
for the moment the best solution that meets my goals is the custom html module.
Best Regards.
Gioacchino
User avatar
Expert Boarder


cron