天晴小屋 發表於 2023-12-15 00:00:00

dedecms 栏目目录用首字母生成的方法

<span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>修改dede/catalog.add.php文件 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><font color="#ff0000" style='line-height: 25.2px; font-size: 14px; font-family: tahoma, arial, "Microsoft YaHei";'>85行 $toptypedir = GetPinyin(stripslashes($toptypename)); </font><br><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>修改为 $toptypedir = GetPinyin(stripslashes($toptypename),1); </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><font color="#ff0000" style='line-height: 25.2px; font-size: 14px; font-family: tahoma, arial, "Microsoft YaHei";'>108 行 $typedir = $toptypedir.'/'.GetPinyin(stripslashes($v)); </font><br><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>修改为 $typedir = $toptypedir.'/'.GetPinyin(stripslashes($v),1); </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><font color="#ff0000" style='line-height: 25.2px; font-size: 14px; font-family: tahoma, arial, "Microsoft YaHei";'>134行 $toptypedir = GetPinyin(stripslashes($toptypename)); </font><br><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>修改为 $toptypedir = GetPinyin(stripslashes($toptypename),1); </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><font color="#ff0000" style='line-height: 25.2px; font-size: 14px; font-family: tahoma, arial, "Microsoft YaHei";'>187行 $typedir = GetPinyin(stripslashes($typename)); </font><br><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>修改为 $typedir = GetPinyin(stripslashes($typename),1);</span>
頁: [1]
查看完整版本: dedecms 栏目目录用首字母生成的方法