-
ecshop内页关键词的实现如:search.php?intro=best,flow.php,message.php的改进
- 打开includes/lib_main.php
- 找到函数:function
assign_ur_here( $cat= $str0, = '') - elseif
( 'exchange'== $filename) -
{ -
= $GLOBALS['_LANG']['exchange']. '_'. $page_title; -
= => '0'); -
.= <code>></code> <a href="exchange.php">' . -
. '</a>'; -
} -
-
-
( 'search'== $filename)//获取当前页的地址参数...如:search.php?intro=best得到search -
{ -
= base64_decode(trim($_GET['encode'])));//对search.php产生的随机编码URL进行固定解码...unserialize( -
= $action['intro']; -
== 'best[L]'){//热卖类内页如:search.php?intro=best 得到best -
= "" ;//这里就是您的关键词 -
= "" ;//这里是您的描述 -
} -
} -
( 'flow'== $filename)//获取当前页的地址参数...如:flow.php得到flow -
{ -
= "flow";//这里就是您的关键词 -
= "flow";//这里是您的描述 -
} -
( 'message'== $filename)//获取当前页的地址参数...如:message.php得到message -
{ -
= "message";//这里就是您的关键词 -
= "message";//这里是您的描述 -
} -
-
-
array('title' => $page_title,'ur_here' => $ur_here, -
$keywords,'description' => $description); -
-
-
基本上的功能已经实现,你可以在需要参数的代码中增加: -
$position['keywords']); -
页面描述
已投稿到: |
|
---|