wenus

C# 学习的点点滴滴

博客园 首页 新随笔 联系 订阅 管理

2012年4月11日 #

摘要: <a href="http://v.t.qq.com/share/share.php?title=<?=urlencode(iconv('gb2312','utf-8//IGNORE',$navinfor['title']));?>&url=[--titleurl--]&site=[--news.url--]&pic=[!--titlepic--]" target="_blank" title="分享到腾讯微博"><img src=& 阅读全文
posted @ 2012-04-11 23:29 wenus 阅读(152) 评论(0) 推荐(0) 编辑

摘要: 修改t_functions.php中$str.=$jg.'<a href="'.$public_r[newsurl].'e/tags/?tagname='.urlencode($r[$i]).$cs.'" target="_blank">'.$r[$i].'</a>'.$br;改为 $str.=$jg.'<a href="'.$public_r[newsurl].'e/tags/?tagname='.$r[$i].$cs 阅读全文
posted @ 2012-04-11 23:28 wenus 阅读(463) 评论(0) 推荐(0) 编辑

摘要: 栏目ID是递增的,不可以改变,但可以清空从零开始,前提是你所有栏目都不要了。进入phpmyadmin操作你的帝国数据库,勾选“phome_enewsclass”这个表,选择清空 阅读全文
posted @ 2012-04-11 23:25 wenus 阅读(173) 评论(0) 推荐(0) 编辑

摘要: 用自定义列表实现可分页的DIGG排行,统计记录默认即可,数据库的查询记录如下。DIGG排行查询记录:select * from [!db.pre!]ecms_news where checked=1 order by diggtop desc点击排行查询记录:select * from [!db.pre!]ecms_news where checked=1 order by onclick desc 阅读全文
posted @ 2012-04-11 23:25 wenus 阅读(155) 评论(0) 推荐(0) 编辑

摘要: <?php$members=$empire->gettotal("select count(*) as total from phome_enewsmember");$newmember=$empire->fetch1("select userid,username from phome_enewsmember order by userid desc limit 1");?>会员总人数:<?=$members?><br>最新会员:<?=$newmember[username]?> 阅读全文
posted @ 2012-04-11 23:23 wenus 阅读(249) 评论(0) 推荐(0) 编辑

摘要: 帝国cms内容页某个字段没有填写就不显示的解决方法<?phpif($navinfor[字段名]){?>现在字段<?}else{?>不显示<?}?> 阅读全文
posted @ 2012-04-11 23:20 wenus 阅读(371) 评论(0) 推荐(0) 编辑

摘要: 帝国cms会员注册页跳过选择注册会员类型修改e/class/user.php将$changeregisterurl="ChangeRegister.php";修改为$changeregisterurl="";本文转自赛逗网,原文地址:http://www.saidouwang.com/CMS/Empire/020161U2012.html 阅读全文
posted @ 2012-04-11 23:15 wenus 阅读(354) 评论(0) 推荐(0) 编辑