Print and Email button not visible in K2 items

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
Mon Jan 19, 2015 12:59 pm
Reply with quote
Report this post
Hi,
Long time haven't seen :D, happy holidays.

I have problem, when I disable Facebook and Twitter buttons the Email and Print buttons disappear also. If I enable one of the social media the print/email are showing again.

I had similar issue and you helped me so here it is again :D

Thanks,
Gorast
User avatar
Platinum Boarder

teitbite
Tue Jan 20, 2015 11:45 am
Reply with quote
Report this post
Hi

Please remind me Your site url, or better tell me the exact url to example of this problem. Have You send me an ftp access to Your site already ? I will need it to fix it.
User avatar
Moderator

GK User
Tue Jan 20, 2015 3:09 pm
Reply with quote
Report this post
Hi teitbite,

I forgot the link in my clipboard :D
Here it is: http://www.gorast.com/eusnov/mk/krediti ... it-instant

I know its a string in item.php that should show the buttons but I cannot remember.

Do you want me to send you the FTP credentials?

Thanks,
Gorast
User avatar
Platinum Boarder

teitbite
Thu Jan 22, 2015 5:37 pm
Reply with quote
Report this post
Hi

Yes, please send me an access to ftp. Looks like the one I had is not working anymore.
User avatar
Moderator

teitbite
Sat Jan 24, 2015 4:57 pm
Reply with quote
Report this post
Hi

Have You fixed it? I can see Print an Email buttons there. In code there is also a condition including this attributes:

Code: Select all
if(
   $params->get('itemFontResizer') ||
   $params->get('itemPrintButton') ||
   $params->get('itemEmailButton') ||
   $params->get('itemSocialButton') ||
   $params->get('itemVideoAnchor') ||
   $params->get('itemImageGalleryAnchor') ||
   $params->get('itemHits') ||
   $params->get('itemRating') ||
   $params->get('itemTwitterButton', 1) ||
   $params->get('itemFacebookButton', 1) ||
   $params->get('itemGooglePlusOneButton', 1)
) {
   $aside_exists = true;
}
User avatar
Moderator

GK User
Sat Jan 24, 2015 8:21 pm
Reply with quote
Report this post
Hi,
if you disable the Twitter button they are all gone.

Thanks,
Gorast
User avatar
Platinum Boarder

teitbite
Mon Jan 26, 2015 9:43 pm
Reply with quote
Report this post
Hi

Och, I issed that. Icons were copier one </div> closing tag too early. I moved this code:

Code: Select all
<!-- Print i email kopche -->
                        <?php if($params->get('itemPrintButton') && !JRequest::getInt('print')): ?>
                        <li class="itemPrint"><a rel="nofollow" href="<?php echo $this->item->printLink; ?>" onclick="window.open(this.href,'printWindow','width=900,height=600,location=no,menubar=no,resizable=yes,scrollbars=yes'); return false;"><?php echo JText::_('K2_PRINT'); ?></a></li>
                        <?php endif; ?>
                        <?php if($params->get('itemEmailButton') && !JRequest::getInt('print')): ?>
                        <li class="itemEmail"><a rel="nofollow" href="<?php echo $this->item->emailLink; ?>" onclick="window.open(this.href,'emailWindow','width=400,height=350,location=no,menubar=no,resizable=no,scrollbars=no'); return false;"><?php echo JText::_('K2_EMAIL'); ?></a></li>
                        <?php endif; ?>


a little bit lower.
User avatar
Moderator

GK User
Tue Jan 27, 2015 3:42 pm
Reply with quote
Report this post
Thanks :D
User avatar
Platinum Boarder


cron