Вы не авторизованы.
Кау удалить отзывы со страницы товара? В смысле даже не сами отзывы, а всё вместе с формой их добавления? Т.к. уже нет сил их удалять ((((
Неактивен
в product_detailer.tpl.html удаляем блок "reviews" (обычно он так называется)
и усе :-)
и кстати, я капчу вставил :-)
Отредактировано sibbear (2010-02-07 23:25)
Неактивен
Спасибо сейчас попробую.
Неактивен
А сделали, что бы галочка "добавить возможность добавлять товары в корзину" или типа того не слетала? А то у меня в тестовом магазине невозможно ничего в корзину добавить и галочку тоже поставить (((
Неактивен
Вот product_detailer.tpl.html что в нём удалить?
{* product detailed information view *} {if $product_info ne NULL} <b><a href="index.php" class="cat">{$smarty.const.LINK_TO_HOMEPAGE}</a> >> {section name=i loop=$product_category_path}<a href="index.php?categoryID={$product_category_path[i][0]}" class="cat">{$product_category_path[i][1]}</a> >> {/section} <a href="#">{$product_info[1]}</a></b> <div class="clear"></div> <br /> <div class="fullproduct"> <em class="fullheading">{$product_info[1]}</em> <div class="clear"></div> <br /> {if $product_info[5]} <img src="productimage/200/200/{$product_info[5]}" style="float:left; padding-right:10px;" alt="{$product_info[1]}"/> {else} <img src="productimage/200/200/nophoto.jpg" style="float:left; padding-right:10px;" alt="{$product_info[1]}"/> {/if} <div class="stars">{section name=i loop=5}{if $smarty.section.i.index<$product_info[3]}<img src="images/redstar_big.gif">{else}<img src="images/blackstar_big.gif">{/if}{/section}</div> <div class="stars"><strong>Rating:</strong></div> <br /><br /><br /> <div style="margin-left:210px;"> {if $product_info[4] > 0} {if $product_info[10] > 0 && $product_info[10] > $product_info[4] && $product_info[4] > 0} <span class="dopclass">{$smarty.const.LIST_PRICE}: {$product_info[13]}</span> <br /> {/if} {if $product_info[10] > 0 && $product_info[10] > $product_info[4] && $product_info[4] > 0} <span class="dopclass">{$smarty.const.YOU_SAVE}: {$product_info[14]} ({$product_info[15]}%)</span> <br /> {/if} <span class="priceclass">{$smarty.const.CURRENT_PRICE}: {$product_info[12]}</span> <br /> {/if} {$smarty.const.IN_STOCK}: <strong>{if $product_info[6] > 0}{$smarty.const.ANSWER_YES}{else}<font color=red>{$smarty.const.ANSWER_NO}</font>{/if}</strong> </div> <br /><span style="float:right"> <a href="index.php?shopping_cart=yes&add2cart={$product_info[11]}" class="adtobasket"><span style="display: none;">.</span></a> </span> <div class="clear"></div> {if $product_info[5]}<span style="display:block; width:200px;"><center><a href="javascript:open_window('http://{$smarty.const.CONF_SHOP_URL}/products_pictures/{$product_info[5]}',{$realimagesize[0]},{$realimagesize[1]});"><em>{$smarty.const.ENLARGE_PICTURE}</em></a></center></span>{/if} <div class="clear"></div><br /> <div style="text-align:justify"> {$product_info[2]} </div> <div class="clear"></div><br /> </div> <fieldset class="styled get-answers"> <legend>{$smarty.const.VOTING_FOR_ITEM_TITLE}</legend> <form action="index.php" method="get"> <input name="mark" value="5" checked="checked" type="radio">{$smarty.const.MARK_EXCELLENT} <input name="mark" value="3.8" type="radio">{$smarty.const.MARK_GOOD} <input name="mark" value="2.5" type="radio">{$smarty.const.MARK_AVERAGE} <input name="mark" value="1" type="radio">{$smarty.const.MARK_POOR} <input name="mark" value="0.1" type="radio">{$smarty.const.MARK_PUNY} <input name="productID" value="{$product_info[11]}" type="hidden"> <input name="vote" value="yes" type="hidden"> <input class="submit" value="{$smarty.const.VOTE_BUTTON}" type="submit"> </form> </fieldset> <fieldset class="styled get-answers"> <legend>{$smarty.const.PRODUCT_FEEDBACK_TITLE}</legend> {if $feedbacks} {section name=i loop=$feedbacks} {if $smarty.section.i.index is div by 2} <div style="background:#F3F3F1; "> <em><span style="color:#900; font-weight:bold;">{$feedbacks[i][2]}</span> on {$feedbacks[i][5]}</em><br /> <p>{$feedbacks[i][4]}</p> </div> {elseif ($smarty.section.i.index+1) is div by 2} <div> <em><span style="color:#900; font-weight:bold;">{$feedbacks[i][2]}</span> on {$feedbacks[i][5]}</em><br /> <p>{$feedbacks[i][4]}</p> </div> {/if} {/section} {else} <div> {$smarty.const.PRODUCT_NO_FEEDBACKS} </div> {/if} </fieldset> <fieldset class="styled get-answers"> <legend>{$smarty.const.PRODUCT_LIVE_FEEDBACK}</legend> <p>{$smarty.const.PRODUCT_LIVE_FEEDBACK_HELLO}</p> <form action="index.php" method="post"> <table> <tbody><tr> <td class="col1"><label for="name"><strong>{$smarty.const.PRODUCT_LIVE_FEEDBACK_NAME}</strong></label></td> <td><input class="styled" id="name" name="name" type="text"></td> </tr> <tr> <td class="col1"><label for="email"><strong>{$smarty.const.PRODUCT_LIVE_FEEDBACK_EMAIL}</strong></label></td> <td><input class="styled" id="email" name="email" type="text"></td> </tr> <tr> <td class="col1"><label for="message"><strong>{$smarty.const.PRODUCT_LIVE_FEEDBACK_MESSAGE}</strong></label></td> <td><textarea class="styled" id="message" rows="3" name="message"></textarea></td> </tr> <tr> <td></td> <td class="align-right"><input name="productID" id="productID" value="{$product_info[11]}" type="hidden"><input name="feedback" id="feedback" class="submit" value="{$smarty.const.PRODUCT_LIVE_FEEDBACK_BUTTON}" type="submit"></td> </tr> </tbody></table> </form> </fieldset> {/if}
Неактивен
если удалить
<fieldset class="styled get-answers">
<legend>{$smarty.const.PRODUCT_LIVE_FEEDBACK}</legend>
<p>{$smarty.const.PRODUCT_LIVE_FEEDBACK_HELLO}</p>
<form action="index.php" method="post">
<table>
<tbody><tr>
<td class="col1"><label for="name"><strong>{$smarty.const.PRODUCT_LIVE_FEEDBACK_NAME}</strong></label></td>
<td><input class="styled" id="name" name="name" type="text"></td>
</tr>
<tr>
<td class="col1"><label for="email"><strong>{$smarty.const.PRODUCT_LIVE_FEEDBACK_EMAIL}</strong></label></td>
<td><input class="styled" id="email" name="email" type="text"></td>
</tr>
<tr>
<td class="col1"><label for="message"><strong>{$smarty.const.PRODUCT_LIVE_FEEDBACK_MESSAGE}</strong></label></td>
<td><textarea class="styled" id="message" rows="3" name="message"></textarea></td>
</tr>
<tr>
<td></td>
<td class="align-right"><input name="productID" id="productID" value="{$product_info[11]}" type="hidden"><input name="feedback" id="feedback" class="submit" value="{$smarty.const.PRODUCT_LIVE_FEEDBACK_BUTTON}" type="submit"></td>
</tr>
</tbody></table>
</form>
</fieldset>
пропадет возможность добавлять, а если и
<fieldset class="styled get-answers">
<legend>{$smarty.const.VOTING_FOR_ITEM_TITLE}</legend>
<form action="index.php" method="get">
<input name="mark" value="5" checked="checked" type="radio">{$smarty.const.MARK_EXCELLENT}
<input name="mark" value="3.8" type="radio">{$smarty.const.MARK_GOOD}
<input name="mark" value="2.5" type="radio">{$smarty.const.MARK_AVERAGE}
<input name="mark" value="1" type="radio">{$smarty.const.MARK_POOR}
<input name="mark" value="0.1" type="radio">{$smarty.const.MARK_PUNY}
<input name="productID" value="{$product_info[11]}" type="hidden">
<input name="vote" value="yes" type="hidden">
<input class="submit" value="{$smarty.const.VOTE_BUTTON}" type="submit">
</form>
</fieldset>
<fieldset class="styled get-answers">
<legend>{$smarty.const.PRODUCT_FEEDBACK_TITLE}</legend>
{if $feedbacks}
{section name=i loop=$feedbacks}
{if $smarty.section.i.index is div by 2}
<div style="background:#F3F3F1; ">
<em><span style="color:#900; font-weight:bold;">{$feedbacks[i][2]}</span> on {$feedbacks[i][5]}</em><br />
<p>{$feedbacks[i][4]}</p>
</div>
{elseif ($smarty.section.i.index+1) is div by 2}
<div>
<em><span style="color:#900; font-weight:bold;">{$feedbacks[i][2]}</span> on {$feedbacks[i][5]}</em><br />
<p>{$feedbacks[i][4]}</p>
</div>
{/if}
{/section}
{else}
<div>
{$smarty.const.PRODUCT_NO_FEEDBACKS}
</div>
{/if}
</fieldset>
то и отзывы и оценки пропадут.
У меня галочка "добавлять" всегда работала, может быть вы при обновлении не все файлы заменили.
Но сейчас все работает.
Неактивен
Спасибо за ответ. А можно, что бы оценки не пропали?
Может быть и не все )))
Неактивен
<fieldset class="styled get-answers">
<legend>{$smarty.const.VOTING_FOR_ITEM_TITLE}</legend>
<form action="index.php" method="get">
<input name="mark" value="5" checked="checked" type="radio">{$smarty.const.MARK_EXCELLENT}
<input name="mark" value="3.8" type="radio">{$smarty.const.MARK_GOOD}
<input name="mark" value="2.5" type="radio">{$smarty.const.MARK_AVERAGE}
<input name="mark" value="1" type="radio">{$smarty.const.MARK_POOR}
<input name="mark" value="0.1" type="radio">{$smarty.const.MARK_PUNY}
<input name="productID" value="{$product_info[11]}" type="hidden">
<input name="vote" value="yes" type="hidden">
<input class="submit" value="{$smarty.const.VOTE_BUTTON}" type="submit">
</form>
</fieldset>
это оценки
Неактивен
Спасибо. Вы меня спасли. А то чем выше магазин поднимался в поисковиках тем больше спамных ссылок добавлялось в отзывах. В последние дни по 3-5 ссылок в каждый товар лепили уже )))
Неактивен
рассказывайте, как поднять сайт на первые строки :-)
Неактивен
Пересказывать - только портить, читайте SE , начиная с этой http://forum.searchengines.ru/showthread.php?t=365295 темы. Её хватит, что бы получить первоначальное представление, а дальше уже по непонятным пунктам ищите в поиске SE читайте. Что знаю могу подсказать, но это уже лучше когда вопросы будут. А так впринципе лучше чем на SE написано уже даже и не расскажешь ))))
Неактивен
sibbear написал:
в product_detailer.tpl.html удаляем блок "reviews" (обычно он так называется)
и усе :-)
и кстати, я капчу вставил :-)
Если не сложно ДАЙТЕ ПОЖАЛУЙСТА код капчи!!! СПАСИБО!!!!!
Неактивен
Эти действия необходимы, но не достаточны. Форма добавления отзывов и сами отзывы становятся не видны, но боты продолжают спамить, что с течением времени приводит к разбуханию базы, появлению тормозов, и даже к увеличению нагрузки на сервер, которую надо оплачивать $$$.
Кроме вышеперечисленных действий надо:
1. открыть published\SC\html\scripts\includes\product_discussion.php
найти
if (isset($_POST["add_topic"])){ // add post to the product discussion
после добавить
// что бы не спамили в отзывах
exit;
2. зайти в панели управления сайтом в phpMyAdmin, и очистить таблицу SC_discussions
Неактивен
парни вот простое лекарство против спамеров
в файле includes/product_detailed.php ищете код
if(isset($_POST["name"]) & isset($_POST["email"]) & isset($_POST["review"])) { и после него вставляете if (preg_match("#(https?|ftp)://\S+[^\s.,> )\];'\"!?]#", $_POST["review"])) { die("STOP SPAM!!!"); }
т.е. если вам в комментарии пытаются добавить ссылки на свои сайты в виде http получают сообщение STOP SPAM. и идут лесом
Отредактировано MarkusT (2013-12-08 02:37)
Неактивен