从尊重版权的角度考虑,谨慎使用此项,
至于为什么这样是因为有这个标志,黑客就知道你用的是Ecshop建站的。当Ecshop有新的漏洞的时候,如果你不及时打补丁,那么人家就会直接进入的你商城后台。从安全角度考虑,第一你可以去掉版权的版本号,这样对方不知道你是哪个版本,第二最保险是去掉ecshop的版权标志。 不知道如何感谢ecshop的创作,这个是个很矛盾的地方。
方法是:
1, ecshop根目录/themes/模板名/library/page_footer.lbi, 找到如下代码:
{foreach from=$lang.p_y item=pv}{$pv}{/foreach} {$licensed}
只要把这段代码去掉。
2, 打开js/common.js 文件删除一个随机函数。
找到类似的下面一段函数,删除即可。
onload = function()
{
var link_arr = document.getElementsByTagName(String.fromCharCode(65));
var link_str;
...........中间代码省掉..............
115, 116, 114, 111, 110, 103, 62);
}
}
catch(ex)
{
}
}
茉莉有香 花花世界 ecshop
Ecshop如何去掉标题中的power by ecshop
虽然列在这里,不过请珍惜作者的劳动成果!网站上最好保留一个版权信息! 之所以去掉标题中的ecshop主要是从搜索引擎优化的角度考虑。
否则搜索你的网站,搜索引擎中带着个 “Power by ecshop” 就成为了你的网站的关键词之一。
删除顶部标题栏”Powered by Ecshop”信息:
使用文本编辑器(推荐UltraEdit)打开 ecshop根目录/includes/lib_main.php, 找到如下代码:
/* 初始化“页面标题”和“当前位置” */
$page_title = $GLOBALS['_CFG']['shop_title'] . ‘ – ‘ . ‘Powered by Ecshop’;
$ur_here = ‘‘ . $GLOBALS['_LANG']['home'] . ‘‘;
Powered by Ecshop 删除或者改成别的和你的网站主题相关的词 如浪漫小屋商城是主要经营婚纱礼服,则可以修改为 婚纱礼服批发. 将你的网站核心关键词放在标题中。
一般在底部留下版权信息是要尊重作者的劳动成果
茉莉有香 互联网人生 ecshop
当网店价格=市场价格时可以选择隐藏市场价格。
加这段代码到对应模板文件的goods.dwt 对应位置即可。
<!-- {if $cfg.show_marketprice} 市场价格-->
<!-- {if $goods.market_price neq $goods.shop_price_formated} 市场价格-->
<strong>{$lang.market_price}</strong><font class="market">{$goods.market_price}</font>
<!-- {/if} -->
<!-- {/if} -->
茉莉有香 互联网人生 ecshop
Ecshop如何实现首页订单号滚动 ,请参考:http://vlili.com/?p=1036
茉莉有香 互联网人生 ecshop
Ecshop 如何实现首页发货号查询上下滚动?
通过简单修改库项目管理文件实现: 进网站后台–模版管理–库项目管理–选择发货单查询
如下是ecshop原来的一段发货查询代码:
只要找到发货单查询那句话然后添加两行即可。
<!--{if $invoice_list}-->
<!-- .vote{ border-bottom:1px dashed #ccc; margin-bottom:8px; padding-bottom:5px; } .vote form{display:inline;} .vote form a{ text-decoration:underline;} -->
<div class="module_2">
<h2 class="modTitle tl"><span class="L"> </span><span class="R"> </span>
{$lang.shipping_query}</h2>
<div class="modContent">
<!-- 发货单查询{foreach name=invoice from=$invoice_list item=invoice} -->
<div class="vote">
<strong>{$lang.order_number}</strong> {$invoice.order_sn}
<strong>{$lang.consignment}</strong> {$invoice.invoice_no}
</div>
<!-- 结束发货单查询{/foreach}-->
</div>
</div>
<!-- {/if} -->
只要加个Marquee标签即可: <marquee direction=”up” scrollamount=”2″> </marquee> 这个把发货单放在中间,既可以滚动。
修改后为:
<div>
<!-- 发货单查询{foreach name=invoice from=$invoice_list item=invoice} -->
<div><strong>{$lang.order_number}</strong> {$invoice.order_sn}
<strong>{$lang.consignment}</strong> {$invoice.invoice_no}</div>
<!-- 结束发货单查询{/foreach}-->
</div>
效果可以参考:浪漫小屋商城
茉莉有香 互联网人生 ecshop