ecshop如何去掉标题和底部版权Powered ECShop

ecshop如何去掉标题和底部版权Powered ECShop

相信大家使用ecshop做网店的时候,都对页面上出现的powered by ecshop不爽,想去掉这个信息,但是有的时候去掉却挺难找对地方,今天和大家分享下,如何去掉ecshop标题和底部的powered by ecshop信息.

不过如果有可能的话,还是最好保留着吧,毕竟现在大多数都不会去买商业授权,免费用的,那么有可能的话还是尊重下ecshop的劳动成果.

一.去掉标题栏的’Powered by ECShop’

打开$documentRoot/includes/lib_main.php文件;

<br />
#找到:<br />
$page_title = $GLOBALS['_CFG']['shop_title'] . ' - ' . 'Powered by ECShop';</p>
<p>#改为:<br />
$page_title = $GLOBALS['_CFG']['shop_title'];<br />

二.去除底部的’Powered by ECShop’;

很多朋友想直接删除themes/default/library/page_footer.lbi文件中的代码:{foreach from=$lang.p_y item=pv}{$pv}{/foreach}{$licensed}<br/> ,然而删除后’Powered by ECShop’就会在网页中乱跑,故而无法实现我们的效果。

打开$documentRoot/js/common.js文件;

将该文件第261行到第353行代码删除:

<br />
onload = function()<br />
{<br />
    var link_arr = document.getElementsByTagName(String.fromCharCode(65));<br />
    var link_str;<br />
    var link_text;<br />
    var regg, cc;<br />
    var rmd, rmd_s, rmd_e, link_eorr = 0;<br />
    var e = new Array(97, 98, 99,<br />
                      100, 101, 102, 103, 104, 105, 106, 107, 108, 109,<br />
                      110, 111, 112, 113, 114, 115, 116, 117, 118, 119,<br />
                      120, 121, 122<br />
                      );</p>
<p>  try</p>
<p>    ......</p>
<p>  }<br />
  catch(ex)<br />
  {<br />
  }<br />
}</p>
<p>/* *<br />
 * 夺宝奇兵最新出价<br />
 */<br />

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.