Новости Joomla

0 Пользователей и 1 Гость просматривают эту тему.
  • 53 Ответов
  • 13750 Просмотров
*

Gruz

  • Завсегдатай
  • 1275
  • 167 / 3
  • gruz@jabber.org | gruz.org.ua
« Последнее редактирование: 02.01.2012, 17:52:28 от Gruz »
Життя має дві форми - горіння і гниття!
-
Со мной на "ты" - Вам лень развёрнуто формулировать вопрос? Нам лень отвечать. Правильный вопрос: - Версии J! и проблемного расширения? - Что хотел? - Что пробовал? - Что получилось и что не получилось? - Какие были ошибки?
*

yrygvay

  • Завсегдатай
  • 1293
  • 36 / 3
А что- бы как на первом скирне не выводилось инфа что оригинальная картинка отсутствует возможно так сделать?
Смотрю....
*

Gruz

  • Завсегдатай
  • 1275
  • 167 / 3
  • gruz@jabber.org | gruz.org.ua
А что- бы как на первом скирне не выводилось инфа что оригинальная картинка отсутствует возможно так сделать?
Строка во
flypage.tpl.php или browse_1.php
         $show_noimage = false,

true или false
показывать или нет
Життя має дві форми - горіння і гниття!
-
Со мной на "ты" - Вам лень развёрнуто формулировать вопрос? Нам лень отвечать. Правильный вопрос: - Версии J! и проблемного расширения? - Что хотел? - Что пробовал? - Что получилось и что не получилось? - Какие были ошибки?
*

yrygvay

  • Завсегдатай
  • 1293
  • 36 / 3
и для 1.1.7 есть подобное? а то
В components/com_virtuemart/themes/YOURTHEME/templates/product_details/flypage.tpl.php
Ищем код:
Код:

<div class="product-image-first"><?php echo $product_image ?></div>

такого уже нет(
« Последнее редактирование: 10.02.2011, 20:52:05 от yrygvay »
Смотрю....
*

Gruz

  • Завсегдатай
  • 1275
  • 167 / 3
  • gruz@jabber.org | gruz.org.ua
Версия не важна. Логика такова, что надо добавить указанный выше код и выключить оригинальное отображения картинки.
Где именно - в районе переменной $product_image
Понятно, что в шаблонах это место будет отличаться.
Життя має дві форми - горіння і гниття!
-
Со мной на "ты" - Вам лень развёрнуто формулировать вопрос? Нам лень отвечать. Правильный вопрос: - Версии J! и проблемного расширения? - Что хотел? - Что пробовал? - Что получилось и что не получилось? - Какие были ошибки?
*

yrygvay

  • Завсегдатай
  • 1293
  • 36 / 3
А как думаешь, возможно тоже самое проделать для К2mart .... оказалось что К2 отлично импортирует товары из VM и бывает очень удобно отображать товар с помощью К2
Смотрю....
*

Gruz

  • Завсегдатай
  • 1275
  • 167 / 3
  • gruz@jabber.org | gruz.org.ua
Конечно можно. Только я никогда K2 не пользовался. Подозреваю, очень не сложно подправить. А править там надо только место, которое смотрит, есть или в переданному в функцию тексте noimage.* , или нет. Может в K2 тоже для отсутствующего изображения noimage.*, тогда вроде должно без изменений кода работать.
« Последнее редактирование: 16.02.2011, 14:09:16 от Gruz »
Життя має дві форми - горіння і гниття!
-
Со мной на "ты" - Вам лень развёрнуто формулировать вопрос? Нам лень отвечать. Правильный вопрос: - Версии J! и проблемного расширения? - Что хотел? - Что пробовал? - Что получилось и что не получилось? - Какие были ошибки?
*

yrygvay

  • Завсегдатай
  • 1293
  • 36 / 3
Вот код из item.php который по идее выводит карточку товара!
Код
<?php
/**
 * @version $Id: item.php 558 2010-09-22 11:25:17Z lefteris.kavadas $
 * @package K2
 * @author JoomlaWorks http://www.joomlaworks.gr
 * @copyright Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved.
 * @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
 */

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

?>

<!-- Start K2 Item Layout -->
<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'); ?>">

<!-- Plugins: BeforeDisplay -->
<?php echo $this->item->event->BeforeDisplay; ?>

<!-- K2 Plugins: K2BeforeDisplay -->
<?php echo $this->item->event->K2BeforeDisplay; ?>

<?php if(isset($this->item->editLink)): ?>
<!-- Item edit link -->
<span class="itemEditLink">
<a class="modal" rel="{handler:'iframe',size:{x:990,y:650}}" href="<?php echo $this->item->editLink; ?>">
<?php echo JText::_('Edit item'); ?>
</a>
</span>
<?php endif; ?>

<div class="itemHeader">

<?php if($this->item->params->get('itemDateCreated')): ?>
<!-- Date created -->
<span class="itemDateCreated">
<?php echo JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC2')); ?>
</span>
<?php endif; ?>

  <?php if($this->item->params->get('itemTitle')): ?>
  <!-- Item title -->
  <h2 class="itemTitle">
  <?php echo $this->item->title; ?>

  <?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?>
  <!-- Featured flag -->
  <span>
  <sup>
  <?php echo JText::_('Featured'); ?>
  </sup>
  </span>
  <?php endif; ?>

  </h2>
  <?php endif; ?>

<?php if($this->item->params->get('itemAuthor')): ?>
<!-- Item Author -->
<span class="itemAuthor">
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>&nbsp;
<?php if(empty($this->item->created_by_alias)): ?>
<a 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>
<?php endif; ?>

  </div>

  <!-- Plugins: AfterDisplayTitle -->
  <?php echo $this->item->event->AfterDisplayTitle; ?>

  <!-- K2 Plugins: K2AfterDisplayTitle -->
  <?php echo $this->item->event->K2AfterDisplayTitle; ?>

<?php if(
$this->item->params->get('itemFontResizer') ||
$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('itemCommentsAnchor')
): ?>
  <div class="itemToolbar">
<ul>
<?php if($this->item->params->get('itemFontResizer')): ?>
<!-- Font Resizer -->
<li>
<span class="itemTextResizerTitle"><?php echo JText::_('font size'); ?></span>
<a href="#" id="fontDecrease">
<span><?php echo JText::_('decrease font size'); ?></span>
<img src="components/com_k2/images/system/blank.gif" alt="<?php echo JText::_('decrease font size'); ?>" />
</a>
<a href="#" id="fontIncrease">
<span><?php echo JText::_('increase font size'); ?></span>
<img src="components/com_k2/images/system/blank.gif" alt="<?php echo JText::_('increase font size'); ?>" />
</a>
</li>
<?php endif; ?>

<?php if($this->item->params->get('itemPrintButton')): ?>
<!-- Print Button -->
<li>
<?php if(JRequest::getCmd('print')==1): ?>
<a class="itemPrintLink" href="<?php echo $this->item->printLink; ?>" onclick="window.print();return false;">
<span><?php echo JText::_('Print'); ?></span>
</a>
<?php else: ?>
<a class="modal itemPrintLink" href="<?php echo $this->item->printLink; ?>" rel="{handler:'iframe',size:{x:900,y:500}}">
<span><?php echo JText::_('Print'); ?></span>
</a>
<?php endif; ?>
</li>
<?php endif; ?>

<?php if($this->item->params->get('itemEmailButton') && (!JRequest::getInt('print')) ): ?>
<!-- Email Button -->
<li>
<a class="itemEmailLink" onclick="window.open(this.href,'win2','width=400,height=350,menubar=yes,resizable=yes'); return false;" href="<?php echo $this->item->emailLink; ?>">
<span><?php echo JText::_('E-mail'); ?></span>
</a>
</li>
<?php endif; ?>

<?php if($this->item->params->get('itemSocialButton') && !is_null($this->item->params->get('socialButtonCode', NULL))): ?>
<!-- Item Social Button -->
<li>
<?php echo $this->item->params->get('socialButtonCode'); ?>
</li>
<?php endif; ?>

<?php if($this->item->params->get('itemVideoAnchor') && !empty($this->item->video)): ?>
<!-- Anchor link to item video below - if it exists -->
<li>
<a class="itemVideoLink k2Anchor" href="<?php echo $this->item->link; ?>#itemVideoAnchor"><?php echo JText::_('Video'); ?></a>
</li>
<?php endif; ?>

<?php if($this->item->params->get('itemImageGalleryAnchor') && !empty($this->item->gallery)): ?>
<!-- Anchor link to item image gallery below - if it exists -->
<li>
<a class="itemImageGalleryLink k2Anchor" href="<?php echo $this->item->link; ?>#itemImageGalleryAnchor"><?php echo JText::_('Image Gallery'); ?></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')) ): ?>
<!-- Anchor link to comments below - if enabled -->
<li>
<?php if(!empty($this->item->event->K2CommentsCounter)):?>
<!-- K2 Plugins: K2CommentsCounter -->
<?php echo $this->item->event->K2CommentsCounter; ?>
<?php else:?>
<?php if($this->item->numOfComments > 0): ?>
<a class="itemCommentsLink k2Anchor" href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
<span><?php echo $this->item->numOfComments; ?></span> <?php echo ($this->item->numOfComments>1)? JText::_('comments') : JText::_('comment'); ?>
</a>
<?php else: ?>
<a class="itemCommentsLink k2Anchor" href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
<?php echo JText::_('Be the first to comment!'); ?>
</a>
<?php endif; ?>
<?php endif; ?>
</li>
<?php endif; ?>
</ul>
<div class="clr"></div>
  </div>
<?php endif; ?>

<?php if($this->item->params->get('itemRating')): ?>
<!-- Item Rating -->
<div class="itemRatingBlock">
<span><?php echo JText::_('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::_('1 star out of 5'); ?>" class="one-star">1</a></li>
<li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('2 stars out of 5'); ?>" class="two-stars">2</a></li>
<li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('3 stars out of 5'); ?>" class="three-stars">3</a></li>
<li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('4 stars out of 5'); ?>" class="four-stars">4</a></li>
<li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('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 class="clr"></div>
</div>
<div class="clr"></div>
</div>
<?php endif; ?>

  <div class="itemBody">

  <!-- Plugins: BeforeDisplayContent -->
  <?php echo $this->item->event->BeforeDisplayContent; ?>

  <!-- K2 Plugins: K2BeforeDisplayContent -->
  <?php echo $this->item->event->K2BeforeDisplayContent; ?>

  <?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?>
  <!-- Item Image -->
  <div class="itemImageBlock">
  <span class="itemImage">
  <a class="modal" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('Click to preview image'); ?>">
  <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo $this->item->image_caption; else echo $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)): ?>
  <!-- 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)): ?>
  <!-- Image credits -->
  <span class="itemImageCredits"><?php echo $this->item->image_credits; ?></span>
  <?php endif; ?>

  <div class="clr"></div>
  </div>
  <?php endif; ?>

  <?php if(!empty($this->item->fulltext)): ?>

  <?php if($this->item->params->get('itemIntroText')): ?>
  <!-- Item introtext -->
  <div class="itemIntroText">
  <?php echo $this->item->introtext; ?>
  </div>
  <?php endif; ?>

  <?php if($this->item->params->get('itemFullText')): ?>
  <!-- Item fulltext -->
  <div class="itemFullText">
  <?php echo $this->item->fulltext; ?>
  </div>
  <?php endif; ?>

  <?php else: ?>

  <!-- Item text -->
  <div class="itemFullText">
  <?php echo $this->item->introtext; ?>
  </div>

  <?php endif; ?>

<div class="clr"></div>

  <?php if($this->item->params->get('itemExtraFields') && count($this->item->extra_fields)): ?>
  <!-- Item extra fields -->
  <div class="itemExtraFields">
  <h3><?php echo JText::_('Additional Info'); ?></h3>
  <ul>
<?php foreach ($this->item->extra_fields as $key=>$extraField):?>
<li class="<?php echo ($key%2)? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
<span class="itemExtraFieldsLabel"><?php echo $extraField->name; ?>:</span>
<span class="itemExtraFieldsValue"><?php echo $extraField->value; ?></span>
</li>
<?php endforeach; ?>
</ul>
    <div class="clr"></div>
  </div>
  <?php endif; ?>

<?php if($this->item->params->get('itemDateModified') && intval($this->item->modified)!=0):?>
<!-- Item date modified -->
<?php if($this->item->created != $this->item->modified): ?>
<span class="itemDateModified">
<?php echo JText::_('Last modified on'); ?> <?php echo JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2')); ?>
</span>
<?php endif; ?>
<?php endif; ?>

  <!-- Plugins: AfterDisplayContent -->
  <?php echo $this->item->event->AfterDisplayContent; ?>

  <!-- K2 Plugins: K2AfterDisplayContent -->
  <?php echo $this->item->event->K2AfterDisplayContent; ?>

  <div class="clr"></div>
  </div>

  <?php if(
  $this->item->params->get('itemHits') ||
  $this->item->params->get('itemTwitterLink') ||
  $this->item->params->get('itemCategory') ||
  $this->item->params->get('itemTags') ||
  $this->item->params->get('itemShareLinks') ||
  $this->item->params->get('itemAttachments')
  ): ?>
  <div class="itemLinks">

<?php if($this->item->params->get('itemHits') || $this->item->params->get('itemTwitterLink')): ?>
<div class="itemHitsTwitter">
<?php if($this->item->params->get('itemHits')): ?>
<!-- Item Hits -->
<span class="itemHits">
<?php echo JText::_('Read'); ?> <b><?php echo $this->item->hits; ?></b> <?php echo JText::_('times'); ?>
</span>
<?php endif; ?>

<?php if($this->item->params->get('itemHits') && $this->item->params->get('itemTwitterLink') && $this->item->params->get('twitterUsername')): ?>
<span class="itemHitsTwitterSep">|</span>
<?php endif; ?>

<?php if($this->item->params->get('itemTwitterLink') && $this->item->params->get('twitterUsername')): ?>
<!-- Twitter Link -->
<span class="itemTwitterLink">
<a title="<?php echo JText::_('Like this? Tweet it to your followers!'); ?>" href="<?php echo $this->item->twitterURL; ?>" target="_blank">
<?php echo JText::_('Like this? Tweet it to your followers!'); ?>
</a>
</span>
<?php endif; ?>

<div class="clr"></div>
</div>
<?php endif; ?>

<?php if($this->item->params->get('itemCategory')): ?>
<!-- Item category name -->
<div class="itemCategory">
<span><?php echo JText::_('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('itemTags') && count($this->item->tags)): ?>
  <!-- Item tags -->
  <div class="itemTagsBlock">
  <span><?php echo JText::_("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 class="clr"></div>
  </div>
  <?php endif; ?>

  <?php if($this->item->params->get('itemShareLinks')): ?>
  <!-- Item social links -->
<div class="itemSocialLinksBlock">
<span><?php echo JText::_("Social sharing"); ?></span>
<ul class="itemSocialLinks">
<li><a class="googlebuzz" title="<?php echo JText::_("Add to Google Buzz"); ?>" href="http://www.google.com/buzz/post?url=<?php echo $this->item->socialLink; ?>&amp;message=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to Google Buzz"); ?></span></a></li>
<li><a class="facebook" title="<?php echo JText::_("Add to Facebook"); ?>" href="http://www.facebook.com/sharer.php?u=<?php echo $this->item->socialLink; ?>&amp;t=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to Facebook"); ?></span></a></li>
<li><a class="delicious" title="<?php echo JText::_("Add to Delicious"); ?>" href="http://del.icio.us/post?url=<?php echo $this->item->socialLink; ?>&amp;title=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to Delicious"); ?></span></a></li>
<li><a class="digg" title="<?php echo JText::_("Digg this"); ?>" href="http://digg.com/submit?url=<?php echo $this->item->socialLink; ?>&amp;title=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Digg this"); ?></span></a></li>
<li><a class="reddit" title="<?php echo JText::_("Add to Reddit"); ?>" href="http://reddit.com/submit?url=<?php echo $this->item->socialLink; ?>&amp;title=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to Reddit"); ?></span></a></li>
<li><a class="stumble" title="<?php echo JText::_("Add to StumbleUpon"); ?>" href="http://www.stumbleupon.com/submit?url=<?php echo $this->item->socialLink; ?>&amp;title=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to StumbleUpon"); ?></span></a></li>
<li><a class="myspace" title="<?php echo JText::_("Add to MySpace"); ?>" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=<?php echo $this->item->socialLink; ?>&amp;t=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to MySpace"); ?></span></a></li>
<li><a class="technorati" title="<?php echo JText::_("Add to Technorati"); ?>" href="http://www.technorati.com/faves?add=<?php echo $this->item->socialLink; ?>" target="_blank"><span><?php echo JText::_("Add to Technorati"); ?></span></a></li>
<li class="clr"></li>
</ul>
<div class="clr"></div>
</div>
  <?php endif; ?>

  <?php if($this->item->params->get('itemAttachments') && count($this->item->attachments)): ?>
  <!-- Item attachments -->
  <div class="itemAttachmentsBlock">
  <span><?php echo JText::_("Download attachments:"); ?></span>
  <ul class="itemAttachments">
    <?php foreach ($this->item->attachments as $attachment): ?>
    <li>
    <a title="<?php echo htmlentities($attachment->titleAttribute, ENT_QUOTES, 'UTF-8'); ?>" href="<?php echo JRoute::_('index.php?option=com_k2&view=item&task=download&id='.$attachment->id); ?>">
    <?php echo $attachment->title ; ?>
    </a>
    <?php if($this->item->params->get('itemAttachmentsCounter')): ?>
    <span>(<?php echo $attachment->hits; ?> <?php echo (count($attachment->hits)==1)? JText::_("download") : JText::_("downloads"); ?>)</span>
    <?php endif; ?>
    </li>
    <?php endforeach; ?>
  </ul>
  </div>
  <?php endif; ?>

<div class="clr"></div>
  </div>
  <?php endif; ?>

  <?php if($this->item->params->get('itemAuthorBlock') && empty($this->item->created_by_alias)):?>
  <!-- Author Block -->
  <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 $this->item->author->name; ?>" />
  <?php endif; ?>

    <div class="itemAuthorDetails">
      <h3 class="itemAuthorName">
      <a 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)):?>
      <p><?php echo $this->item->author->profile->description; ?></p>
      <?php endif; ?>

      <?php if($this->item->params->get('itemAuthorURL') && !empty($this->item->author->profile->url)):?>
      <span class="itemAuthorUrl"><?php echo JText::_("Website:"); ?> <a 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::_("E-mail:"); ?> <?php echo JHTML::_('Email.cloak', $this->item->author->email); ?></span>
      <?php endif; ?>

<div class="clr"></div>

<!-- K2 Plugins: K2UserDisplay -->
<?php echo $this->item->event->K2UserDisplay; ?>

    </div>
    <div class="clr"></div>
  </div>
  <?php endif; ?>

  <?php if($this->item->params->get('itemAuthorLatest') && empty($this->item->created_by_alias) && isset($this->authorLatestItems)): ?>
  <!-- Latest items from author -->
<div class="itemAuthorLatest">
<h3><?php echo JText::_("Latest from"); ?> <?php echo $this->item->author->name; ?></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 class="clr"></div>
</div>
<?php endif; ?>

  <?php if($this->item->params->get('itemRelated') && isset($this->relatedItems)): ?>
  <!-- Related items by tag -->
<div class="itemRelated">
<h3><?php echo JText::_("Related items (by tag)"); ?></h3>
<ul>
<?php foreach($this->relatedItems 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 class="clr"></div>
</div>
<?php endif; ?>

<div class="clr"></div>

  <?php if($this->item->params->get('itemVideo') && !empty($this->item->video)): ?>
  <!-- Item video -->
  <a name="itemVideoAnchor" id="itemVideoAnchor"></a>

  <div class="itemVideoBlock">
  <h3><?php echo JText::_('Related Video'); ?></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 class="clr"></div>
  </div>
  <?php endif; ?>

  <?php if($this->item->params->get('itemImageGallery') && !empty($this->item->gallery)): ?>
  <!-- Item image gallery -->
  <a name="itemImageGalleryAnchor" id="itemImageGalleryAnchor"></a>
  <div class="itemImageGallery">
  <h3><?php echo JText::_('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))): ?>
  <!-- Item navigation -->
  <div class="itemNavigation">
  <span class="itemNavigationTitle"><?php echo JText::_('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; ?>

  <!-- Plugins: AfterDisplay -->
  <?php echo $this->item->event->AfterDisplay; ?>

  <!-- K2 Plugins: K2AfterDisplay -->
  <?php echo $this->item->event->K2AfterDisplay; ?>

  <?php if($this->item->params->get('itemComments') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1'))):?>
  <!-- K2 Plugins: K2CommentsBlock -->
  <?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)):?>
  <!-- Item comments -->
  <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)))): ?>
  <!-- Item comments form -->
  <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'))): ?>
  <!-- Item user comments -->
  <h3 class="itemCommentsCounter">
  <span><?php echo $this->item->numOfComments; ?></span> <?php echo ($this->item->numOfComments>1)? JText::_('comments') : JText::_('comment'); ?>
  </h3>

  <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" : ""; ?>">

    <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::_('Comment Link'); ?>
    </a>
    </span>

<?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; ?>

<span class="commentDate">
    <?php echo JHTML::_('date', $comment->commentDate, JText::_('DATE_FORMAT_LC2')); ?>
    </span>

    <span class="commentAuthorName">
    <?php echo JText::_("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>

    <p><?php echo $comment->commentText; ?></p>

<div class="clr"></div>
    </li>
    <?php endforeach; ?>
  </ul>

  <div class="itemCommentsPagination">
  <?php echo $this->pagination->getPagesLinks(); ?>
  <div class="clr"></div>
  </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)))): ?>
  <!-- Item comments form -->
  <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::_('Login to post comments');?></div>
  <?php endif; ?>

  </div>
  <?php endif; ?>

<div class="itemBackToTop">
<a class="k2Anchor" href="<?php echo $this->item->link; ?>#startOfPageId<?php echo JRequest::getInt('id'); ?>"><?php echo JText::_("back to top"); ?></a>
</div>

<div class="clr"></div>
</div>
<!-- End K2 Item Layout -->

но  что-то этот кусок когда слишком другой(
Смотрю....
*

Gruz

  • Завсегдатай
  • 1275
  • 167 / 3
  • gruz@jabber.org | gruz.org.ua
Если ты не можешь определить где приблизительно нужный код, то мой совет "приблизительно там сделай приблизительно то" вряд ли тебе поможет.

Место
Код
<a class="modal" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('Click to preview image'); ?>">
  <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo $this->item->image_caption; else echo $this->item->title; ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
  </a>

Приблизительно на это:
Код
<?php $product_image = '<a class="modal" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('Click to preview image'); ?>">
  <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo $this->item->image_caption; else echo $this->item->title; ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
  </a>
  </span>';
$product_name = $this->item->image_caption;

include_once ('YOURPATH/google_image.php');
$getGoogleImages = new getGoogleImages ;
$getGoogleImages->placeImagesHere(
$product_name,
$product_image_html = $product_image,
$imageblocktitle  ='Вероятное изображения товара из Google',
$width = '150px;',
$height = null,
$numberofimages = 1,
$scroll = 'none',
$show_noimage = false,
$strip_nonlatin = true ,
$before_first_comma=true

);

?>


Писал тут, не пробовал, потому могут быть проблемы с синтаксисом.
Життя має дві форми - горіння і гниття!
-
Со мной на "ты" - Вам лень развёрнуто формулировать вопрос? Нам лень отвечать. Правильный вопрос: - Версии J! и проблемного расширения? - Что хотел? - Что пробовал? - Что получилось и что не получилось? - Какие были ошибки?
*

yrygvay

  • Завсегдатай
  • 1293
  • 36 / 3
на днях попробую и отпишусь!
Смотрю....
*

Craz_z_zy

  • Захожу иногда
  • 87
  • 3 / 2
Очень полезная наработка, не могли бы вы подсказать, что поправить для поиска картики в Google не по наименованю, а по короткому описанию?
*

Gruz

  • Завсегдатай
  • 1275
  • 167 / 3
  • gruz@jabber.org | gruz.org.ua
Код
$getGoogleImages->placeImagesHere(
$product_name,

на
Код
$getGoogleImages->placeImagesHere(
$product_s_desc,
Життя має дві форми - горіння і гниття!
-
Со мной на "ты" - Вам лень развёрнуто формулировать вопрос? Нам лень отвечать. Правильный вопрос: - Версии J! и проблемного расширения? - Что хотел? - Что пробовал? - Что получилось и что не получилось? - Какие были ошибки?
*

Craz_z_zy

  • Захожу иногда
  • 87
  • 3 / 2
о, спасибо )
*

White63

  • Новичок
  • 2
  • 0 / 0
Добрый день.
Данные скрипты перестали работать походу. Даже по линкам указанных для примера данный функционал не работает. В чем может быть причина?
« Последнее редактирование: 04.04.2011, 14:04:09 от White63 »
*

Gruz

  • Завсегдатай
  • 1275
  • 167 / 3
  • gruz@jabber.org | gruz.org.ua
Життя має дві форми - горіння і гниття!
-
Со мной на "ты" - Вам лень развёрнуто формулировать вопрос? Нам лень отвечать. Правильный вопрос: - Версии J! и проблемного расширения? - Что хотел? - Что пробовал? - Что получилось и что не получилось? - Какие были ошибки?
*

White63

  • Новичок
  • 2
  • 0 / 0
Извиняюсь, действительно проблема была в опере. В Firefox все отображается верно.
А какие опции должны быть в включены в браузере, чтобы работал данный функционал?
И у меня почему то текст: "Вероятные изображения товара из " отображается кракозябрами. Как можно это исправить?
*

Gruz

  • Завсегдатай
  • 1275
  • 167 / 3
  • gruz@jabber.org | gruz.org.ua
В опере под линуксом у меня указанный линк работает. От настроек не должнол зависеть.

Неправильна кодировка файла приводит к кромсанию кириллицы. Сохрани в UTF-8.
Может от кодировки и ява-скрипт ламается.
Життя має дві форми - горіння і гниття!
-
Со мной на "ты" - Вам лень развёрнуто формулировать вопрос? Нам лень отвечать. Правильный вопрос: - Версии J! и проблемного расширения? - Что хотел? - Что пробовал? - Что получилось и что не получилось? - Какие были ошибки?
*

yrygvay

  • Завсегдатай
  • 1293
  • 36 / 3
А что поправить в файле browse_5.php
Там вообще нет ни чего похоже на код из первого образца.
Код
<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
mm_showMyFileName(__FILE__);
 ?>
 <table width="100%" cellspacing="0" cellpadding="0" border="0" >
  <tr>
    <td >
        <a style="font-size: 16px; font-weight: bold;" href="<?php echo $product_flypage ?>"><?php echo $product_name ?></a>
    </td>
  </tr>
  <tr>
    <td align="left" nowrap ><?php echo $product_price ?></td>
  </tr>
  <tr>
    <td ><a href="<?php echo $product_flypage ?>">
          <?php echo ps_product::image_tag( urldecode($product_thumb_image), 'class="browseProductImage" border="0" title="'.$product_name.'" alt="'.$product_name .'"' )?>
       </a>
    </td>
  </tr>
  <tr>
    <td height="80" valign="top"><?php echo $product_s_desc ?><br />
      <a style="font-size: 9px; font-weight: bold;" href="<?php echo $product_flypage ?>">[<?php echo $product_details ?>...]</a>
    </td>
  </tr>
  <tr>
    <td ><hr /></td>
  </tr>
  <tr>
    <td ><?php echo $product_rating ?></td>
  </tr>
</table>
Смотрю....
*

Gruz

  • Завсегдатай
  • 1275
  • 167 / 3
  • gruz@jabber.org | gruz.org.ua
Заменить то, что выводит фотографию от VM, на то, что выводит фотографию от гуугла.

Похоже это:
Код
<a href="<?php echo $product_flypage ?>">
          <?php echo ps_product::image_tag( urldecode($product_thumb_image), 'class="browseProductImage" border="0" title="'.$product_name.'" alt="'.$product_name .'"' )?>
       </a>

на такое

Код
<?php /*##my##2011-02-07 01:46:52 { 	        
<a href="<?php echo $product_flypage ?>">
          <?php echo ps_product::image_tag( urldecode($product_thumb_image), 'class="browseProductImage" border="0" title="'.$product_name.'" alt="'.$product_name .'"' )?>
       </a>
        //It became: */?>
<?php
$product_image = ps_product::image_tag( $product_thumb_image, 'class="browseProductImage" border="0" title="'.$product_name.'" alt="'.$product_name .'"' ) ;
include_once (VM_THEMEPATH.'templates/common/google_image.php');
$getGoogleImages = new getGoogleImages ;
$getGoogleImages->placeImagesHere(
$product_name,
$product_image_html = $product_image,
$imageblocktitle  ='Вероятное изображения товара из Google',
$width = '150px;',
$height = null,
$numberofimages = 1,
$scroll = 'none',
$show_noimage = false,
$strip_nonlatin = true ,
$before_first_comma=true

);
<a href="<?php echo $product_flypage ?>">
Подробнее...</a>
/*##my##2011-02-07 01:46:52 } */ ?>
Життя має дві форми - горіння і гниття!
-
Со мной на "ты" - Вам лень развёрнуто формулировать вопрос? Нам лень отвечать. Правильный вопрос: - Версии J! и проблемного расширения? - Что хотел? - Что пробовал? - Что получилось и что не получилось? - Какие были ошибки?
*

yrygvay

  • Завсегдатай
  • 1293
  • 36 / 3
Внёс правку, поставил кодировку файла utf8 и вот оно чудо!
/httpdocs/components/com_virtuemart/themes/default/templates/browse/browse_5.php
Код
<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
mm_showMyFileName(__FILE__);
 ?>
 <table width="100%" cellspacing="0" cellpadding="0" border="0" >
  <tr>
    <td >
        <a style="font-size: 16px; font-weight: bold;" href="<?php echo $product_flypage ?>"><?php echo $product_name ?></a>
    </td>
  </tr>
  <tr>
    <td align="left" nowrap ><?php echo $product_price ?></td>
  </tr>
  <tr>
<?php /*##my##2011-02-07 01:46:52 {        
<a href="<?php echo $product_flypage ?>">
          <?php echo ps_product::image_tag( urldecode($product_thumb_image), 'class="browseProductImage" border="0" title="'.$product_name.'" alt="'.$product_name .'"' )?>
       </a>
        //It became: */?>
<?php
$product_image = ps_product::image_tag( $product_thumb_image, 'class="browseProductImage" border="0" title="'.$product_name.'" alt="'.$product_name .'"' ) ;
include_once (VM_THEMEPATH.'templates/common/google_image.php');
$getGoogleImages = new getGoogleImages ;
$getGoogleImages->placeImagesHere(
$product_name,
$product_image_html = $product_image,
$imageblocktitle  ='Вероятное изображения товара из Google',
$width = '150px;',
$height = null,
$numberofimages = 1,
$scroll = 'none',
$show_noimage = false,
$strip_nonlatin = true ,
$before_first_comma=true

);
<a href="<?php echo $product_flypage ?>">
Подробнее...</a>
/*##my##2011-02-07 01:46:52 } */ ?>
    </td>
  </tr>
  <tr>
    <td height="80" valign="top"><?php echo $product_s_desc ?><br />
      <a style="font-size: 9px; font-weight: bold;" href="<?php echo $product_flypage ?>">[<?php echo $product_details ?>...]</a>
    </td>
  </tr>
  <tr>
    <td ><hr /></td>
  </tr>
  <tr>
    <td ><?php echo $product_rating ?></td>
  </tr>
</table>

Смотрю....
*

Gruz

  • Завсегдатай
  • 1275
  • 167 / 3
  • gruz@jabber.org | gruz.org.ua
Включи ошибки http://joomla.org.ua/tips-tricks-tutorials/joomla-howto/280-2011-03-25-09-27-44
Будет видно. что ему не хватает. Я дал пишу для экпериментов, но не готовое решение, ибо его не пробовал.
Життя має дві форми - горіння і гниття!
-
Со мной на "ты" - Вам лень развёрнуто формулировать вопрос? Нам лень отвечать. Правильный вопрос: - Версии J! и проблемного расширения? - Что хотел? - Что пробовал? - Что получилось и что не получилось? - Какие были ошибки?
*

yrygvay

  • Завсегдатай
  • 1293
  • 36 / 3
Появилось

а�б�аЛаАаДаКаА: Using existing Session 7a3255449fc6a98103d8bba83acd3ba1, ID: 7a11k54eb0njgmqi477kdnref82b4b8p.
 
а�б�аЛаАаДаКаА: calculating tax based on vendor address
 
PDFа�аЕб�б�аИб� аДаЛб� аПаЕб�аАб�аИ
 
Смотрю....
*

yrygvay

  • Завсегдатай
  • 1293
  • 36 / 3
Может внесёте так сказать своей рукой могучую правку в код прям  в файлы?

backup.zip
Смотрю....
*

Gruz

  • Завсегдатай
  • 1275
  • 167 / 3
  • gruz@jabber.org | gruz.org.ua
Выделю время и посмотрю у себя на тестовой площадке. Пока не добрался.
Життя має дві форми - горіння і гниття!
-
Со мной на "ты" - Вам лень развёрнуто формулировать вопрос? Нам лень отвечать. Правильный вопрос: - Версии J! и проблемного расширения? - Что хотел? - Что пробовал? - Что получилось и что не получилось? - Какие были ошибки?
*

yrygvay

  • Завсегдатай
  • 1293
  • 36 / 3
Буду очень признателен если у вас появится время для нужной штуки))
Смотрю....
*

Gruz

  • Завсегдатай
  • 1275
  • 167 / 3
  • gruz@jabber.org | gruz.org.ua
Код
<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
mm_showMyFileName(__FILE__);
 ?>
 <table width="100%" cellspacing="0" cellpadding="0" border="0" >
  <tr>
    <td >
        <a style="font-size: 16px; font-weight: bold;" href="<?php echo $product_flypage ?>"><?php echo $product_name ?></a>
    </td>
  </tr>
  <tr>
    <td align="left" nowrap ><?php echo $product_price ?></td>
  </tr>
  <tr>
<?php /*##my12042011142728 {
It was:
    <td ><a href="<?php echo $product_flypage ?>">
          <?php echo ps_product::image_tag( urldecode($product_thumb_image), 'class="browseProductImage" border="0" title="'.$product_name.'" alt="'.$product_name .'"' )?>
       </a>
    </td>
It became:*/
echo '<td >';
$product_image = ps_product::image_tag( $product_thumb_image, 'class="browseProductImage" border="0" title="'.$product_name.'" alt="'.$product_name .'"' ) ;
include_once (VM_THEMEPATH.'templates/common/google_image.php');
$getGoogleImages = new getGoogleImages ;
$getGoogleImages->placeImagesHere(
$product_name,
$product_image_html = $product_image,
$imageblocktitle  ='Вероятное изображения товара из Google',
$width = '150px;',
$height = null,
$numberofimages = 1,
$scroll = 'none',
$show_noimage = false,
$strip_nonlatin = true ,
$before_first_comma=true

);
echo '</td >';
/*##my12042011142728 } */
?>
  </tr>
  <tr>
    <td height="80" valign="top"><?php echo $product_s_desc ?><br />
      <a style="font-size: 9px; font-weight: bold;" href="<?php echo $product_flypage ?>">[<?php echo $product_details ?>...]</a>
    </td>
  </tr>
  <tr>
    <td ><hr /></td>
  </tr>
  <tr>
    <td ><?php echo $product_rating ?></td>
  </tr>
</table>
Життя має дві форми - горіння і гниття!
-
Со мной на "ты" - Вам лень развёрнуто формулировать вопрос? Нам лень отвечать. Правильный вопрос: - Версии J! и проблемного расширения? - Что хотел? - Что пробовал? - Что получилось и что не получилось? - Какие были ошибки?
*

yrygvay

  • Завсегдатай
  • 1293
  • 36 / 3
Заработал чудо агрегат)))))))

+ задумался  как закрыть от индексации ссылки на картинки.. а то сайт получается по идее как решето)))
Смотрю....
*

Gruz

  • Завсегдатай
  • 1275
  • 167 / 3
  • gruz@jabber.org | gruz.org.ua
В google_image.php есть место:
Код
						<b id="<?php echo $i.$google_image; ?>"  ><a class="modal"  style="display:none;" href="/images/blank.png"><img src="/images/blank.png" /></a></b>

Добавь nofolow где надо.
Життя має дві форми - горіння і гниття!
-
Со мной на "ты" - Вам лень развёрнуто формулировать вопрос? Нам лень отвечать. Правильный вопрос: - Версии J! и проблемного расширения? - Что хотел? - Что пробовал? - Что получилось и что не получилось? - Какие были ошибки?
*

yrygvay

  • Завсегдатай
  • 1293
  • 36 / 3
а если у меня стоит в Настройки-Вид-Выберите шаблон для магазина-Product List Style-Flat poduct list  ( и в товар выводится табличкой с мини-картинкой в категории) то как сделать всё это же?
Смотрю....
*

Gruz

  • Завсегдатай
  • 1275
  • 167 / 3
  • gruz@jabber.org | gruz.org.ua
А как не получилось сделать?
Життя має дві форми - горіння і гниття!
-
Со мной на "ты" - Вам лень развёрнуто формулировать вопрос? Нам лень отвечать. Правильный вопрос: - Версии J! и проблемного расширения? - Что хотел? - Что пробовал? - Что получилось и что не получилось? - Какие были ошибки?
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Настройки отображения товара

Автор wectra

Ответов: 2
Просмотров: 2518
Последний ответ 12.07.2017, 22:12:27
от wectra
Несколько изображений для товара/ Лупа для изображения/ Magic Zoom

Автор antoha333

Ответов: 41
Просмотров: 25464
Последний ответ 13.11.2015, 16:08:16
от sonics
Как реализовать на VirtueMart такую карточку товара?

Автор AdmbVlad

Ответов: 0
Просмотров: 1413
Последний ответ 14.10.2015, 17:01:55
от AdmbVlad
Вставить картинку в карточку товара через URL и создать его миниатюру

Автор sashgera

Ответов: 8
Просмотров: 2343
Последний ответ 14.02.2015, 21:12:46
от sashgera
Как изменить сортировку товара ?

Автор Timer

Ответов: 0
Просмотров: 1333
Последний ответ 21.01.2015, 23:49:28
от Timer