producttags 产品标签模块

用于收藏精华贴子、网友共享的资料等。可以回复,不能发新贴。

版主: daimadaquan

版面规则
本版面不能发新贴,可以回复

producttags 产品标签模块

帖子lzj87980239 » 2010-09-28 22:27

大家都看得到有一个很好看的又很实用的功能,叫做producttags,他的功能就是在网页底部显示26英文字母,当用户点击其中的一个的时候,就查找出来所有以这个字母开头的产品。
  其实,这个功能对客户不是很有用,但是对SEO来说可是非常之有用,因为它可以为你的网站添加很多的收录。

1 . 重命名 / includes / templates / YOUR_TEMPLATE / 文件夹名称为网站当前模板名称 .
2 . 上传 / includes / 到网站根目录并覆盖原文件
3 . 复制tpl_footer.txt代码到 /includes/templates/网站当前模板名称/common/tpl_footer.php
合适位置
OK .
includes.zip
(11.2 KiB) 被下载 508 次
头像
lzj87980239
高级会员
高级会员
 
帖子: 132
注册: 2010-03-25 16:46
QQ 帐号: 540025825

Re: producttags 产品标签模块

帖子lzj87980239 » 2010-09-28 23:29

再在.htaccess这个文件里加上
RewriteRule ^producttags/([-\w]+)/$ index\.php?main_page=producttags&letter=$1&%{QUERY_STRING} [L]
RewriteRule ^producttags/([\w])/([0-9]+).html$ index\.php?main_page=producttags&letter=$1&page=$2&%{QUERY_STRING} [L]
RewriteRule ^wishlist/$ index\.php?main_page=wishlist [L]
RewriteRule ^wishlist/([\w])/$ index\.php?main_page=wishlist&letter=$1&%{QUERY_STRING} [L]
RewriteRule ^wishlist/([\w])/([0-9]+).html$ index\.php?main_page=wishlist&letter=$1&page=$2&%{QUERY_STRING} [L]
# For Open Operations Info Manager
RewriteRule ^(.*)-i-([0-9]+).html$ index\.php?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L]
头像
lzj87980239
高级会员
高级会员
 
帖子: 132
注册: 2010-03-25 16:46
QQ 帐号: 540025825

Re: producttags 产品标签模块

帖子xiao_min » 2010-10-02 11:06

谢谢分享
头像
xiao_min
VIP会员
VIP会员
 
帖子: 339
注册: 2010-06-08 11:17

Re: producttags 产品标签模块

帖子fish1449 » 2010-10-09 9:55

支持一个 一直不知道这个对SEO有帮助。
fish1449
新手上路
新手上路
 
帖子: 12
注册: 2010-07-27 11:29
QQ 帐号: 122600041

Re: producttags 产品标签模块

帖子mov22956 » 2010-10-10 15:26

tpl_footer.txt
压缩包里没有你说的这个文件呀?
mov22956
新手上路
新手上路
 
帖子: 11
注册: 2010-04-10 8:40

Re: producttags 产品标签模块

帖子Meteor Wish » 2010-10-12 0:07

是啊,压缩包里没有tpl_footer.txt 这个文件啊,那要怎么弄啊?
Meteor Wish
新手上路
新手上路
 
帖子: 14
注册: 2010-08-30 13:23
QQ 帐号: 670404138

Re: producttags 产品标签模块

帖子bindy1986 » 2010-10-14 10:46

是啊
头像
bindy1986
中级会员
中级会员
 
帖子: 95
注册: 2010-02-24 10:52
QQ 帐号: 59914465

Re: producttags 产品标签模块

帖子zhjhqk » 2010-10-14 11:38

没有文件啊!
zhjhqk
VIP会员
VIP会员
 
帖子: 394
注册: 2010-09-21 10:16

Re: producttags 产品标签模块

帖子xiao_min » 2010-10-18 13:39

<!-- bof productTags-->
<div style="width:100%;margin:10px 0;text-align:center">Product Tags:
<?php
// display productTagList
foreach(range('a', 'z') as $letter) {
echo '<a class="blue b_" target="_top" href="' .
HTTP_SERVER.DIR_WS_CATALOG.'producttags/'.$letter.'/" >'.strtoupper
($letter).'</a> ';
}
echo '<a class="blue b_" target="_top" href="' .
HTTP_SERVER.DIR_WS_CATALOG.'producttags/0-9/" >0-9</a> ';
echo '<a class="blue b_" target="_top" href="' . HTTP_SERVER.DIR_WS_CATALOG.'wishlist/"
>WishList</a> ';
?>
</div>
<!-- eof productTags-->
头像
xiao_min
VIP会员
VIP会员
 
帖子: 339
注册: 2010-06-08 11:17

Re: producttags 产品标签模块

帖子zyzlee » 2010-10-25 8:46

搞不定啊 没办法显示

The page you tried to access does not exist on this server. This page may not exist due to the following reasons:

You are the owner of this web site and you have not uploaded (or incorrectly uploaded) your web site. For information on uploading your web site using FTP client software or web design software, click here for FTP Upload Information.

The URL that you have entered in your browser is incorrect. Please re-enter the URL and try again.

The Link that you clicked on incorrectly points to this page. Please contact the owner of this web site to inform them of this situation.
zyzlee
新手上路
新手上路
 
帖子: 19
注册: 2010-07-08 14:03
QQ 帐号: 53584321

下一页

回到 精华共享

在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客