print icon esport won't show

GK User
Mon Feb 24, 2014 5:58 pm
hi,
the print and mail icones don't show on site only text , i cheked your docs + image files every thing seems ok from my side .
so what can i do to make them SHOW ?
Imprimer + Email i need to show icones ?
http://www. nightbag. fr/nightbag-junior.html

regards
User avatar
Fresh Boarder

GK User
Tue Feb 25, 2014 10:15 am
Hi,
sorry I have two bad news for you:

1) First we override default view of K2 items - so there are only labels, so you need small customization job
but in normal Joomla articles icons are visible/available .
2) Your site code is infected by 'trojan" said my Avast, he is never wrong. :evil:
User avatar
Platinum Boarder

GK User
Tue Feb 25, 2014 10:25 am
Icons TIP
In this file: templates/gk_esport\html\com_k2\templates\default\item.php

Find:
<span><?php echo JText::_('K2_PRINT'); ?></span>
Replace with:
Code: Select all
<img alt="Print" src="/templates/gk_esport/images/system/printButton.png">


Find:
<span><?php echo JText::_('K2_EMAIL'); ?></span>
Replace with:
Code: Select all
<img alt="Email" src="/templates/gk_esport/images/system/emailButton.png">
User avatar
Platinum Boarder

GK User
Tue Feb 25, 2014 10:46 am
Thank for answer & help ,

1- i try modification as you said in this file: templates/gk_esport\html\com_k2\templates\default\item.php .
nothing seems to change ?

2- for the Virus i cheked many time cause the site owner keep reporting this , i alredy scanned it and my bitdefender and Host and in line scanner see nothing if yo uhave any info to solve it , it will be welcome :roll:

scan report report only 2 anti virus don't like the site

Regards
User avatar
Fresh Boarder

GK User
Tue Feb 25, 2014 11:05 am
User avatar
Fresh Boarder

GK User
Tue Feb 25, 2014 2:18 pm
Ok,
Check if you have those icons on this location
if yes , maybe add ful URL for them with http:// at the beginning - this should help.

...and remember to clean CMS and browser cache!!
User avatar
Platinum Boarder

GK User
Tue Feb 25, 2014 2:35 pm
Not working with http//…
I tested on 3 navigators before contacting you and sure I cleaned the cache :shock:

Just for information unfortunately it’s not me who made this SITE :blink: , but I made all update off the theme & cleaning and more …

Actually K2 , I don’t see any component In the back office in case it affect the behavior of the theme

http://www.nightbag.fr/templates/gk_esp ... Button.png
User avatar
Fresh Boarder

GK User
Tue Feb 25, 2014 3:17 pm
Hmmm,
My change should be seen only on K2 item view.
What would be if you rename this file : templates/gk_esport\html\com_k2\templates\default\item.php

any change of appearance of k2 item view ??
should be default from K2.
User avatar
Platinum Boarder

GK User
Tue Feb 25, 2014 3:25 pm
I checked my idea - solution on my page, and with full URL it works...
so probably you made something wrong..

Code: Select all
<img alt="Print" src="http://www.nightbag.fr/templates/gk_esport/images/system/printButton.png">
User avatar
Platinum Boarder

GK User
Tue Feb 25, 2014 3:41 pm
i eaxcly did what you said, so noraml it work on your local site , but it's not working on our site !!!

<?php

/**
* @package K2
* @author GavickPro http://gavick.com
*/

// no direct access
defined('_JEXEC') or die;

?>
<?php if(JRequest::getInt('print')==1): ?>

<a class="itemPrintThisPage" rel="nofollow" href="#" onclick="window.print();return false;">
<span><?php echo JText::_('K2_PRINT_THIS_PAGE'); ?></span>
</a>
<?php endif; ?>
<span id="startOfPageId<?php echo JRequest::getInt('id'); ?>"></span>
<div id="k2Container" class="itemView<?php echo ($this->item->featured) ? ' itemIsFeatured' : ''; ?><?php if($this->item->params->get('pageclass_sfx')) echo ' '.$this->item->params->get('pageclass_sfx'); ?>">
<?php echo $this->item->event->BeforeDisplay; ?>
<?php echo $this->item->event->K2BeforeDisplay; ?>
<?php if(isset($this->item->editLink)): ?>
<span class="itemEditLink">
<a class="modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->item->editLink; ?>">
<?php echo JText::_('K2_EDIT_ITEM'); ?></a>
</span>
<?php endif; ?>
<?php if($this->item->params->get('itemDateCreated')): ?>
<div class="gkDate">
<div>
<time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>">
<?php echo JHTML::_('date', $this->item->created , JText::_('d')); ?>
<?php echo JHTML::_('date', $this->item->created , JText::_('M')); ?>
</time>
</div>
</div>
<?php endif; ?>

<div class="itemHeader">
<?php if(
$this->item->params->get('itemFontResizer') ||
$this->item->params->get('itemAuthor') ||
$this->item->params->get('itemPrintButton') ||
$this->item->params->get('itemEmailButton') ||
$this->item->params->get('itemSocialButton') ||
$this->item->params->get('itemVideoAnchor') ||
$this->item->params->get('itemImageGalleryAnchor') ||
$this->item->params->get('itemTitle')
): ?>
<div class="itemToolbar">
<?php if($this->item->params->get('itemTitle')): ?>
<h2 class="itemTitle">
<?php echo $this->item->title; ?>
<?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?>
<span><sup><?php echo JText::_('K2_FEATURED'); ?></sup></span>
<?php endif; ?>
</h2>
<?php endif; ?>
<ul>
<?php if($this->item->params->get('itemAuthor')): ?>
<li>
<span class="itemAuthor">
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>&nbsp;
<?php if(empty($this->item->created_by_alias)): ?>
<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
<?php else: ?>
<?php echo $this->item->author->name; ?>
<?php endif; ?>
</span>
</li>
<?php endif; ?>
<?php if($this->item->params->get('itemFontResizer')): ?>
<li>
<span class="itemTextResizerTitle"><?php echo JText::_('K2_FONT_SIZE'); ?></span>
<a href="#" id="fontDecrease">
<span><?php echo JText::_('K2_DECREASE_FONT_SIZE'); ?></span>
<img src="components/com_k2/images/system/blank.gif" alt="<?php echo JText::_('K2_DECREASE_FONT_SIZE'); ?>" />
</a>
<a href="#" id="fontIncrease">
<span><?php echo JText::_('K2_INCREASE_FONT_SIZE'); ?></span>
<img src="components/com_k2/images/system/blank.gif" alt="<?php echo JText::_('K2_INCREASE_FONT_SIZE'); ?>" />
</a>
</li>
<?php endif; ?>
<?php if($this->item->params->get('itemPrintButton') && !JRequest::getInt('print')): ?>
<li>
<a class="itemPrintLink" 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;">
<img alt="Print" src="http://www.nightbag.fr/templates/gk_esport/images/system/printButton.png">
</a>
</li>
<?php endif; ?>
<?php if($this->item->params->get('itemEmailButton') && !JRequest::getInt('print')): ?>
<li>
<a class="itemEmailLink" 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;">
<img alt="Email" src="http://www.nightbag.fr/templates/gk_esport/images/system/emailButton.png">
</a>
</li>
<?php endif; ?>

<?php if($this->item->params->get('itemCommentsAnchor') && $this->item->params->get('itemComments') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>
<li>
<?php if(!empty($this->item->event->K2CommentsCounter)):?>
<?php echo $this->item->event->K2CommentsCounter; ?>
<?php else:?>
<a class="itemCommentsLink k2Anchor" href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
<?php echo $this->item->numOfComments; ?>
</a>
<?php endif; ?>
</li>
<?php endif; ?>

<?php if($this->item->params->get('itemSocialButton') && !is_null($this->item->params->get('socialButtonCode', NULL))): ?>
<li>
<?php echo $this->item->params->get('socialButtonCode'); ?>
</li>
<?php endif; ?>
<?php if($this->item->params->get('itemVideoAnchor') && !empty($this->item->video)): ?>
<li>
<a class="itemVideoLink k2Anchor" href="<?php echo $this->item->link; ?>#itemVideoAnchor"><?php echo JText::_('K2_MEDIA'); ?></a>
</li>
<?php endif; ?>
<?php if($this->item->params->get('itemImageGalleryAnchor') && !empty($this->item->gallery)): ?>
<li>
<a class="itemImageGalleryLink k2Anchor" href="<?php echo $this->item->link; ?>#itemImageGalleryAnchor"><?php echo JText::_('K2_IMAGE_GALLERY'); ?></a>
</li>
<?php endif; ?>
</ul>
</div>
<?php endif; ?>
</div>
<?php echo $this->item->event->AfterDisplayTitle; ?>
<?php echo $this->item->event->K2AfterDisplayTitle; ?>
<div class="itemBody">
<?php echo $this->item->event->BeforeDisplayContent; ?>
<?php echo $this->item->event->K2BeforeDisplayContent; ?>
<?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?>
<div class="itemImageBlock">
<span class="itemImage">
<a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
</a>
</span>
<?php if($this->item->params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?>
<span class="itemImageCaption"><?php echo $this->item->image_caption; ?></span>
<?php endif; ?>
<?php if($this->item->params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?>
<span class="itemImageCredits"><?php echo $this->item->image_credits; ?></span>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if(!empty($this->item->fulltext)): ?>
<?php if($this->item->params->get('itemIntroText')): ?>
<div class="itemIntroText">
<?php echo $this->item->introtext; ?>
</div>
<?php endif; ?>
<?php if($this->item->params->get('itemFullText')): ?>
<div class="itemFullText">
<?php echo $this->item->fulltext; ?>
</div>
<?php endif; ?>
<?php else: ?>
<div class="itemFullText">
<?php echo $this->item->introtext; ?>
</div>
<?php endif; ?>
<?php if($this->item->params->get('itemExtraFields') && count($this->item->extra_fields)): ?>
<div class="itemExtraFields">
<h3><?php echo JText::_('K2_ADDITIONAL_INFO'); ?></h3>
<ul>
<?php foreach ($this->item->extra_fields as $key=>$extraField): ?>
<?php if($extraField->value != ''): ?>
<li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
<?php if($extraField->type == 'header'): ?>
<h4 class="itemExtraFieldsHeader"><?php echo $extraField->name; ?></h4>
<?php else: ?>
<span class="itemExtraFieldsLabel"><?php echo $extraField->name; ?>:</span>
<span class="itemExtraFieldsValue"><?php echo $extraField->value; ?></span>
<?php endif; ?>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<?php if($this->item->params->get('itemRating') || ($this->item->params->get('itemDateModified') && intval($this->item->modified)!=0)): ?>
<div class="itemBottom">
<?php if($this->item->params->get('itemDateModified') && intval($this->item->modified)!=0):?>
<?php if($this->item->created != $this->item->modified): ?>
<span class="itemDateModified">
<?php echo JText::_('K2_LAST_MODIFIED_ON'); ?>
<time datetime="<?php echo JHtml::_('date', $this->item->modified, JText::_(DATE_W3C)); ?>"><?php echo JHTML::_('date', $this->item->modified, JText::_('K2_DATE_FORMAT_LC2')); ?></time>
</span>
<?php endif; ?>
<?php endif; ?>
<?php if($this->item->params->get('itemRating')): ?>
<div class="itemRatingBlock">
<span><?php echo JText::_('K2_RATE_THIS_ITEM'); ?></span>
<div class="itemRatingForm">
<ul class="itemRatingList">
<li class="itemCurrentRating" id="itemCurrentRating<?php echo $this->item->id; ?>" style="width:<?php echo $this->item->votingPercentage; ?>%;"></li>
<li>
<a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_1_STAR_OUT_OF_5'); ?>" class="one-star">1</a>
</li>
<li>
<a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_2_STARS_OUT_OF_5'); ?>" class="two-stars">2</a>
</li>
<li>
<a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_3_STARS_OUT_OF_5'); ?>" class="three-stars">3</a>
</li>
<li>
<a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_4_STARS_OUT_OF_5'); ?>" class="four-stars">4</a>
</li>
<li>
<a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_5_STARS_OUT_OF_5'); ?>" class="five-stars">5</a>
</li>
</ul>
<div id="itemRatingLog<?php echo $this->item->id; ?>" class="itemRatingLog"><?php echo $this->item->numOfvotes; ?></div>
</div>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php echo $this->item->event->AfterDisplayContent; ?>
<?php echo $this->item->event->K2AfterDisplayContent; ?>

<?php if(
$this->item->params->get('itemHits') ||
$this->item->params->get('itemCategory') ||
$this->item->params->get('itemTags') ||
$this->item->params->get('itemTwitterButton',1) ||
$this->item->params->get('itemFacebookButton',1) ||
$this->item->params->get('itemGooglePlusOneButton',1) ||
$this->item->params->get('itemAttachments')
): ?>
<div class="itemLinks">
<div class="itemLinksLeft">
<div class="itemHitsTwitter">
<?php if($this->item->params->get('itemHits')): ?>
<span class="itemHits">
<?php echo JText::_('K2_READ'); ?>
<b><?php echo $this->item->hits; ?></b>
<?php echo JText::_('K2_TIMES'); ?>
</span>
<?php endif; ?>
</div>
<?php if($this->item->params->get('itemCategory')): ?>
<div class="itemCategory">
<span><?php echo JText::_('K2_PUBLISHED_IN'); ?></span>
<a href="<?php echo $this->item->category->link; ?>"><?php echo $this->item->category->name; ?></a>
</div>
<?php endif; ?>
<?php if($this->item->params->get('itemAttachments') && count($this->item->attachments)): ?>
<div class="itemAttachmentsBlock">
<span><?php echo JText::_('K2_DOWNLOAD_ATTACHMENTS'); ?></span>
<ul class="itemAttachments">
<?php foreach ($this->item->attachments as $attachment): ?>
<li>
<a title="<?php echo K2HelperUtilities::cleanHtml($attachment->titleAttribute); ?>" href="<?php echo $attachment->link; ?>"><?php echo $attachment->title; ?></a>
<?php if($this->item->params->get('itemAttachmentsCounter')): ?>
<span>(<?php echo $attachment->hits; ?>
<?php echo ($attachment->hits==1) ? JText::_('K2_DOWNLOAD') : JText::_('K2_DOWNLOADS'); ?>)</span>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
</div>
<div class="itemLinksRight">
<?php if($this->item->params->get('itemTags') && count($this->item->tags)): ?>
<div class="itemTagsBlock">
<span><?php echo JText::_('K2_TAGGED_UNDER'); ?></span>
<ul class="itemTags">
<?php foreach ($this->item->tags as $tag): ?>
<li>
<a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<?php if($this->item->params->get('itemTwitterButton',1) || $this->item->params->get('itemFacebookButton',1) || $this->item->params->get('itemGooglePlusOneButton',1)): ?>
<div class="itemSocialSharing">
<?php if($this->item->params->get('itemTwitterButton',1)): ?>
<div class="itemTwitterButton">
<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal"<?php if($this->item->params->get('twitterUsername')): ?> data-via="<?php echo $this->item->params->get('twitterUsername'); ?>"<?php endif; ?>>
<?php echo JText::_('K2_TWEET'); ?>
</a>
<script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>

</div>
<?php endif; ?>
<?php if($this->item->params->get('itemFacebookButton',1)): ?>
<div class="itemFacebookButton">

<script type="text/javascript">
window.addEvent('load', function(){
(function(){
if(document.id('fb-auth') == null) {
var root = document.createElement('div');
root.id = 'fb-root';
$$('.itemFacebookButton')[0].appendChild(root);
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
}
}());
});
</script>
<div class="fb-like" data-send="false" data-width="260" data-show-faces="true"></div>
</div>
<?php endif; ?>
<?php if($this->item->params->get('itemGooglePlusOneButton',1)): ?>
<div class="itemGooglePlusOneButton">
<g:plusone annotation="inline" width="120"></g:plusone>
<script type="text/javascript">
(function() {
window.___gcfg = {lang: 'en'}; // Define button default language here
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php if($this->item->params->get('itemAuthorBlock') && empty($this->item->created_by_alias)):?>
<div class="itemAuthorBlock">
<?php if($this->item->params->get('itemAuthorImage') && !empty($this->item->author->avatar)):?>
<img class="itemAuthorAvatar" src="<?php echo $this->item->author->avatar; ?>" alt="<?php echo K2HelperUtilities::cleanHtml($this->item->author->name); ?>" />
<?php endif; ?>
<div class="itemAuthorDetails">
<div>
<h3 class="itemAuthorName">
<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
</h3>
<?php if($this->item->params->get('itemAuthorDescription') && !empty($this->item->author->profile->description)):?>
<?php echo $this->item->author->profile->description; ?>
<?php endif; ?>
<?php if($this->item->params->get('itemAuthorURL') && !empty($this->item->author->profile->url)):?>
<span class="itemAuthorUrl"><?php echo JText::_('K2_WEBSITE'); ?>
<a rel="me" href="<?php echo $this->item->author->profile->url; ?>" target="_blank" rel="nofollow">
<?php echo str_replace('http://','',$this->item->author->profile->url); ?>
</a>
</span>
<?php endif; ?>
<?php if($this->item->params->get('itemAuthorEmail')):?>
<span class="itemAuthorEmail"><?php echo JText::_('K2_EMAIL'); ?>
<?php echo JHTML::_('Email.cloak', $this->item->author->email); ?></span>
<?php endif; ?>
</div>
<?php echo $this->item->event->K2UserDisplay; ?>
</div>
</div>
<?php endif; ?>

<?php if(($this->item->params->get('itemRelated') && isset($this->relatedItems)) || ($this->item->params->get('itemAuthorLatest') && empty($this->item->created_by_alias) && isset($this->authorLatestItems))): ?>
<div class="itemAuthorContent">
<?php if($this->item->params->get('itemAuthorLatest') && empty($this->item->created_by_alias) && isset($this->authorLatestItems)): ?>
<div>
<h3>
<span>
<?php echo JText::_('K2_LATEST_FROM'); ?>
<?php echo $this->item->author->name; ?>
</span>
</h3>
<ul>
<?php foreach($this->authorLatestItems as $key=>$item): ?>
<li class="<?php echo ($key%2) ? "odd" : "even"; ?>">
<a href="<?php echo $item->link ?>"><?php echo $item->title; ?></a>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>

<?php if($this->item->params->get('itemRelated') && isset($this->relatedItems)): ?>
<div>
<h3><span><?php echo JText::_("K2_RELATED_ITEMS_BY_TAG"); ?></span></h3>
<ul>
<?php foreach($this->relatedItems as $key=>$item): ?>
<li class="<?php echo ($key%2) ? "odd" : "even"; ?>">
<?php if($this->item->params->get('itemRelatedTitle', 1)): ?>
<a class="itemRelTitle" href="<?php echo $item->link ?>"><?php echo $item->title; ?></a>
<?php endif; ?>
<?php if($this->item->params->get('itemRelatedCategory')): ?>
<div class="itemRelCat"><?php echo JText::_("K2_IN"); ?>
<a href="<?php echo $item->category->link ?>"><?php echo $item->category->name; ?></a>
</div>
<?php endif; ?>
<?php if($this->item->params->get('itemRelatedAuthor')): ?>
<div class="itemRelAuthor"><?php echo JText::_("K2_BY"); ?>
<a rel="author" href="<?php echo $item->author->link; ?>"><?php echo $item->author->name; ?></a>
</div>
<?php endif; ?>
<?php if($this->item->params->get('itemRelatedImageSize')): ?>
<img style="width:<?php echo $item->imageWidth; ?>px;height:auto;" class="itemRelImg" src="<?php echo $item->image; ?>" alt="<?php K2HelperUtilities::cleanHtml($item->title); ?>" />
<?php endif; ?>
<?php if($this->item->params->get('itemRelatedIntrotext')): ?>
<div class="itemRelIntrotext"><?php echo $item->introtext; ?></div>
<?php endif; ?>
<?php if($this->item->params->get('itemRelatedFulltext')): ?>
<div class="itemRelFulltext"><?php echo $item->fulltext; ?></div>
<?php endif; ?>
<?php if($this->item->params->get('itemRelatedMedia')): ?>
<?php if($item->videoType=='embedded'): ?>
<div class="itemRelMediaEmbedded"><?php echo $item->video; ?></div>
<?php else: ?>
<div class="itemRelMedia"><?php echo $item->video; ?></div>
<?php endif; ?>
<?php endif; ?>
<?php if($this->item->params->get('itemRelatedImageGallery')): ?>
<div class="itemRelImageGallery"><?php echo $item->gallery; ?></div>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
</div>
<?php endif; ?>

<?php if($this->item->params->get('itemVideo') && !empty($this->item->video)): ?>
<a name="itemVideoAnchor" id="itemVideoAnchor"></a>
<div class="itemVideoBlock">
<h3><?php echo JText::_('K2_MEDIA'); ?></h3>
<?php if($this->item->videoType=='embedded'): ?>
<div class="itemVideoEmbedded">
<?php echo $this->item->video; ?>
</div>
<?php else: ?>
<span class="itemVideo"><?php echo $this->item->video; ?></span>
<?php endif; ?>
<?php if($this->item->params->get('itemVideoCaption') && !empty($this->item->video_caption)): ?>
<span class="itemVideoCaption"><?php echo $this->item->video_caption; ?></span>
<?php endif; ?>
<?php if($this->item->params->get('itemVideoCredits') && !empty($this->item->video_credits)): ?>
<span class="itemVideoCredits"><?php echo $this->item->video_credits; ?></span>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if($this->item->params->get('itemImageGallery') && !empty($this->item->gallery)): ?>
<a name="itemImageGalleryAnchor" id="itemImageGalleryAnchor"></a>
<div class="itemImageGallery">
<h3><?php echo JText::_('K2_IMAGE_GALLERY'); ?></h3>
<?php echo $this->item->gallery; ?>
</div>
<?php endif; ?>
<?php if($this->item->params->get('itemNavigation') && !JRequest::getCmd('print') && (isset($this->item->nextLink) || isset($this->item->previousLink))): ?>
<div class="itemNavigation">
<span class="itemNavigationTitle"><?php echo JText::_('K2_MORE_IN_THIS_CATEGORY'); ?></span>
<?php if(isset($this->item->previousLink)): ?>
<a class="itemPrevious" href="<?php echo $this->item->previousLink; ?>">
&laquo;
<?php echo $this->item->previousTitle; ?>
</a>
<?php endif; ?>
<?php if(isset($this->item->nextLink)): ?>
<a class="itemNext" href="<?php echo $this->item->nextLink; ?>">
<?php echo $this->item->nextTitle; ?>
&raquo;
</a>
<?php endif; ?>
</div>
<?php endif; ?>
<?php echo $this->item->event->AfterDisplay; ?>
<?php echo $this->item->event->K2AfterDisplay; ?>

</div>
<?php if($this->item->params->get('itemComments') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1'))):?>
<?php echo $this->item->event->K2CommentsBlock; ?>
<?php endif;?>
<?php if($this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2')) && empty($this->item->event->K2CommentsBlock)):?>
<a name="itemCommentsAnchor" id="itemCommentsAnchor"></a>
<div class="itemComments">
<?php if($this->item->params->get('commentsFormPosition')=='above' && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?>
<div class="itemCommentsForm">
<?php echo $this->loadTemplate('comments_form'); ?>
</div>
<?php endif; ?>
<?php if($this->item->numOfComments>0 && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2'))): ?>
<div class="gkDate">
<div><?php echo $this->item->numOfComments; ?>
<?php echo ($this->item->numOfComments>1) ? JText::_('K2_COMMENTS') : JText::_('K2_COMMENT'); ?></div>
</div>
<ul class="itemCommentsList">
<?php foreach ($this->item->comments as $key=>$comment): ?>
<li class="<?php echo ($key%2) ? "odd" : "even"; echo (!$this->item->created_by_alias && $comment->userID==$this->item->created_by) ? " authorResponse" : ""; echo($comment->published) ? '':' unpublishedComment'; ?>">
<?php if($comment->userImage):?>
<img src="<?php echo $comment->userImage; ?>" alt="<?php echo JFilterOutput::cleanText($comment->userName); ?>" width="<?php echo $this->item->params->get('commenterImgWidth'); ?>" />
<?php endif; ?>
<div>
<p><?php echo $comment->commentText; ?></p>
<?php if($this->inlineCommentsModeration || ($comment->published && ($this->params->get('commentsReporting')=='1' || ($this->params->get('commentsReporting')=='2' && !$this->user->guest)))): ?>
<span class="commentToolbar">
<?php if($this->inlineCommentsModeration): ?>
<?php if(!$comment->published): ?>
<a class="commentApproveLink" href="<?php echo JRoute::_('index.php?option=com_k2&view=comments&task=publish&commentID='.$comment->id.'&format=raw')?>"><?php echo JText::_('K2_APPROVE')?></a>
<?php endif;?>
<a class="commentRemoveLink" href="<?php echo JRoute::_('index.php?option=com_k2&view=comments&task=remove&commentID='.$comment->id.'&format=raw')?>"><?php echo JText::_('K2_REMOVE')?></a>
<?php endif;?>
<?php if($comment->published && ($this->params->get('commentsReporting')=='1' || ($this->params->get('commentsReporting')=='2' && !$this->user->guest))): ?>
<a class="modal" rel="{handler:'iframe',size:{x:640,y:480}}" href="<?php echo JRoute::_('index.php?option=com_k2&view=comments&task=report&commentID='.$comment->id)?>"><?php echo JText::_('K2_REPORT')?></a>
<?php endif; ?>
</span>
<?php endif; ?>
<span class="commentAuthorName"><!--<?php echo JText::_('K2_POSTED_BY'); ?>-->

<?php if(!empty($comment->userLink)): ?>
<a href="<?php echo JFilterOutput::cleanText($comment->userLink); ?>" title="<?php echo JFilterOutput::cleanText($comment->userName); ?>" target="_blank" rel="nofollow">
<?php echo $comment->userName; ?>
</a>
<?php else: ?>
<?php echo $comment->userName; ?>
<?php endif; ?>
</span>
<span class="commentDate">
<time datetime="<?php echo JHtml::_('date', $comment->commentDate, JText::_(DATE_W3C)); ?>"><?php echo JHTML::_('date', $comment->commentDate, JText::_('DATE_FORMAT_LC2')); ?></time>
</span>
<span class="commentLink">
<a href="<?php echo $this->item->link; ?>#comment<?php echo $comment->id; ?>" name="comment<?php echo $comment->id; ?>" id="comment<?php echo $comment->id; ?>">
<?php echo JText::_('K2_COMMENT_LINK'); ?>
</a>
</span></div>
</li>
<?php endforeach; ?>
</ul>
<div class="itemCommentsPagination">
<?php echo $this->pagination->getPagesLinks(); ?>
</div>
<?php endif; ?>

<?php if($this->item->params->get('commentsFormPosition')=='below' && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?>
<div class="gkDate">
<div><?php echo JText::_('K2_LEAVE_A_COMMENT') ?></div>
</div>
<div class="itemCommentsForm">
<?php echo $this->loadTemplate('comments_form'); ?>
</div>
<?php endif; ?>
<?php $user = JFactory::getUser(); if ($this->item->params->get('comments') == '2' && $user->guest):?>
<div><?php echo JText::_('K2_LOGIN_TO_POST_COMMENTS');?></div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if(!JRequest::getCmd('print')): ?>
<div class="itemBackToTop">
<a class="k2Anchor" href="<?php echo $this->item->link; ?>#startOfPageId<?php echo JRequest::getInt('id'); ?>">
<?php echo JText::_('K2_BACK_TO_TOP'); ?>
</a>
</div>
<?php endif; ?>
</div>
<!-- End K2 Item Layout -->
User avatar
Fresh Boarder

GK User
Tue Feb 25, 2014 3:55 pm
Thus we have a dilemma.
Why work online on my page this same code which don't work on yours ?

You see exactly this same as before ?
maybe add after <img... > "bla bla bla"' - and check if you will see it.
User avatar
Platinum Boarder

GK User
Tue Feb 25, 2014 4:05 pm
maybe web goast :) , any way theme will alawys work on DEMO .
but people will have issue like i can see on all theme sellers forums...

so that is you last solution if it's a solution ?!!
and trust me before my first post and contacting you, i made all turn arround forum docs test ....
User avatar
Fresh Boarder

GK User
Tue Feb 25, 2014 5:31 pm
1) I have no grudge against you, I just have no idea why it works for me and on your website does not.
2) Second. I want help you ... but you don't answer to my "test" questions. Did you saw "bla bla " text near print - if you added there ?
3) I can not go into your page since you have "JS:Clickjack-B [Trojan]" - I don't want to risk. Sorry.

The last tip will be: Use background image:
Code: Select all
a.itemEmailLink { background: url('http://www.nightbag.fr/templates/gk_esport/images/system/emailButton.png') no-repeat; color: rgba(0, 0, 0, 0); }
a.itemPrintLink { background: url('http://www.nightbag.fr/templates/gk_esport/images/system/printButton.png') no-repeat; color: rgba(0, 0, 0, 0); }


As you see there are only two options!
User avatar
Platinum Boarder

GK User
Tue Feb 25, 2014 6:21 pm
Thank for all help,
ok, I didn't understand that you didn't access to the site , so if your anti-virus see warning on any site , that means it's listed so he can stop it maybe, i already cleaned infected Joomla site for few clients and i have to pass the warning , the anti-virus will stop it i think.

I tried you add bla bla so nothing come out it’s not the files , and I can even see my image on local cause of http//: ...
so seems the templates is not using the right files !!!

So i can simply hack the override css and add a class, cause the class are not the same as your example, but I preferred before doing that to use your normal theme options...
User avatar
Fresh Boarder

GK User
Tue Feb 25, 2014 6:32 pm
Wait, Are you sure that we talk about this same article systems ?
do you mean k2 items or default Joomla articles?

:!: Because all my help was for K2 items since second post.

Strange that you did not notice it from beginning, :whistle:
because by default K2 items in this template don't use icons.
User avatar
Platinum Boarder

GK User
Tue Feb 25, 2014 6:36 pm
So if we talk about standard articles this may help

Code: Select all
dd.email { background: url('http://www.nightbag.fr/templates/gk_esport/images/system/emailButton.png') no-repeat; color: rgba(0, 0, 0, 0); }
dd.print { background: url('http://www.nightbag.fr/templates/gk_esport/images/system/printButton.png') no-repeat; color: rgba(0, 0, 0, 0); }
User avatar
Platinum Boarder

GK User
Tue Feb 25, 2014 6:42 pm
naizak wrote:Not working with http//…
I tested on 3 navigators before contacting you and sure I cleaned the cache :shock:

Just for information unfortunately it’s not me who made this SITE :blink: , but I made all update off the theme & cleaning and more …

Actually K2 , I don’t see any component In the back office in case it affect the behavior of the theme

http://www.nightbag.fr/templates/gk_esp ... Button.png


:)
i'll try your last options

i already told you i don't see k2 in my joomla client , so i think i talk about Joomla
User avatar
Fresh Boarder

GK User
Tue Feb 25, 2014 6:44 pm
but before you will use CSS --> Check you Article settings....
print-icons.png


i already told you i don't see k2 in my joomla client , so i think i talk about Joomla

Sorry. Upss I did not notice this or I was thinking about something else. :silly:
User avatar
Platinum Boarder

GK User
Tue Feb 25, 2014 6:49 pm
seem's to work on overide files that was my last solution if i can't use template normal options ,
i'll have to add a css text indent to delete the text , it's ok after your last post :)

OUPS :) i had all icone on but not the Show icon it's was off :sick:
thank you for all Help
User avatar
Fresh Boarder

GK User
Tue Feb 25, 2014 6:50 pm
can you marke it SOLVED or should i do it "where "
thank once more
User avatar
Fresh Boarder


cron