您当前的位置: 首页 > 技术文章 > 编程语言

Discuz!X1.5模板机制解析

作者:licqi 时间:2011-03-10阅读数:人阅读
[php]discuzx1.0templatedefault --common --forum --group --home --memeber --portal --search --加个模板细略图:preview.jpg[/php] common分析占楼编辑ing ---common ---images 包含各种按钮、默认图片 额外:logo等等 ---包含一些模板文件+css文件 主要列表(只写主要) header//头部 ---隔壁还有个ajax(footer_ajax.htm)diy(header_diy.htm) ---代码分析 [html]common分析占楼编辑ing ---common ---images 包含各种按钮、默认图片 额外:logo等等 ---包含一些模板文件+css文件 主要列表(只写主要) header//头部 ---隔壁还有个ajax(footer_ajax.htm)diy(header_diy.htm) ---代码分析[/html] 仍然是title开始~可以自己改改~(不建议去掉 - Powered by Discuz!) [html]仍然是title开始~可以自己改改~(不建议去掉 - Powered by Discuz!)[/html] 链接一css文件(我还第一次看到有拉出来css的) [html]<a id="diy-tg" href="javascript:;" title="打开 DIY 面板"><img src="static/image/common/diy/panel-toggle.png" alt="DIY" /></a>[/html] 控制diy按钮 [html]<h2><a href="index.php" title="$_G['setting']['bbname']"><img alt="$_G['setting']['bbname']" src="template/default/common/images/logo.png" /></a></h2>[/html] 控制logo(那个discuzx) [html]<ul> <li><label><input type="radio" class="pr" name="mod" value="portal" /> 门户</label></li> <li><label><input type="radio" class="pr" name="mod" value="forum" checked="checked" /> 论坛</label></li> <li><label><input type="radio" class="pr" name="mod" value="blog" /> 日志</label></li> <li><label><input type="radio" class="pr" name="mod" value="album" /> 相册</label></li> <li><label><input type="radio" class="pr" name="mod" value="group" /> 群组</label></li> </ul>[/html] 导航栏文字 [html]<span class="pipe">|</span><a href="home.php?mod=space&do=pm" id="pm_ntc"<!--{if $_G[member][newpm]}-->class="new"<!--{/if}-->>{lang pm_center}<!--{if $_G[member][newpm]}-->($_G[member][newpm])<!--{/if}--></a>[/html] 短信息 [html]<a href="member.php?mod=register" class="noborder">$_G['setting']['reglinkname']</a>[/html] 这个是注册的连接 [html]<span class="pipe">|</span><a href="member.php?mod=logging&action=login">{lang login}</a>[/html] 登陆的连接 footer//页脚 ---footer包含文件(footer_ajax.htm) [html]<div id="frt"> <p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em>$_G['setting']['version']</em><!--{if !empty($_G['setting']['boardlicensed'])}--> <a href="http://license.comsenz.com/?pid=1&host=$_SERVER[HTTP_HOST]" target="_blank">Licensed</a><!--{/if}--></p> <p class="xs0">&copy; 2001-2010 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p> </div>[/html] 版权声明们(可改但本人不提倡修改‘删去) 主要有pw by discuz和那个公司名 [html]<!--{if $_G['setting']['icp']}-->( <a href="http://www.miibeian.gov.cn/" target="_blank">$_G['setting']['icp']</a>)<!--{/if}-->[/html] 备案号的设定(改改就不用连接到备案的网站了) [html]<!--{if $_G['setting']['wapstatus']}--><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><!--{/if}-->[/html] wap的连接设定 [html]<!--{if $_G['setting']['adminemail']}--><span class="pipe">|</span><a href="mailto:_G['setting']['adminemail']">{lang contactus}</a><!--{/if}-->[/html] 联系我们的设定“这里可以设定改改大小或颜色” [html]<strong><a href="$_G['setting']['siteurl']" target="_blank">$_G['setting']['sitename']</a></strong>[/html] 本站名称加连接(一样大小,颜色等可改) ---inveie.htm 可轻松更改邀请的文字(替换即可) ------userabout.htm 右侧我的中心的文件 -------------------*forum论坛的模板文件 -----discuz.htm 论坛首页文件 [html] <tr> <th>$todayposts 今日发帖</th> <th>$postdata[0] 昨日发帖</th> <td>$_G['setting']['totalmembers'] {lang index_members}</td> </tr> [/html] 今天发帖什么的~ [html]<li class="y"><a href="home.php?mod=space&uid=$_G[uid]&do=thread&view=all" title="{lang show_newthreads}">新帖 ›</a> </li>[/html]

本站所有文章、数据、图片均来自互联网,一切版权均归源网站或源作者所有。

如果侵犯了你的权益请来信告知我们删除。邮箱:licqi@yunshuaiweb.com

加载中~
如果您对我们的成果表示认同并且觉得对你有所帮助可以给我们捐赠。您的帮助是对我们最大的支持和动力!
捐赠我们
扫码支持 扫码支持
扫码捐赠,你说多少就多少
2
5
10
20
50
自定义
您当前余额:元
支付宝
微信
余额

打开支付宝扫一扫,即可进行扫码捐赠哦

打开微信扫一扫,即可进行扫码捐赠哦

打开QQ钱包扫一扫,即可进行扫码捐赠哦