网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 网站建设 > Blog(博客)/Wiki(维客)/RSS/Cms
User Name
Password
 
FAQ Members List Calendar Cheap Glasses Mark Forums Read

Blog(博客)/Wiki(维客)/RSS/Cms Blog(博客)/、Wiki(维客)、RSS、Cms等WEB 2.0相关技术讨论专区。

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2   IP: 117.95.51.44
Old 2010-03-27, 11:29 PM
topvip topvip is offline
超级版主
 
Join Date: 2006-01-04
Posts: 1206
topvip 正向着好的方向发展
Default

DedeCMS SEO优化 文章扩展名改成标题拼音并去掉id
选择:网站栏目管理,修改栏目的高级选项,文章命名规则:{typedir}/{Y}{M}{D}/{aid}.html 这是默认的状态
修改为:{typedir}/{pinyin}.html
修改include里面的channelunit_func.php文件,找到$articleRule = str_replace("{pinyin}",GetPinyin($title)."_".$aid,$articleRule);把."_".$aid去掉,就可以了!

如果文章标题是英文的,会在单词之间加_,但是单词中间加_对gg来说没什么意义,必须改成“-”才可以,修改方法如下

打开 include/inc/inc_fun_funAdmin.php

for($i=0;$i<$slen;$i++){
if(ord($str[$i])>0x80)
{
$c = $str[$i].$str[$i+1];
$i++;
if(isset($pinyins[$c])){
if($ishead==0) $restr .= $pinyins[$c];
else $restr .= $pinyins[$c][0];
}else $restr .= "-";
}else if( eregi("[a-z0-9]",$str[$i]) ){ $restr .= $str[$i]; }
else{ $restr .= "-"; }
修}改
$restr .= "-"; 这些东西

Last edited by topvip : 2010-03-27 at 11:37 PM
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
想在dedecms内容页加入GG广告..应该修改哪个文件呢 topvip Blog(博客)/Wiki(维客)/RSS/Cms 0 2007-06-06 07:53 AM
在dedecms文章页里,文章内容包含栏目名称的话,自动加上链接地址 topvip Blog(博客)/Wiki(维客)/RSS/Cms 0 2007-06-06 07:37 AM
怎么去掉dedecms栏目文章标题后面的日期啊! topvip Blog(博客)/Wiki(维客)/RSS/Cms 0 2007-06-06 07:35 AM

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 10:40 PM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.