1.
"共執行 38 個查詢,用時 0.066004 秒,在線 2 人,Gzip 已禁用,佔用內存 3.377 MB"
這段代碼是ecshop自帶的功能。但是由於內容基本沒啥作用而且非常長 一些客戶希望刪除,具體位置在
後臺庫項目管理-page_footer.lbi,(具體文件位置在模板目錄library文件夾裏面的page_footer.lbi)
{insert name='query_info'} 這段內容
雖然顯示內容很長但是代碼就這部分,刪除就不會再顯示了。
2、除頂部標題欄"Powered by Ecshop"信息,就是在ie瀏覽器中顯示的版權
找到Ecshop根目錄下面的includes/lib_main.php文件,用txt打開,找到如下代碼:
$page_title = $GLOBALS['_CFG']['shop_title'] . ' - ' . 'Powered by ECShop';
$ur_here = '<a href="." mce_href=".">' . $GLOBALS['_LANG']['home'] . '</a>';
將版權信息換成你想要的,或者乾脆直接刪掉,直至剩下如下代碼:
$page_title = $GLOBALS['_CFG']['shop_title'];
3、修改底部"Powered by Ecshop 2.7"
找到Ecshop根目錄下面的/themes/當前模板名/library/page_footer.lbi文件,用txt打開,找到如下代碼:
insert name='query_info'}<br />
<a href="http://www.ecshop.com" target="_blank" style="font-size:10px">Powered by <strong><span style="color: #3366FF">ECShop</span>
<span style="color: #FF9966">{$ecs_version}</span></strong></a><br />
將網址和版權換成你想要的
此外2.7版本,去除底部的版權,會出現版權信息隨意跳轉的現象,爲了防止這種現象需要做如下操作:
用txt打開js目錄裏的common.js,在txt裏點看右下角,直到顯示的是Ln244.然後從這裏開始刪掉到336行那裏。刪除後保存,剛開始,我是沒注意到下面那個亂飛的版權,現在終於研究明白 了!
找到文件js/common.js
找到第244行:
函數如下:
onload = function()
{
var link_arr = document.getElementsByTagName_r(String.fromCharCode(65));
var link_str;
var link_text;
var regg, cc;
var rmd, rmd_s, rmd_e, link_eorr = 0;
var e = new Array(97, 98, 99,
100, 101, 102, 103, 104, 105, 106, 107, 108, 109,
110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122
);
try
{
for(var i = 0; i < link_arr.length; i++)
{
link_str = link_arr.href;
if (link_str.indexOf(String.fromCharCode(e[22], 119, 119, 46, e[4], 99, e[18], e[7], e[14],
e[15],
46, 99, 111, e[12])) != -1)
{
if ((link_text = link_arr.innerText) == undefined)
{
throw "noIE";
}
regg = new RegExp(String.fromCharCode(80, 111, 119, 101, 114, 101, 100, 46, 42, 98, 121, 46, 42, 69, 67, 83, e[7], e[14], e[15]));
if ((cc = regg.exec(link_text)) != null)
{
if (link_arr.offsetHeight == 0)
{
break;
}
link_eorr = 1;
break;
}
}
else
{
link_eorr = link_eorr ? 0 : link_eorr;
continue;
}
}
} // IE
catch(exc)
{
for(var i = 0; i < link_arr.length; i++)
{
link_str = link_arr.href;
if (link_str.indexOf(String.fromCharCode(e[22], 119, 119, 46, e[4], 99, 115, 104, e[14],
e[15],
46, 99, 111, e[12])) != -1)
{
link_text = link_arr.textContent;
regg = new RegExp(String.fromCharCode(80, 111, 119, 101, 114, 101, 100, 46, 42, 98, 121, 46, 42, 69, 67, 83, e[7], e[14], e[15]));
if ((cc = regg.exec(link_text)) != null)
{
if (link_arr.offsetHeight == 0)