繁體
|
簡體
Sclub交友聊天~加入聊天室當版主
(檢舉)
分享
新浪微博
QQ空间
人人网
腾讯微博
Facebook
Google+
Plurk
Twitter
Line
首页
搜索
模板修改
风格修改
板块导航
闲聊灌水
搜索
搜索
游客
爱秀代码
游客仅可浏览部分版块
请登录解锁全部权限
首页
搜索
模板修改
风格修改
板块导航
闲聊灌水
登录
注册
首页
/
模板修改
模板修改
15
主题 ·
119
帖子
全部
精华
最新
热门
最多阅读
2026-10-4
置顶
Joe 风格安装教程(Discuz! 7.2 GBK)
# Joe 风格安装教程(Discuz! 7.2 GBK) 本教程教你把 Joe 风格安装到自己的 Discuz! 7.2 论坛,与论坛原有风格**完全隔离**:安装期间原风格照常运行,随时可一键切回。 - 适用版本:Discuz! 7.2(GBK 编码,BIG5/UTF-8 站请勿用) - 套系目录:`templates/dz7joe` - 需要权限:后台管理员(风格导入、模板编辑、数据库升级) - 预计时间:30 分钟(主要是逐份粘贴模板) 安装前请先在后台备份数据库一次,有备无患。 --- ## 第一步:导入风格 XML 1. 下载附件 `discuz_style_dz7joe.xml`(文件为 GBK 编码,**不要用记事本转存成 UTF-8**,也不要改文件名)。 1044 2. 后台 → 界面 → 风格管理 → **导入风格**,选择该 XML 上传,提交。 3. 成功后风格列表出现「Joe风格」,模板管理里出现 **dz7joe** 套系。 此时它只是一个**空壳**,网站外观没有任何变化,**先不要启用**。 > 若提示目录创建失败(极少数主机禁了建目录权限),停止安装并联系发布者,不要手动改 XML 里的目录名硬闯。 ## 第二步:创建聊天室数据表(需要聊天室才做,不需要可跳过) 后台 → 工具/数据库 → 升级(或 phpMyAdmin),执行以下 SQL。**注意把 `cdb_` 换成你自己的表前缀**,其余原样,CHARSET=utf8 不要改: CREATE TABLE `cdb_chatroom` ( `pid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `uid` int(10) unsigned NOT NULL DEFAULT '0', `username` varchar(15) NOT NULL DEFAULT '', `message` text NOT NULL, `dateline` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`pid`), KEY `dateline` (`dateline`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; ## 第三步:逐份粘贴套系模板(核心步骤) 后台 → 界面 → 模板管理(模板编辑)→ 选择 **dz7joe** 套系 → 新建模板,名字填下表"模板名"(**不带 .htm 后缀**),内容粘贴发布者提供的对应文件全文,提交。 **必须按下表顺序操作**:大括号 `{subtemplate}` 引用的子模板要先保存,父模板后保存,顺序反了会编译报错。每批保存完再做下一批。 ### 第 1 批:基础库和公共片段(6 个) | 模板名 | 作用 | |---|---| | css_append | 全部样式(内容最长,粘贴后确认 textarea 完整再提交) | | joe_auth_css | 登录/注册页样式 | | jquery_331 | jQuery 库 | | swiper | 轮播库(header 直接以 script src 引用) | | clipboard | 复制库(备用库,当前页面未加载,需要复制功能时在 header 加一行 script 引用即可) | | joe_global_js | 全站公共 JS | ### 第 2 批:自定义页面与边栏(4 个) | 模板名 | 作用 | |---|---| | about | 关于页(?icode=about) | | page_forumdisplay | 板块导航页(?icode=forumdisplay) | | page_darkroom | 小黑屋页(?icode=darkroom) | | side | 全站边栏 | ### 第 3 批:头尾框架(2 个) | 模板名 | 作用 | |---|---| | header | 页头 | | footer | 页脚 | ### 第 4 批:业务页面(23 个) | 模板名 | 作用 | |---|---| | discuz | 首页(务必在 header 之后保存) | | joe_index_js | 首页 JS(discuz 引用,紧跟 discuz) | | forumdisplay | 板块帖子列表页 | | viewthread | 帖子详情页 | | joe_post_js | 帖子页 JS | | post | 发帖/回帖页 | | login / register | 登录 / 注册 | | nopermission / showmessage | 无权限提示 / 消息提示页 | | my | 个人中心 | | my_threads / my_buddylist / my_favorites | 我的主题 / 好友 / 收藏 | | pm / pm_node / pm_send | 私信列表 / 消息节点 / 发私信浮窗 | | memcp_profile | 个人资料(含头像上传与签名适配) | | notice | 通知页 | | search / search_threads | 搜索页 / 结果 | | viewpro_classic | 个人资料卡 | | discuzcode | 帖子内容与表情渲染 | 没有列出的模板不用建,Discuz 会自动使用默认模板。 ## 第四步:安装 default 默认包文件(聊天室功能,4 项) 这几个文件属于**默认模板包**(所有风格共用),不在 dz7joe 套系里。后台模板编辑切到 **default(默认模板)** 分类操作: 1. 新建模板 **joe_chatroom_api**,粘贴对应文件全文; 2. 新建模板 **joe_chatroom**,粘贴对应文件全文; 3. 编辑 **faq** 模板:在文件**第一行**加上下面这一行后保存(如果你以前改过 faq,只加这一行即可,其他内容不动): {subtemplate joe_chatroom_api} 4. 编辑默认模板的 **header**,在 `</head>` 之前加一行: <script type="text/javascript" src="templates/default/joe_chatroom.htm"></script> 不需要聊天室的论坛可跳过本步整节。 ## 第五步:配置"其他头部信息" 后台 → 全局/界面设置 → 站点信息里的「其他头部信息」(seohead)框,填入一行: <script src="templates/dz7joe/jquery_331.htm?joe=20260930q" type="text/javascript"></script> 如果该框里已有你自己的统计代码等内容,另起一行追加即可,不要删除原有内容。 ## 第六步:启用并更新缓存 1. 后台 → 风格管理 → 「Joe风格」点**启用**,并设为**默认风格**; 2. 后台 → 工具 → 更新缓存(全部缓存); 3. 浏览器 Ctrl+F5 强刷首页,安装完成。 --- ## Sclub 等免费托管平台特别说明 - 本风格已内置官方顶部条(含 logo、繁简切换、广告、检举的那一行)的**美化样式**,启用后自动变成与主题一致的配色,官方元素和统计计数全部保留。 - **严禁**用 `margin-top:-18px`、display:none 等任何方式遮挡或删除官方顶部条,否则会被封站。本风格没有此类代码,你也不要自行添加。 - 平台不支持上传模板图片文件属正常现象:本风格图标全部内联,无图片文件依赖。 ## 可选配置(后台"第三方统计代码"框,每行一个) | 配置 | 作用 | 示例 | |---|---|---| | JOELOGO | 自定义站标图片 URL | `JOELOGO: | | JOEHOT | 指定首页 4 个热帖(不足自动按回复数补齐) | `JOEHOT:12,15,30,42` | | JOEBANNER | 指定首页轮播帖子,数量不限,显示原图 | `JOEBANNER:1859,1860,1861,1862` | | JOENOTICE | 指定首页公告标题(红色,可点击) | `JOENOTICE:1859` | 不写某行即使用默认规则;修改后更新缓存生效。 ## 常见问题 | 现象 | 原因与处理 | |---|---| | 启用后整页白屏 | 某份模板粘贴不完整或保存顺序不对。回风格管理切回原风格立即恢复,再重新编辑对应模板核对内容 | | 页面无样式/排版全乱 | css_append 没粘或没更新缓存;重做第 1 批第一项 + 更新缓存 | | 轮播/复制等功能不生效,JS 报 404 | 第 1 批的 JS 模板漏粘;若你改了套系名(非 dz7joe),需把模板内路径同步替换 | | 中文乱码 | XML 被存成了 UTF-8:用记事本打开另存为,编码选 **ANSI** 后重新导入 | | 聊天室打不开 | 第二步建表、第四步 4 个文件、第五步——逐项核对,缺一不可 | | 头像上传异常 | 确认 memcp_profile 已粘到 dz7joe 套系(第 4 批) | ## 如何卸载/回退 风格管理里把默认风格切回你原来的风格,前台立即恢复。dz7joe 套系和 XML 可保留不占资源;确认不要了再在后台删除该风格,`templates/dz7joe` 目录与 cdb_chatroom 表需自行到服务器/数据库清理。 1045
2026-10-4
814 阅读
3 评论
icode
2020-4-9
置顶
精华
关于章鱼聊天室代码请各站管理尽快删除!
关于章鱼聊天室代码请各站管理尽快删除! 这套代码不要用! ,里面有一个致命的未授权 SQL 注入漏洞,任何人不用登录就能把你整个数据库拖出来,包括管理员的密码哈希。 1. 未授权 SQL 注入(致命)`faq.php?zyhome=chatroom&zyact=refresh&lastid=` 和`getnum` 里的`$lastid` 直接拼接进 SQL: PHP 1`{eval $q2 = $db->query("SELECT * FROM zy_chatroom WHERE pid > " . $lastid ...);}` DZ 的转义只防引号,挡不住数字型注入。攻击者构造`lastid=99999999 UNION ALL SELECT 0,uid,username,password,0 FROM cdb_members -- -` ,返回的行会被 当成聊天消息直接渲染在聊天框里 ——用户名、密码哈希、邮箱想看什么看什么,游客就能执行。 2. 服务端无登录校验 发帖接口`zyact=post` 只看前端 JS 隐藏了输入框,服务端没检查`$discuz_uid` ,游客直接 POST 就能灌水(uid=0"游客"身份)。 3. 无 formhash / CSRF 防护 ——别的网站挂个表单就能让你论坛的登录用户被迫发聊天内容。 4. 工程问题一堆 :建表没有`$tablepre` 前缀;不用 AUTO_INCREMENT 而是手动`$pid+1` (并发下主键冲突);消息无长度限制、无频率限制;`dgmdate()` 重复加时区偏移(时间显示快 8 小时)。 5. 作者标签确认 :`zy_chatroom` 表、`zyhome` 参数、`zhangyuchat` 变量、把全部选择器塞进数组再用`zhangyuchat[47]` 索引调用——这套数组索引写法唯一作用就是让代码不可读,方便藏东西。这次没发现外联域名和 cookie 外发,但上面的注入比外联后门更直接。 6. 切换模板卡死 :JS 强依赖 colors 模板独有的`$jq` (jQuery 别名)、`#header` 容器,以及 colors 的 faq 模板里才有`{subtemplate aa_zyhome_chatroom}` ;切模板后请求失败,而失败回调`zylt_firstload()` 零延迟无限重试 ,AJAX 风暴直接把页面和服务器一起拖死。 ## 重要提醒 如果它曾经在你的论坛线上运行过,数据库等于对外敞开过 。建议:改一次管理员密码,检查后台有没有多出不认识的管理员/带权限账号。 这套代码一行都不值得留!!!
2020-4-9
410592 阅读
32 评论
icode
2018-9-7
置顶
jQuery安装
286 后台新建一个模板命名为jquery 将附件解压,复制文本全部内容到jquery模板提交。 在论坛其他头部信息加入代码 <script type="text/javascript" src="templates/default/jquery.htm"></script> 即可
2018-9-7
1026135 阅读
3 评论
icode
板块主题
2022-12-15
ziitttt
.......
2022-12-15
66073 阅读
2 评论
icode
2018-10-31
7.2 viewthread_node.htm模板备份
模板改坏了先试试用以下代码複盖: {eval $needhiddenreply = ($hiddenreplies && $discuz_uid != $post['authorid'] && $discuz_uid != $thread['authorid'] && !$post['first'] && !$forum['ismoderator']);} <table id="pid$post " summary="pid$post " cellspacing="0" cellpadding="0"> <!--{if !empty($fav) && $rpid == $post }--> <tr class="threadad"> <td class="postauthor"></td> <td class="adcontent"> <div id="ntc_jp"> <div class="s_clear"> <a class="deloption" href="my.php?item=attention&action=remove&tid=$tid" id="attention_remove_$post " onclick="ajaxmenu(this, 3000);doane(event);" title="{lang attention_cancel}">{lang attention_cancel}</a> <em>{lang thread_redirect_notice}</em> <h2><a href="viewthread.php?tid=$tid">$thread </a></h2> </div> </div> </td> </tr> <!--{/if}--> <tr> <td class="postauthor" rowspan="2"> <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}--> <!--{if $authoronleft}--> <div class="postinfo"> <a target="_blank" href="space.php?uid=$post['authorid']" style="margin-left: 20px; font-weight: 800">$post </a> </div> <!--{/if}--> <div class="popupmenu_popup userinfopanel" id="userinfo$post " style="display: none; position: absolute;{if $authoronleft}margin-top: -11px;{/if}"> <div class="popavatar"> <div id="userinfo$post _ma"></div> <ul class="profile_side"> <li class="pm"><a href="pm.php?action=new&uid=$post " onclick="hideMenu('userinfo$post ');showWindow('sendpm', this.href);return false;" title="{lang send_pm}">{lang send_pm}</a></li> <!--{if $post['msn'][1]}--> <li style="text-indent:0"><a target="_blank" href=" title="{lang msn_chat}"><img style="border-style: none; margin-right: 5px; vertical-align: middle;" src=" width="16" height="16" />{lang msn_chat}</a></li> <!--{/if}--> <li class="buddy"><a href="my.php?item=buddylist&newbuddyid=$post &buddysubmit=yes" target="_blank" id="ajax_buddy_$post['count']" title="{lang add_to_buddylist}" onclick="ajaxmenu(this, 3000);doane(event);">{lang add_to_buddylist}</a></li> </ul> {$pluginhooks [$postcount]} </div> <div class="popuserinfo"> <p> <a href="space.php?uid=$post " target="_blank">$post </a> <!--{if $post['nickname']}--><em>($post )</em><!--{/if}--> <!--{if $vtonlinestatus && $post['authorid']}--> <!--{if ($vtonlinestatus == 2 && $onlineauthors[$post ]) || ($vtonlinestatus == 1 && ($timestamp - $post['lastactivity'] <= 10800) && !$post['invisible'])}--> <em>{lang online} <!--{else}--> <em>{lang offline} <!--{/if}--> </em> <!--{/if}--> </p> <!--{if $post['customstatus']}--><p class="customstatus">$post </p><!--{/if}--> <dl class="s_clear">{eval @eval('echo "'.$customauthorinfo[2].'";');}</dl> <div class="imicons"> <!--{if $post['qq']}--><a href=" target="_blank" title="QQ"><img src="{IMGDIR}/qq.gif" alt="QQ" /></a><!--{/if}--> <!--{if $post['icq']}--><a href=" target="_blank" title="ICQ"><img src="{IMGDIR}/icq.gif" alt="ICQ" /></a><!--{/if}--> <!--{if $post['yahoo']}--><a href=" target="_blank" title="Yahoo"><img src="{IMGDIR}/yahoo.gif" alt="Yahoo!" /></a><!--{/if}--> <!--{if $post['taobao']}--><a href="javascript:;" onclick="window.open(' title="taobao"><img src="{IMGDIR}/taobao.gif" alt="{lang taobao}" /></a><!--{/if}--> <!--{if $ucappopen['UCHOME']}--> <a href="{$uchomeurl}/space.php?uid=$post " target="_blank" title="{lang space}"><img src="{IMGDIR}/home.gif" alt="{lang space}" /></a> <!--{elseif $ucappopen['XSPACE']}--> <a href="{$xspaceurl}/?uid-$post " target="_blank" title="{lang space}"><img src="{IMGDIR}/home.gif" alt="{lang space}" /></a> <!--{/if}--> <!--{if $post['site']}--><a href="$post " target="_blank" title="{lang member_homepage}"><img src="{IMGDIR}/forumlink.gif" alt="{lang member_homepage}" /></a><!--{/if}--> <a href="space.php?uid=$post " target="_blank" title="{lang member_viewpro}"><img src="{IMGDIR}/userinfo.gif" alt="{lang member_viewpro}" /></a> {$pluginhooks [$postcount]} </div> <div id="avatarfeed"><span id="threadsortswait"></span></div> </div> </div> <!--{/if}--> $post $post <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}--> <div> <!--{if $bannedmessages & 2 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1))}--> <div class="avatar">{lang member_avatar_banned}</div> <!--{elseif $post['avatar'] && $showavatars}--> <div class="avatar" onmouseover="showauthor(this, 'userinfo$post ')"><a href="space.php?uid=$post " target="_blank">$post </a></div> <!--{/if}--> <p><em><a href="faq.php?action=grouppermission&searchgroupid={$post }" target="_blank">{$post }</a></em></p> </div> <p>{eval showstars($post['stars']);}</p> {$pluginhooks [$postcount]} <!--{if $customauthorinfo[1]}--><dl class="profile s_clear">{eval @eval('echo "'.$customauthorinfo[1].'";');}</dl><!--{/if}--> <!--{if $post['medals']}--><p> <!--{loop $post['medals'] $medal}--> <img src="images/common/$medal " alt="$medal " title="$medal " /> <!--{/loop}--></p> <!--{/if}--> <!--{if $discuz_uid && $magicstatus && $usemagic['user']}--> <p> <!--{loop $usemagic['user'] $id $magic}--> <a href="magic.php?action=mybox&operation=use&type=1&pid=$post &magicid=$id" onclick="showWindow('magics', this.href);doane(event);"><img src="images/magics/$magic " title="{lang magics_to_user}"></a> <!--{/loop}--> </p> <!--{/if}--> {$pluginhooks [$postcount]} <!--{else}--> <div class="avatar"> <!--{if !$post['authorid']}--> <a href="javascript:;">{lang guest} <em>$post </em></a> <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}--> <!--{if $forum['ismoderator']}--><a href="space.php?uid=$post " target="_blank">{lang anonymous}</a><!--{else}-->{lang anonymous}<!--{/if}--> <!--{else}--> $post <em>{lang member_deleted}</em> <!--{/if}--> </div> <!--{/if}--> <!--{if $allowedituser || $allowbanuser || ($forum['ismoderator'] && $allowviewip && ($thread['digest'] >= 0 || !$post['first']))}--> <hr class="shadowline" /> <p> {lang admin_member}<br /> <!--{if $forum['ismoderator'] && $allowviewip && ($thread['digest'] >= 0 || !$post['first'])}--> <a href="topicadmin.php?action=getip&fid=$fid&tid=$tid&pid=$post " onclick="ajaxmenu(this, 0, 1, 2);doane(event)" title="{lang admin_getip}" class="lightlink">IP</a> <!--{/if}--> <!--{if $allowedituser}--> <a href="{if $adminid == 1}admincp.php?action=members&username=$post &submit=yes&frames=yes{else}modcp.php?action=members&op=edit&uid=$post {/if}" target="_blank" class="lightlink">{lang edit}</a> <!--{/if}--> <!--{if $allowbanuser}--> <!--{if $adminid == 1}--> <a href="admincp.php?action=members&operation=ban&username=$post &frames=yes" target="_blank" class="lightlink">{lang ban_member}</a> <!--{else}--> <a href="modcp.php?action=members&op=ban&uid=$post " target="_blank" class="lightlink">{lang ban_member}</a> <!--{/if}--> <!--{/if}--> <a href="modcp.php?action=threads&op=posts&do=search&searchsubmit=1&users=$post " target="_blank" class="lightlink">{lang posts}</a> </p> <!--{/if}--> </td> <td class="postcontent"> <!--{if $post['first']}--><div id="threadstamp"><!--{if $threadstamp}--><img src="images/stamps/$threadstamp " title="$threadstamp " /><!--{/if}--></div><!--{/if}--> <div class="postinfo"> <strong><a title="{lang share_url_copy}" id="postnum$post " href="javascript:;" onclick="setCopy('{$boardurl}{if $post }viewthread.php?tid=$tid$fromuid{else}redirect.php?goto=findpost&ptid=$tid&pid=$post $fromuid{/if}', '{lang post_copied}')"><!--{if !empty($postno[$post ])}-->$postno[$post ]<!--{else}--><em>{$post }</em>{$postno[0]}<!--{/if}--></a> <!--{if !$postcount}--> <em class="rpostno" title="{lang thread_redirect_postno_tips}">{lang thread_redirect_postno} <input id="rpostnovalue" size="3" type="text" class="txtarea" onkeydown="if(event.keyCode==13) {$('rpostnobtn').click();return false;}" /><span id="rpostnobtn" onclick="window.location='redirect.php?ptid=$tid&ordertype=$ordertype&postno='+$('rpostnovalue').value">»</span></em> <!--{/if}--> <!--{if $post['first']}--> <!--{if $ordertype != 1}--> <a href="viewthread.php?tid=$tid&extra=$extra&ordertype=1" class="left">{lang post_descview}</a> <!--{else}--> <a href="viewthread.php?tid=$tid&extra=$extra&ordertype=2" class="left">{lang post_ascview}</a> <!--{/if}--> <!--{/if}--> </strong> <div class="posterinfo"> <div class="pagecontrol"> <!--{if $post['first']}--> <a href="viewthread.php?action=printable&tid=$tid" target="_blank" class="print left">{lang thread_printable}</a> <!--{if MSGBIGSIZE}--> <div class="msgfsize right"> <label>{lang font_zoom}: </label><small onclick="$('postlist').className='mainbox viewthread'" title="{lang common}">t</small><big onclick="$('postlist').className='mainbox viewthread t_bigfont'" title="{lang zoom_in}">T</big> </div> <!--{/if}--> <!--{elseif $thread['special'] == 5}--> <span class="debatevote poststand_{echo intval($post )}"> <label><!--{if $post == 1}--><a href="viewthread.php?tid=$tid&extra=$extra&stand=1" title="{lang debate_view_square}">{lang debate_square}</a> <!--{elseif $post == 2}--><a href="viewthread.php?tid=$tid&extra=$extra&stand=2" title="{lang debate_view_opponent}">{lang debate_opponent}</a> <!--{else}--><a href="viewthread.php?tid=$tid&extra=$extra&stand=0" title="{lang debate_view_neutral}">{lang debate_neutral}</a><!--{/if}--> </label> <!--{if $post }--> <span><a href="misc.php?action=debatevote&tid=$tid&pid=$post " id="voterdebate_$post " onclick="ajaxmenu(this);doane(event);">{lang debate_support}</a>$post </span> <!--{/if}--> </span> <!--{/if}--> </div> <div class="authorinfo"> <!--{if !$post['anonymous'] && $_DCACHE['groupicon'][$post['groupid']]}--> <img class="authicon" id="authicon$post " src="$_DCACHE['groupicon'][$post['groupid']]" onclick="showauthor(this, 'userinfo$post ')" /> <!--{else}--> <img class="authicon" id="authicon$post " src="images/common/online_member.gif" onclick="showauthor(this, 'userinfo$post ');" /> <!--{/if}--> <!--{if $post['authorid'] && !$post['anonymous']}--> <!--{if !$authoronleft}--><a href="space.php?uid=$post " class="posterlink" target="_blank">$post </a><!--{/if}-->{$pluginhooks [$postcount]}<em id="authorposton$post ">{lang poston} $post </em> <!--{if !$authorid}--> | <a href="viewthread.php?tid=$post &page=$page&authorid=$post " rel="nofollow">{lang thread_show_author}</a> <!--{else}--> | <a href="viewthread.php?tid=$post &page=$page" rel="nofollow">{lang thread_show_all}</a> <!--{/if}--> <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}--> {lang anonymous} {$pluginhooks [$postcount]}<em id="authorposton$post ">{lang poston} $post </em> <!--{elseif !$post['authorid'] && !$post['username']}--> {lang guest} {$pluginhooks [$postcount]}<em id="authorposton$post ">{lang poston} $post </em> <!--{/if}--> </div> </div> </div> <div class="defaultpost"> <!--{if $admode && !empty($advlist['thread2'][$post['count']])}--><div class="ad_textlink2" id="ad_thread2_$post ">$advlist [$post ]</div><!--{else}--><div id="ad_thread2_$post "></div><!--{/if}--> <!--{if $admode && !empty($advlist['thread3'][$post['count']])}--><div class="ad_pip" id="ad_thread3_$post ">$advlist [$post ]</div><!--{else}--><div id="ad_thread3_$post "></div><!--{/if}--><div id="ad_thread4_$post "></div> <div class="postmessage <!--{if $post['first']}-->firstpost<!--{/if}-->"> <!--{if $post['warned']}--> <span class="postratings"><a href="misc.php?action=viewwarning&tid=$tid&uid=$post " title="{lang warn_get}" onclick="showWindow('viewwarning', this.href);return false;"><img src="{IMGDIR}/warning.gif" border="0" /></a></span> <!--{/if}--> <!--{if $thread == 3 && $post['first']}--> <!--{if $thread['price'] > 0}--> <cite class="re_unsolved">{lang reward_unsolved}</cite> <!--{elseif $thread['price'] < 0}--> <cite class="re_solved">{lang reward_solved}</cite> <!--{/if}--> <!--{if $activityclose}--><cite class="re_solved">{lang activity_close}</cite><!--{/if}--> <!--{/if}--> <!--{if $post['first']}--> <div id="threadtitle"> <!--{if $thread['readperm']}--><em>{lang readperm_thread} $thread </em><!--{/if}--> <h1>$thread </h1> <!--{if $thread || $relatedkeywords}--> <div class="threadtags"> <!--{if $thread['tags']}-->$thread <!--{/if}--> <!--{if $relatedkeywords}--><span class="postkeywords">$relatedkeywords</span><!--{/if}--> </div> <!--{/if}--> </div> <!--{elseif $post['subject']}--> <h2>$post </h2> <!--{/if}--> <!--{if $adminid != 1 && $bannedmessages & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))}--> <div class="locked">{lang message_banned}</div> <!--{elseif $adminid != 1 && $post['status'] & 1}--> <div class="locked">{lang message_single_banned}</div> <!--{elseif $needhiddenreply}--> <div class="locked">{lang message_ishidden_hiddenreplies}</div> <!--{elseif $post['first'] && $threadpay}--> {subtemplate viewthread_pay} <!--{else}--> {$pluginhooks [$postcount]} <!--{if $bannedmessages & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))}--> <div class="locked">{lang admin_message_banned}</div> <!--{elseif $post['status'] & 1}--> <div class="locked">{lang admin_message_single_banned}</div> <!--{/if}--> <!--{if $post['first']}--> <!--{if $thread['price'] > 0 && $thread['special'] == 0}--> <div class="locked"><em class="right"><a href="misc.php?action=viewpayments&tid=$tid" onclick="showWindow('pay', this.href);return false;">{lang pay_view}</a></em>{lang pay_threads}:<strong>{$extcredits[$creditstransextra[1]] } $thread {$extcredits[$creditstransextra[1]] } </strong></div> <!--{/if}--> <!--{if $typetemplate}--> $typetemplate <!--{elseif $optionlist && !($post['status'] & 1) && !$threadpay}--> <div class="typeoption"> <h4>$forum [$thread ]</h4> <table summary="{lang threadtype_option}" cellpadding="0" cellspacing="0" class="formtable datatable"> <!--{loop $optionlist $option}--> <tr class="{echo swapclass('colplural')}"> <th>$option </th> <td><!--{if $option['value']}-->$option $option <!--{else}-->-<!--{/if}--></td> </tr> <!--{/loop}--> </table> </div> <!--{/if}--> <!--{if $thread == 1}--> {template viewthread_poll} <!--{elseif $thread == 3}--> {template viewthread_reward_price} <!--{elseif $thread == 4}--> {template viewthread_activity_info} <!--{elseif $thread == 5}--> {template viewthread_debate_umpire} <!--{elseif $threadplughtml}--> $threadplughtml <!--{/if}--> <!--{/if}--> <div class="{if !$thread }t_msgfontfix{else}specialmsg{/if}"> <table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_$post ">$post </td></tr></table> <!--{if $post['first']}--> <!--{if $thread == 2}--> {template viewthread_trade} <!--{elseif $thread == 3}--> <!--{if $bapid}-->{eval $bestpost = $postlist[$bapid];unset($postlist[$bapid]);}<!--{/if}--> {template viewthread_reward} <!--{elseif $thread == 4}--> {template viewthread_activity} <!--{elseif $thread == 5}--> {template viewthread_debate} <!--{/if}--> <!--{/if}--> <!--{if $post['attachment']}--> <div class="locked">{lang attachment}: <em><!--{if $discuz_uid}-->{lang attach_nopermission}<!--{else}-->{lang attach_nopermission_login}<!--{if in_array('qqconnect', $plugins['available']) && $connect['allow']}--> <a rel="nofollow" href="{$GLOBALS['connect_setting']['login_url']}"><img align="absmiddle" src="{IMGDIR}/qq_login.gif"></a><!--{/if}--><!--{/if}--></em></div> <!--{elseif $hideattach[$post ] && $post['attachments']}--> <div class="locked">{lang attachment}: <em>{lang attachment_reply_show}</em></div> <!--{elseif $post['imagelist'] || $post['attachlist']}--> <div class="postattachlist"> <!--{if $post['imagelist']}--> $post['imagelist'] <!--{/if}--> <!--{if $post['attachlist']}--> $post <!--{/if}--> </div> <!--{/if}--> <!--{if $relatedthreadlist && !$qihoo['relate']['position'] && $post['first']}--> <div class="tagrelated"> <h3><em><a href=" target="_blank">{lang thread_more_related_threads}</a></em>{lang qihoo_relatedthreads}</h3> <ul> <!--{loop $relatedthreadlist $key $threads}--> <!--{if $threads != $tid}--> <li> <!--{if !$threads['insite']}--> [{lang qihoo_webthread}] <a href="topic.php?url={echo urlencode($threads )}&md5={echo md5($threads )}&statsdata=$fid||$tid" target="_blank">$threads </a> [ <a href="post.php?action=newthread&fid=$fid&extra=$extra&url={echo urlencode($threads )}&md5={echo md5($threads )}&from=direct" style="color: #090" target="_blank">{lang reprint}</a> ] <!--{else}--> <a href="viewthread.php?tid=$threads &statsdata=$fid||$tid" target="_blank">$threads </a> <!--{/if}--> </li> <!--{/if}--> <!--{/loop}--> </ul> </div> <!--{/if}--> <!--{if $post['first'] && $relatedtagstatus}--> <div id="relatedtags"></div> <script type="text/javascript" src="tag.php?action=relatetag&rtid=$tid" reload="1"></script> <!--{/if}--> </div> {$pluginhooks [$postcount]} <!--{if !empty($post['ratelog'])}--> <dl class="newrate"> <dt> <!--{if !empty($postlist[$post ]['totalrate'])}--> <strong><a href="misc.php?action=viewratings&tid=$tid&pid=$post " onclick="showWindow('viewratings', this.href);return false;" title="{lang thread_rate_log_lately}">{echo count($postlist[$post ] );}</a></strong> <p>{lang thread_rate_count}</p> <!--{/if}--> </dt> <dd> <ul class="s_clear"> <div id="post_rate_$post "></div> <!--{if $ratelogon}--> <ul class="s_clear ratelist"> <!--{loop $post['ratelog'] $uid $ratelog}--> <li id="rate_{$post }_{$uid}" class="ratelistavatar"> <a href="space.php?uid=$uid" target="_blank">{echo discuz_uc_avatar($uid, 'small');}</a><a href="space.php?uid=$uid" target="_blank">$ratelog :</a> $ratelog <!--{loop $ratelog['score'] $id $score}--> <!--{if $score > 0}--> <em>{$extcredits[$id] } + $score $extcredits[$id] </em> <!--{else}--> <span>{$extcredits[$id] } $score $extcredits[$id] </span> <!--{/if}--> <!--{/loop}--> </li> <!--{/loop}--> </ul> <!--{else}--> <!--{loop $post['ratelog'] $uid $ratelog}--> <li> <div id="rate_{$post }_{$uid}_menu" class="attach_popup" style="display: none;"> <p class="cornerlayger">$ratelog <!--{loop $ratelog['score'] $id $score}--> <!--{if $score > 0}--> <em>{$extcredits[$id] } + $score $extcredits[$id] </em> <!--{else}--> <span>{$extcredits[$id] } $score $extcredits[$id] </span> <!--{/if}--> <!--{/loop}--> </p> <p class="minicorner"></p> </div> <p id="rate_{$post }_{$uid}" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" class="rateavatar"><a href="space.php?uid=$uid" target="_blank">{echo discuz_uc_avatar($uid, 'small');}</a></p> <p><a href="space.php?uid=$uid" target="_blank">$ratelog </a></p> </li> <!--{/loop}--> <!--{/if}--> </ul> </dd> </dl> <!--{else}--> <div id="post_rate_div_$post "></div> <!--{/if}--> <!--{/if}--> <!--{if $post['first']}--> <!--{if $lastmod['modaction']}--><div class="modact"><a href="misc.php?action=viewthreadmod&tid=$tid" title="{lang thread_mod}" onclick="showWindow('viewthreadmod', this.href);return false;">{lang thread_mod_by}</a></div><!--{/if}--> <!--{if $lastmod['magicname']}--><div class="modact"><a href="misc.php?action=viewthreadmod&tid=$tid" title="{lang thread_mod}" onclick="showWindow('viewthreadmod', this.href);return false;">{lang magics_logs}</a></div><!--{/if}--> <div class="useraction{if $allowrecommend && $recommendthread } nrate{/if}"> <a href="javascript:;" onclick="showDialog($('favoritewin').innerHTML, 'info', '{lang thread_favorite}/{lang thread_attention}')">{lang thread_favorite}</a> <a href="javascript:;" id="share" onclick="showDialog($('sharewin').innerHTML, 'info', '{lang thread_share}')">{lang thread_share}</a> <!--{if $allowrecommend && $recommendthread }--> <div id="ajax_recommendlink"> <div id="recommendv" onclick="switchrecommendv()" title="{lang recommends}"{if $recommendthread } style="display: none"{/if}>$thread </div> <ul id="recommendav" onclick="switchrecommendv()" title="{lang recommends}"{if !$recommendthread } style="display: none"{/if} class="recommend_act s_clear"> <li id="recommendv_add" title="$recommendthread {lang recommends_users}">$thread </li> <li id="recommendv_subtract" title="$recommendthread {lang recommends_users}">$thread </li> </ul> <ul class="recommend_act s_clear"> <li><a id="recommend_add" {if $discuz_uid}href="misc.php?action=recommend&do=add&tid=$tid" onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate($allowrecommend)');;doane(event);"{else}href="logging.php?action=login" onclick="showWindow('login', this.href);return false;"{/if}>$recommendthread </a></li> <li><a id="recommend_subtract"{if $discuz_uid}href="misc.php?action=recommend&do=subtract&tid=$tid" onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate(-$allowrecommend)');;doane(event);"{else}href="logging.php?action=login" onclick="showWindow('login', this.href);return false;"{/if}>$recommendthread </a></li> </ul> </div> <!--{/if}--> {$pluginhooks } </div> <!--{/if}--> </div> </div> </td></tr> <tr><td class="postcontent postbottom"> <!--{if $post['signature'] && ($bannedmessages & 4 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1)))}--> <div class="signatures">{lang member_signature_banned}</div> <!--{elseif $post['signature'] && !$post['anonymous'] && $showsignatures}--> <div class="signatures" style="max-height:{$maxsigrows}px;maxHeightIE:{$maxsigrows}px;">$post </div> <!--{/if}--> <!--{if $admode && !empty($advlist['thread1'][$post['count']])}--><div class="ad_textlink1" id="ad_thread1_$post ">$advlist [$post ]</div><!--{else}--><div id="ad_thread1_$post "></div><!--{/if}--> </td> </tr> <tr> <td class="postauthor"></td> <td class="postcontent"> <div class="postactions"> <!--{if $forum['ismoderator'] && ($allowdelpost || $allowbanpost)}--> <span class="right"> <label for="manage$post "> <!--{if $post['first'] && $thread['digest'] == -1}--> <input type="checkbox" id="manage$post " disabled="disabled" /> <!--{else}--> <input type="checkbox" id="manage$post " {if !empty($modclick)}checked="checked" {/if}onclick="pidchecked(this);modclick(this, $post )" value="$post " /> <!--{/if}--> {lang manage} </label> </span> <!--{/if}--> <div class="postact s_clear"> <em> <!--{if $allowpostreply}--> <a class="fastreply" href="post.php?action=reply&fid=$fid&tid=$tid&reppost=$post &extra=$extra&page=$page" onclick="showWindow('reply', this.href);return false;">{lang reply}</a> <!--{if !$needhiddenreply}--> <a class="repquote" href="post.php?action=reply&fid=$fid&tid=$tid&repquote=$post &extra=$extra&page=$page" onclick="showWindow('reply', this.href);return false;">{lang reply_quote}</a> <!--{/if}--> <!--{/if}--> <!--{if (($forum['ismoderator'] && $alloweditpost && !(in_array($post['adminid'], array(1, 2, 3)) && $adminid > $post['adminid'])) || ($forum['alloweditpost'] && $discuz_uid && $post['authorid'] == $discuz_uid)) && ($thread['digest'] >= 0 || !$post['first'])}--> <a class="editpost" href="post.php?action=edit&fid=$fid&tid=$tid&pid=$post &page=$page"><!--{if $thread['special'] == 2 && !$post['message']}-->{lang post_add_aboutcounter}<!--{else}-->{lang edit}</a><!--{/if}--> <!--{/if}--> {$pluginhooks [$postcount]} </em> <p> <!--{if $thread['special'] == 3 && ($forum['ismoderator'] || $thread['authorid'] == $discuz_uid) && $discuz_uid != $post['authorid'] && $post['authorid'] != $thread['authorid'] && $post['first'] == 0 && $thread['price'] > 0}--> <a href="javascript:;" onclick="setanswer($post['pid'])">{lang reward_set_bestanswer}</a> <!--{/if}--> <!--{if $raterange && $post['authorid']}--> <a href="misc.php?action=rate&tid=$tid&pid=$post " onclick="showWindow('rate', this.href);return false;">{lang rate}</a> <!--{/if}--> <!--{if $post['rate'] && $forum['ismoderator']}--> <a href="misc.php?action=removerate&tid=$tid&pid=$post &page=$page" onclick="showWindow('rate', this.href);return false;">{lang removerate}</a> <!--{/if}--> <!--{if !$forum['ismoderator'] && $discuz_uid && $reportpost && $discuz_uid != $post['authorid']}--> <a href="misc.php?action=report&fid=$fid&tid=$tid&pid=$post " onclick="showWindow('report', this.href);doane(event);">{lang reportpost}</a> <!--{/if}--> <!--{if $discuz_uid && $magicstatus}--> <a href="magic.php?action=getmagic&fid=$fid&pid=$post " id="usermagicopt$post " class="dropmenu" onmouseover="SMAM=setTimeout(function() {ajaxmenu($('usermagicopt$post '), 1000, 1, 2);doane(event);}, 500)" onmouseout="clearTimeout(SMAM)" onclick="if($(this.id + '_menu') && $(this.id + '_menu').style.display == '') {hideMenu(this.id + '_menu')} else {ajaxmenu(this, 1000, 1, 2);}doane(event);">{lang magics_use}</a> <!--{/if}--> <!--{if !$post['first']}--> <a href="javascript:;" onclick="scrollTo(0,0);">TOP</a> <!--{/if}--> </p> </div> </div> </td> </tr> <tr class="threadad"> <td class="postauthor"></td> <td class="adcontent"> <!--{if $post['first'] && $thread['replies']}--><!--{if $admode && !empty($advlist['interthread'])}--><div class="ad_column" id="ad_interthread">$advlist <!--{else}--><div id="ad_interthread"><!--{/if}--></div><!--{/if}--> </td> </tr> <!--{if $post['first'] && $thread == 5 && $stand != ''}--> <tr class="threadad stand_select"> <td class="postauthor" style="background: #EBF2F8;"></td> <td> <div class="itemtitle s_clear"> <h2>{lang debate_filter}: </h2> <ul> <li><a href="viewthread.php?tid=$tid&extra=$extra" hidefocus="true"><span>{lang all}</span></a></li> <li <!--{if $stand == 1}-->class="current"<!--{/if}-->><a href="viewthread.php?tid=$tid&extra=$extra&stand=1" hidefocus="true"><span>{lang debate_square}</span></a></li> <li <!--{if $stand == 2}-->class="current"<!--{/if}-->><a href="viewthread.php?tid=$tid&extra=$extra&stand=2" hidefocus="true"><span>{lang debate_opponent}</span></a></li> <li <!--{if $stand == 0}-->class="current"<!--{/if}-->><a href="viewthread.php?tid=$tid&extra=$extra&stand=0" hidefocus="true"><span>{lang debate_neutral}</span></a></li> </ul> </div> <hr class="solidline" /> </td> </tr> <!--{/if}--> </table> <!--{if $aimgs[$post ]}--> <script type="text/javascript" reload="1">aimgcount[{$post }] = [{echo implode(',', $aimgs[$post ]);}];attachimgshow($post );</script> <!--{/if}--> {$pluginhooks [$postcount]} {eval $postcount++;}
2018-10-31
125751 阅读
6 评论
老闆
2018-9-3
轉帖:仿 新浪微博 名片卡(适用于Discuz X系列以上任何版本)
仿 新浪微博 名片卡(适用于Discuz X系列以上任何版本) 性别:男 样式背景 预览图: 260 性别:女 样式背景 预览图: 261 修改步骤如下: 首先。在需要添加名片卡的任意 <a> 标签内添加 c="1" 修改模板部分。(修改前备份) 打开:template/default/home/space_card.htm文件 覆盖以下全部内容如下: <!--{template common/header}--> <div id="WB_Card"> <!--{eval $encodeusername = rawurlencode($space['username']);}--> <div class="CardT Gender_$space['gender']"> <div class="userlogo"> <!--{avatar($space ,small)}--> <div class="gender Gender_Of_$space['gender']" title=""></div> </div> <div class="username"> <strong>$space </strong> <!--{if $_G['setting']['verify']['enabled']}--> <!--{loop $_G['setting']['verify'] $vid $verify}--> <!--{if $verify['available'] && $verify['showicon']}--> <!--{if $space['verify'.$vid] == 1}--> <a href="home.php?mod=spacecp&ac=profile&op=verify&vid=$vid" target="_blank"><!--{if $verify['icon']}--><img src="$verify['icon']" alt="$verify " title="$verify " /><!--{else}-->$verify <!--{/if}--></a> <!--{elseif !empty($verify['unverifyicon'])}--> <a href="home.php?mod=spacecp&ac=profile&op=verify&vid=$vid" target="_blank"><!--{if $verify['unverifyicon']}--><img src="$verify['unverifyicon']" alt="$verify " title="$verify " /><!--{/if}--></a> <!--{/if}--> <!--{/if}--> <!--{/loop}--> <!--{/if}--> </div> <div class="usergroup"> {lang usergroup} : $space </div> </div> <div class="CardB"> <div class="userinfo"> <p>{lang credits} : $space </p> <p>{lang thread} : $space </p> <p>{lang friends} : $space </p> </div> <div class="userresid"> $space $space </div> <div class="useroperat"> <a class="ws dw" href="home.php?mod=space&uid=$space ">{lang visit_Ta_space}</a> <!--{if $space }--> <a class="ws dw" href="home.php?mod=spacecp&ac=avatar">{lang edit_avatar}</a> <a class="ws dw" href="home.php?mod=spacecp&ac=profile">{lang update_profile}</a> <!--{else}--> <!--{eval require_once libfile('function/friend');$isfriend=friend_check($space );}--> <!--{if !$isfriend}--> <a class="ws dw" href="home.php?mod=spacecp&ac=friend&op=add&uid=$space &handlekey=addfriendhk_{$space }" id="a_friend_li_{$space }" onclick="showWindow(this.id, this.href, 'get', 0);">{lang add_friend}</a> <!--{else}--> <a class="ws dw" href="home.php?mod=spacecp&ac=friend&op=ignore&uid=$space &handlekey=ignorefriendhk_{$space }" id="a_ignore_{$space }" onclick="showWindow(this.id, this.href, 'get', 0);">{lang ignore_friend}</a> <!--{/if}--> <a class="ws dw" href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$space &touid=$space &pmid=0&daterange=2" id="a_sendpm_$space " onclick="showWindow('showMsgBox', this.href, 'get', 0)">{lang send_pm}</a> <!--{/if}--> <!--{eval $cardid = rand(1,25500000);}--> <div id="More" class="MoreBox_$cardid"> <a class="ws xw" href="javascript:;"><i class="fa fa-18 font-setup"></i></a> <div id="More_$cardid" class="menuBox" style="display: none;"> <!--{if checkperm('allowbanuser') || checkperm('allowedituser')}--> <!--{if checkperm('allowedituser')}--> <a href="{if $_G == 1}admin.php?action=members&operation=search&username=$encodeusername&submit=yes&frames=yes{else}forum.php?mod=modcp&action=member&op=edit&uid=$space {/if}" target="_blank" class="xi1">{lang user_edit}</a> <!--{/if}--> <!--{if checkperm('allowbanuser')}--> <a href="{if $_G == 1}admin.php?action=members&operation=ban&username=$encodeusername&frames=yes{else}forum.php?mod=modcp&action=member&op=ban&uid=$space {/if}" target="_blank" class="xi1">{lang user_ban}</a> <!--{/if}--> <a class="a" href="forum.php?mod=modcp&action=thread&op=post&do=search&searchsubmit=1&users=$encodeusername" target="_blank" class="xi1">{lang manage_post}</a> <!--{/if}--> <a href="home.php?mod=space&uid=$space &do=thread&view=me&from=space&type=thread" $orderactives >{lang space_Ta_thread}</a> <a href="home.php?mod=space&uid=$space &do=thread&view=me&from=space&type=reply" $orderactives >{lang space_Ta_reply}</a> <a href="home.php?mod=spacecp&ac=poke&op=send&uid=$space &handlekey=propokehk_{$space }" id="a_poke_{$space }" onclick="showWindow(this.id, this.href, 'get', 0);" class="xi2">{lang say_hi}</a> </div> <script type="text/javascript"> Y_jQ(function(){ Y_jQ(".MoreBox_$cardid").hover( function(){ Y_jQ("#More_$cardid").slideToggle(100); }, function(){ Y_jQ("#More_$cardid").slideUp(100) } ) }) </script> </div> </div> </div> </div> <!--{template common/footer}--> 2打开:template/default/common/common.css #append_parent .card { width: 380px !important; }#WB_Card { width: 380px; height: 220px; } #WB_Card .CardT { width: 380px; height: 125px; text-align: center; color: #FFF; text-shadow: 0 0 4px rgba(0, 0, 0, 0.4); } #WB_Card .Gender_0 { background-image: url("../images/CardT_0.jpg"); background-repeat: no-repeat; } #WB_Card .Gender_1 { background-image: url("../images/CardT_1.jpg"); background-repeat: no-repeat; } #WB_Card .Gender_2 { background-image: url("../images/CardT_2.jpg"); background-repeat: no-repeat; } #WB_Card .CardT .userlogo { width: 56px; height: 56px; margin: 0 auto; padding-top: 10px; } #WB_Card .CardT .userlogo img { background-color: rgba(255, 255, 255, 0.3); border-radius: 50%; width: 48px; height: 48px; padding: 4px; } #WB_Card .CardT .userlogo .gender { background-image: url("../images/Gender.png"); background-repeat: no-repeat; width: 16px; height: 16px; position: relative; left: 38px; bottom: 18px; } #WB_Card .CardT .userlogo .Gender_Of_1 { background-position: 0 0; } #WB_Card .CardT .userlogo .Gender_Of_2 { background-position: -25px 0; } #WB_Card .CardT .username { font-size: 0; padding-top: 5px; } #WB_Card .CardT .username strong { font-size: 14px; } #WB_Card .CardT .username a { display: inline-block !important; margin-left: 5px; } #WB_Card .CardT .username a img { width: 16px; height: 16px; display: inline; } #WB_Card .CardT .usergroup { padding-top: 5px; } #WB_Card .CardB { width: 380px; height: 95px; } #WB_Card .CardB .userinfo { text-align: center; padding-top: 8px; } #WB_Card .CardB .userinfo p { font-size: 14px; display: inline; padding: 0 10px; } #WB_Card .CardB .userinfo p + p { border-left: 1px solid #D9D9D9; } #WB_Card .CardB .userresid { height: 18px; text-align: center; padding-top: 6px; } #WB_Card .CardB .useroperat { height: 27px; text-align: center; padding-top: 8px; } #WB_Card .CardB .useroperat .ws { border-style: solid; border-width: 1px; border-color: #DDD; height: 25px; line-height: 25px; display: inline-block !important; margin: 0 3px; } #WB_Card .CardB .useroperat .xw { width: 40px; } #WB_Card .CardB .useroperat .dw { width: 80px; } #WB_Card .CardB .useroperat #More { display: inline-table; width: 42px; } #WB_Card .CardB .useroperat #More div { position: absolute; left: 306px; top: 214px !important; } #WB_Card .CardB .useroperat #More div a { text-align: left; white-space: nowrap; } #WB_Card .CardB .useroperat #More .a { border-bottom: 1px solid #DDD; } 打开:source/language/lang_template.php 在最后加入: 如加上图片附件 262
2018-9-3
166819 阅读
20 评论
老闆
2018-9-25
discuz7.2貼內右側廣告“環繞效果”設置教程
修改方法如下 1打開templates/default/viewthread_node.htm 查找 <!--{if $admode && !empty($advlist['thread3'][$post['count']])}--><div class="ad_pip" id="ad_thread3_$post " >$advlist [$post ]</div><!--{else}--><div id="ad_thread3_$post "></div><!--{/ if}--> 然後刪除 再查找 <td class="t_msgfont" id="postmessage_$post ">$post </td> 刪除,改為 <td class="t_msgfont" id="postmessage_$post "><!--{if $admode && !empty($advlist['thread3'] [$post['count']])}-- ><div class="ad_pip" id="ad_thread3_$post ">$advlist [$post ]</div><!--{else}--><div id=" ad_thread3_$post "></div><!--{/if}-->$post </td> 备註: 前提是你的風格是自適應寬度! 预览图:暂无
2018-9-25
114165 阅读
6 评论
老闆
2018-10-2
突破discuzx帖子标题的80字符限制
突破discuzx帖子标题的80字符限制 修改步骤如下: 1.进入后台>数据库>升级贴入下面的SQL提交 如果你的表前缀不是默认的pre_请修改之 注意: 这裡的255为你要修改成的字数限制如果这裡你设为100 之后修改的代码裡的255都改为100 1ALTER TABLE `pre_forum_thread` CHANGE `subject` `subject` CHAR( 255 ); 2ALTER TABLE `pre_forum_post` CHANGE `subject` `subject` CHAR( 255 ); 2.记事本等编辑器打开source/function/function_post.php 找到 if(strlen($subject) > 80) { 改为 if(strlen($subject) > 255) { 3.再打开static/js/forum_post.js 找到 } else if(mb_strlen(theform.subject.value) > 80) { showDialog('您的标题超过80 个字符的限制'); 改为 } else if(mb_strlen(theform.subject.value) > 255) { showDialog('您的标题超过255 个字符的限制'); 4.再打开templates/default /forum/post.htm 找到(有两个) 都改为 strLenCalc(this, 'checklen', 255); 更新缓存完工~
2018-10-2
118052 阅读
10 评论
老闆
2018-10-2
discuzx 贴内显示“附件下载说明” 美化
discuzx 贴内显示“附件下载说明” 美化 简单述说一下: 该修改变更是根据7.2的修改美化而来,当然原作者不是我。 具体哪位也没查,正好我需要这个美化,所以就修改出来了,现在提供给大家。 有附件则显示,没有附件则不显示。 修改方法如下: 1、打开template\default\common\common.css 最后增加: /*下载美化提示*/ #download_explain {margin-top:10px;width:500px;border: 1px solid #FFCB97 !important; background: #FFFAEC !important; padding:5px 10px 5px 10px;} 2、打开template\default\forum\viewthread_node_body.htm 查找: <!--{if $post['attachlist']}--> 下面增加: <div id="download_explain">{lang download_explain}</div> 3、打开source\language \lang_template.php 查找: 'contactus' => '联繫我们', 下面增加: 'download_explain' => '下载说明:<br>1、附件下载需要-10激情,部分精品需要金币方可下载。<br>2、请点击附件名选择保存下载。使用迅雷,快车等多线程下载会多扣激情。<br>3、大家请勿灌水,大家可以通过发表文章、参与内容交流、共享资料来增加激情。 提交,缓存ok
2018-10-2
116712 阅读
13 评论
老闆
2018-10-31
7.2 forumdisplay.htm 模板备份
模板改坏了先试试用以下代码覆盖: {subtemplate header} <!--{if $forum['ismoderator']}--> <script type="text/javascript" src="{$jspath}moderate.js?{VERHASH}"></script> <!--{/if}--> <div id="nav"><a id="fjump" href="$indexname"{if $forumjump == 1} class="dropmenu" onmouseover="showMenu({'ctrlid':this.id})"{/if}>$bbname</a> $navigation</div> <!--{if $admode && !empty($advlist['text'])}--> <div id="ad_text" class="ad_text" > <table summary="Text Ad" cellpadding="0" cellspacing="0">$advlist </table> </div> <!--{else}--> <div id="ad_text"></div> <!--{/if}--> <div id="wrap"{if $infosidestatus['allow'] < 2} class="wrap s_clear"{else} class="wrap with_side s_clear"{/if}> <!--{if $infosidestatus == 2}--> <a id="sidebar_img" href="javascript:;" onclick="sidebar_collapse(['{lang sidebar_collapsed_yes}', '{lang sidebar_collapsed_no}']);" class="$collapseimg "><!--{if $collapseimg == 'collapsed_yes'}-->{lang sidebar_collapsed_yes}<!--{else}-->{lang sidebar_collapsed_no}<!--{/if}--></a> <!--{elseif $infosidestatus == 1}--> <a id="sidebar_img" href="javascript:;" onclick="sidebar_collapse(['', '{lang sidebar_collapsed_no}']);" class="collapsed_yes">{lang sidebar_collapsed_yes}</a> <!--{/if}--> <div class="main"> <div class="content"> $pluginhooks <div id="forumheader" class="s_clear"> <h1 style="{if $forum }color: {$forum };{/if}">$forum </h1> <p class="forumstats">[ <strong>$forum </strong> {lang thread} / {echo $forum -$forum } {lang reply} ]</p> <div class="forumaction"> <div class="right"> $pluginhooks <!--{if $discuz_uid}--> <a href="my.php?item=attention&type=forum&action=add&fid=$fid" id="ajax_attention" class="attention" onclick="ajaxmenu(this);doane(event);">{lang attention_forum}</a> <a href="my.php?item=favorites&fid=$fid" id="ajax_favorite" onclick="ajaxmenu(this);doane(event);">{lang thread_favorite}</a> <!--{/if}--> <!--{if $rssstatus}--><a href="rss.php?fid=$fid&auth=$rssauth" target="_blank" class="feed">RSS</a><!--{/if}--> </div> <!--{if $forum['recyclebin'] && $forum['ismoderator']}--> <a href="{if $adminid == 1}admincp.php?action=recyclebin&frames=yes{elseif $forum['ismoderator']}modcp.php?action=recyclebins&fid=$fid{/if}" class="recyclebin" target="_blank">{lang forum_recyclebin}</a> <!--{/if}--> </div> <!--{if $forum }--><p class="channelinfo">{lang forum_description}: $forum </p><!--{/if}--> <p id="modedby"> <!--{if $forum['ismoderator']}--> <div class="modlink"> $pluginhooks <!--{if $forum['modworks']}--> <!--{if $reportnum}--><a href="modcp.php?action=report&fid=$fid" target="_blank">{lang mod_works_report_existence}</a> |<!--{/if}--> <!--{if $modnum}--><a href="modcp.php?action=moderate&op=threads&fid=$fid" target="_blank">{lang mod_works_modpost_existence}</a> |<!--{/if}--> <!--{if $modusernum}--><a href="modcp.php?action=moderate&op=members&fid=$fid" target="_blank">{lang mod_works_moduser_existence}</a> |<!--{/if}--> <!--{/if}--> <a href="modcp.php?fid=$fid" target="_blank">{lang modcp}</a> </div> <!--{/if}--> {lang forum_modedby}: <!--{if $moderatedby}-->$moderatedby<!--{else}-->{lang forum_opening}<!--{/if}--> </p> </div> $pluginhooks <!--{if $forum['recommendlist'] || $forum['rules']}--> <div id="modarea" class="s_clear"> <div class="list"> <span class="headactions"><img onclick="toggle_collapse('modarea_c');" alt="{lang spread}" title="{lang spread}" src="{IMGDIR}/$collapseimg .gif" id="modarea_c_img" class="toggle" /></span> <h3> <!--{if $forum['recommendlist']}--> <a href="javascript:;" id="tab_1" class="current" {if $forum['rules']} onclick="switchTab('tab', 1, 2)"{/if}>{lang forum_recommend}</a><!--{if $forum['ismoderator'] && $allowrecommendthread}--><a href="modcp.php?action=forums&op=recommend&show=all&fid=$fid" target="_blank">[{lang edit}]</a><!--{/if}--> <!--{/if}--> <!--{if $forum['recommendlist'] && $forum['rules']}--><span class="pipe">|</span><!--{/if}--><!--{if $forum['rules']}--><a href="javascript:;" id="tab_2"{if !$forum['recommendlist']} class="current"{/if} {if $forum['recommendlist']} onclick="switchTab('tab', 2, 2)"{/if}>{lang forum_rules}</a><!--{/if}--> </h3> </div> <div id="modarea_c" style="$collapse "> <!--{if $forum['recommendlist']}--> <div id="tab_c_1"> {subtemplate recommend} </div> <!--{/if}--> <!--{if $forum['rules']}--> <div id="tab_c_2"{if $forum['recommendlist']} style="display:none"{/if} class="rule">$forum </div> <!--{/if}--> </div> </div> <!--{/if}--> <!--{if $subexists}--> <div id="subforum" class="mainbox list">{template forumdisplay_subforum}</div> <!--{/if}--> $pluginhooks <div class="pages_btns s_clear"> $multipage <span <!--{if $visitedforums}-->id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"<!--{/if}--> class="pageback"><a href="$indexname">{lang return_index}</a></span> <span class="postbtn" id="newspecial" prompt="post_newthread" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"><a href="post.php?action=newthread&fid=$fid"{if !$forum['allowspecialonly']} onclick="showWindow('newthread', this.href);return false;"{/if}>{lang send_posts}</a></span> </div> <!--{if $forum['threadtypes'] && $forum['threadtypes']['listable'] || $forum['threadsorts']}--> <div class="threadtype"> <!--{if $forum['threadtypes'] && $forum['threadtypes']['listable']}--> <p> <!--{if $typeid || $sortid}--><a href="forumdisplay.php?fid=$fid">{lang forum_viewall}</a><!--{else}--><strong>{lang forum_viewall}</strong><!--{/if}--> <!--{loop $forum['threadtypes']['flat'] $id $name}--><!--{if $typeid != $id}--><a href="forumdisplay.php?fid=$fid&filter=type&typeid=$id$sortadd">$name</a><!--{else}--><strong>$name</strong><!--{/if}--> <!--{/loop}--> <!--{if $forum['threadtypes']['selectbox']}--> <span id="threadtypesmenu" class="dropmenu" onmouseover="showMenu({'ctrlid':this.id})">{lang admin_type_more}</span> <div class="popupmenu_popup headermenu_popup" id="threadtypesmenu_menu" style="display: none"> <ul> <!--{loop $forum['threadtypes']['selectbox'] $id $name}--> <li> <!--{if $typeid != $id}--> <a href="forumdisplay.php?fid=$fid&filter=type&typeid=$id$sortadd">$name</a> <!--{else}--> <strong>$name</strong> <!--{/if}--> </li> <!--{/loop}--> </ul> </div> <!--{/if}--> </p> <!--{/if}--> <!--{if $forum['threadsorts']}--> <p> <!--{if !$forum['threadtypes']['listable']}--><!--{if $sortid}--><a href="forumdisplay.php?fid=$fid">{lang forum_viewall}</a><!--{else}--><strong>{lang forum_viewall}</strong><!--{/if}--><!--{/if}--> <!--{loop $forum['threadsorts']['flat'] $id $name}--><!--{if $sortid != $id}--><a href="forumdisplay.php?fid=$fid&filter=sort&sortid=$id$typeadd">$name</a><!--{else}--><strong>$name</strong><!--{/if}--> <!--{/loop}--> <!--{if $forum['threadsorts']['selectbox']}--> <span id="threadsortsmenu" class="dropmenu" onmouseover="showMenu({'ctrlid':this.id})">{lang admin_type_more}</span> <div class="popupmenu_popup headermenu_popup" id="threadsortsmenu_menu" style="display: none"> <ul> <!--{loop $forum['threadsorts']['selectbox'] $id $name}--> <li> <!--{if $sortid != $id}--> <a href="forumdisplay.php?fid=$fid&filter=sort&sortid=$id$typeadd">$name</a> <!--{else}--> <strong>$name</strong> <!--{/if}--> </li> <!--{/loop}--> </ul> </div> <!--{/if}--> </p> <!--{/if}--> </div> <!--{/if}--> <div id="threadlist" class="threadlist datalist" style="position: relative;"> <form method="post" name="moderate" id="moderate" action="topicadmin.php?action=moderate&fid=$fid&infloat=yes&nopost=yes"> <input type="hidden" name="formhash" value="{FORMHASH}" /> <input type="hidden" name="listextra" value="$extra" /> <table summary="forum_$fid" {if !$separatepos}id="forum_$fid"{/if} cellspacing="0" cellpadding="0" class="datatable"> <thead class="colplural"> <tr> <td colspan="2"> <a href="javascript:;" id="filtertype" class="dropmenu" onclick="showMenu({'ctrlid':this.id});"><!--{if $filter == poll}-->{lang thread_poll} <!--{elseif $filter == trade}-->{lang thread_trade} <!--{elseif $filter == activity}-->{lang thread_activity} <!--{elseif $filter == debate}-->{lang thread_debate} <!--{elseif $filter == reward}-->{lang thread_reward} <!--{else}-->{lang type}<!--{/if}--></a></td> <!--{if $forum['ismoderator']}--><td class="icon"> </td><!--{/if}--> <th> <ul class="itemfilter s_clear"> <li>{lang thread}:</li> <li{if !$filter} class="current"{/if}><a href="forumdisplay.php?fid=$fid"><span>{lang all}</span></a></li> <li{if $filter == 'digest'} class="current"{/if}><a class="filter" href="forumdisplay.php?fid=$fid&filter=digest"><span>{lang digestposts}</span></a></li> <!--{if $recommendthread }--><li{if $filter == 'recommend'} class="current"{/if}><a class="filter" href="forumdisplay.php?fid={$fid}&filter=recommend&orderby=recommends"><span>{lang order_recommends}</span></a></li><!--{/if}--> <li class="pipe">|</li> <li>{lang dateline_range}:</li> <li{if $filter == 86400} class="current"{/if}><a href="forumdisplay.php?fid=$fid&orderby=$orderby&filter=86400$typeadd$sortadd"><span>{lang last_1_days}</span></a></li> <li{if $filter == 172800} class="current"{/if}><a href="forumdisplay.php?fid=$fid&orderby=$orderby&filter=172800$typeadd$sortadd"><span>{lang last_2_days}</span></a></li> <li{if $filter == 604800} class="current"{/if}><a href="forumdisplay.php?fid=$fid&orderby=$orderby&filter=604800$typeadd$sortadd"><span>{lang last_7_days}</span></a></li> <li{if $filter == 2592000} class="current"{/if}><a href="forumdisplay.php?fid=$fid&orderby=$orderby&filter=2592000$typeadd$sortadd"><span>{lang last_30_days}</span></a></li> <li{if $filter == 7948800} class="current"{/if}><a href="forumdisplay.php?fid=$fid&orderby=$orderby&filter=7948800$typeadd$sortadd"><span>{lang last_90_days}</span></a></li> <li class="pipe">|</li> <li><a class="order {if $orderby == 'heats' || $orderby == 'recommends'}order_active{/if}" href="forumdisplay.php?fid={$fid}&filter=$filter&orderby={if $filter == 'recommend'}recommends{else}heats{/if}$typeadd$sortadd">{lang order_heats}</a></li> </ul> </th> <td class="author"><a href="forumdisplay.php?fid={$fid}&filter=$filter&orderby=dateline$typeadd$sortadd" class="order {if $orderby == 'dateline'}order_active{/if}">{lang author}/{lang time}</a></td> <td class="nums"><a href="forumdisplay.php?fid={$fid}&filter=$filter&orderby=replies$typeadd$sortadd" class="order {if $orderby == 'replies'}order_active{/if}">{lang replies}</a> <a href="forumdisplay.php?fid={$fid}&filter=$filter&orderby=views$typeadd$sortadd" class="order {if $orderby == 'views'}order_active{/if}">{lang views}</a></td> <td class="lastpost"><cite><a href="forumdisplay.php?fid={$fid}&filter=$filter&orderby=lastpost$typeadd$sortadd" class="order {if $orderby == 'lastpost'}order_active{/if}">{lang lastpost}</a></cite></td> </tr> </thead> <!--{if $page == 1 && !empty($announcement)}--> <tbody> <tr> <td class="folder"><img src="{IMGDIR}/ann_icon.gif" alt="{lang announcement}" /></td> <td class="icon"> </td> <!--{if $forum['ismoderator']}--><td class="icon"> </td><!--{/if}--> <th class="subject"><strong>{lang announcement}: <!--{if empty($announcement['type'])}--><a href="announcement.php?id=$announcement #$announcement " target="_blank">$announcement </a><!--{else}--><a href="$announcement " target="_blank">$announcement </a><!--{/if}--></strong></th> <td class="author"> <cite><a href="space.php?uid=$announcement ">$announcement </a></cite> <em>$announcement </em> </td> <td class="nums"> </td> <td class="lastpost"> </td> </tr> </tbody> <!--{/if}--> <!--{if $threadcount}--> <!--{loop $threadlist $key $thread}--> <!--{if $forumseparator == 1 && $separatepos == $key + 1}--> <tbody> <tr> <td class="folder"></td><td> </td> <!--{if $forum['ismoderator']}--><td> </td><!--{/if}--> <th class="subject">{lang forum_thread}</th><td> </td><td> </td><td> </td> </tr> </tbody> <!--{/if}--> <tbody id="$thread "> <tr> <td class="folder"> <a href="viewthread.php?tid=$thread &extra=$extra" title="{lang target_blank}" target="_blank"> <!--{if $thread == 'lock'}--> <img src="{IMGDIR}/folder_lock.gif" /></a> <!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}--> <img src="{IMGDIR}/pin_$thread .gif" alt="$threadsticky[3-$thread ]" /></a> <!--{else}--> <img src="{IMGDIR}/folder_$thread .gif" /></a> <!--{/if}--> </td> <td class="icon"> <!--{if $thread['special'] == 1}--> <a href="forumdisplay.php?fid=$fid&filter=poll"><img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" /></a> <!--{elseif $thread['special'] == 2}--> <a href="forumdisplay.php?fid=$fid&filter=trade"><img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" /></a> <!--{elseif $thread['special'] == 3}--> <a href="forumdisplay.php?fid=$fid&filter=reward"><img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}" <!--{if $thread['price'] < 0}-->class="solved"<!--{/if}--> /></a> <!--{elseif $thread['special'] == 4}--> <a href="forumdisplay.php?fid=$fid&filter=activity"><img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" /></a> <!--{elseif $thread['special'] == 5}--> <a href="forumdisplay.php?fid=$fid&filter=debate"><img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" /></a> <!--{else}--> $thread['icon'] <!--{/if}--> </td> <!--{if $forum['ismoderator']}--> <td class="icon"> <!--{if $thread['fid'] == $fid && $thread['digest'] >= 0}--> <!--{if $thread['displayorder'] <= 3 || $adminid == 1}--> <input onclick="tmodclick(this)" class="checkbox" type="checkbox" name="moderate[]" value="$thread " /> <!--{else}--> <input class="checkbox" type="checkbox" disabled="disabled" /> <!--{/if}--> <!--{else}--> <input class="checkbox" type="checkbox" disabled="disabled" /> <!--{/if}--> </td> <!--{/if}--> <th class="subject $thread "> <label>{$pluginhooks [$key]} </label> <!--{if $thread['moved']}--> <!--{if $forum['ismoderator']}--> <a href="topicadmin.php?action=moderate&optgroup=3&operation=delete&tid=$thread " onclick="showWindow('mods', this.href);return false">{lang thread_moved}:</a> <!--{else}--> {lang thread_moved}: <!--{/if}--> <!--{/if}--> $thread $thread <span id="thread_$thread "><a href="viewthread.php?tid=$thread &extra=$extra"$thread >$thread </a></span> <!--{if $thread['readperm']}--> - [{lang readperm} <span class="bold">$thread </span>]<!--{/if}--> <!--{if $thread['price'] > 0}--> <!--{if $thread['special'] == '3'}--> - <span style="color: #C60">[{lang thread_reward}{$extcredits[$creditstransextra[2]] } <span class="bold">$thread </span> {$extcredits[$creditstransextra[2]] }]</span> <!--{else}--> - [{lang price} {$extcredits[$creditstransextra[1]] } <span class="bold">$thread </span> {$extcredits[$creditstransextra[1]] }] <!--{/if}--> <!--{elseif $thread['special'] == '3' && $thread['price'] < 0}--> - <span style="color: #269F11">[{lang reward_solved}]</span> <!--{/if}--> <!--{if $thread['attachment'] == 2}--> <img src="images/attachicons/image_s.gif" alt="{lang attach_img}" class="attach" /> <!--{elseif $thread['attachment'] == 1}--> <img src="images/attachicons/common.gif" alt="{lang attachment}" class="attach" /> <!--{/if}--> <!--{if $thread['displayorder'] == 0}--> <!--{if $thread }--> <img src="{IMGDIR}/recommend_$thread .gif" class="attach" alt="{lang thread_recommend}" title="{lang thread_recommend}" /> <!--{/if}--> <!--{if $thread }--> <img src="{IMGDIR}/hot_$thread .gif" class="attach" alt="$thread {lang heats}" title="$thread {lang heats}" /> <!--{/if}--> <!--{if $thread['digest'] > 0}--> <img src="{IMGDIR}/digest_$thread .gif" class="attach" alt="{lang thread_digest} $thread " title="{lang thread_digest} $thread " /> <!--{/if}--> <!--{if $thread['rate'] > 0}--> <img src="{IMGDIR}/agree.gif" class="attach" alt="{lang rate_credit_add}" title="{lang rate_credit_add}" /> <!--{/if}--> <!--{/if}--> <!--{if $thread }--> <span class="threadpages">$thread </span> <!--{/if}--> </th> <td class="author"> <div style="float:left;width:28px;padding-top:4px;"> <img src=" class="ava_border" width="25px" height="25px" style="border:1px solid #ccc; padding:2px; margin:0px; background-color:#fff;" /> </div> <div style="float:left;padding:2px 0px 0px 6px;"> <cite> <!--{if $thread['authorid'] && $thread['author']}--> <a href="space.php?uid=$thread ">$thread </a> <!--{else}--> <!--{if $forum['ismoderator']}--> <a href="space.php?uid=$thread ">{lang anonymous}</a> <!--{else}--> {lang anonymous} <!--{/if}--> <!--{/if}--> </cite> <em>$thread </em> </div> </td> <td class="nums"><strong>$thread </strong>/<em>$thread </em></td> <td class="lastpost"> <cite><!--{if $thread['lastposter']}--><a href="{if $thread != -2}space.php?username=$thread {else}viewthread.php?tid=$thread &page={echo max(1, $thread );}{/if}">$thread </a><!--{else}-->{lang anonymous}<!--{/if}--></cite> <em><a href="{if $thread != -2}redirect.php?tid=$thread &goto=lastpost$highlight#lastpost{else}viewthread.php?tid=$thread &page={echo max(1, $thread );}{/if}">$thread </a></em> </td> </tr> </tbody> <!--{/loop}--> <!--{else}--> <tbody><tr><th colspan="6"><p class="nodata">{lang forum_nothreads}</p></th></tr></tbody> <!--{/if}--> </table> <!--{if $forum['ismoderator'] && $threadcount}--> {template topicadmin_modlayer} <!--{/if}--> </form> </div> <div class="pages_btns s_clear"> $multipage <span <!--{if $visitedforums}-->id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"<!--{/if}--> class="pageback"><a href="$indexname">{lang return_index}</a></span> <span class="postbtn" id="newspecialtmp" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"><a href="post.php?action=newthread&fid=$fid"{if !$forum['allowspecialonly']} onclick="showWindow('newthread', this.href);return false;"{/if}>{lang send_posts}</a></span> </div> <!--{if $whosonlinestatus}--> <dl id="onlinelist"> <!--{if $detailstatus}--> <dd> <span class="headactions"><a href="forumdisplay.php?fid=$fid&page=$page&showoldetails=no#online"><img src="{IMGDIR}/collapsed_no.gif" alt="" /></a></span> <h3>{lang forum_activeusers}</h3> </dd> <dd> <ul class="s_clear"> <!--{loop $whosonline $key $online}--> <li title="{lang time}: $online {LF} {lang action}: $online {LF} {lang forum}: $forumname"> <img src="images/common/$online " alt="" /> <!--{if $online['uid']}--> <a href="space.php?uid=$online ">$online </a> <!--{else}--> $online <!--{/if}--> </li> <!--{/loop}--> </ul> </dd> <!--{else}--> <dt> <span class="headactions"><a href="forumdisplay.php?fid=$fid&page=$page&showoldetails=yes#online" class="nobdr"><img src="{IMGDIR}/collapsed_yes.gif" alt="" /></a></span> <h3>{lang forum_activeusers}</h3> </dt> <!--{/if}--> </dl> <!--{/if}--> $pluginhooks </div> </div> <!--{if $infosidestatus == 2}--> <div id="sidebar" class="side" style="$collapse "> <!--{if !empty($qihoo['status']) && ($qihoo['searchbox'] & 2)}--> <div id="qihoosearch" class="sidebox"> <form method="post" action="search.php?srchtype=qihoo" onSubmit="this.target='_blank';"> <input type="hidden" name="searchsubmit" value="yes" /> <input type="text" class="txt" name="srchtxt" size="20" value="$qihoo_searchboxtxt" /> <button type="submit">{lang search}</button> </form> </div> <!--{/if}--> <!--{if $infosidestatus[0]}--> <!--{if !empty($qihoo['status']) && ($qihoo['searchbox'] & 2)}--> <hr class="shadowline"/> <!--{/if}--> <div id="infoside"> {eval request($infosidestatus, 1, 0);} </div> <!--{/if}--> </div> <!--{/if}--> <!--{if $allowpost && ($allowposttrade || $allowpostpoll || $allowpostreward || $allowpostactivity || $allowpostdebate || $threadplugins || $forum['threadsorts'])}--> <ul class="popupmenu_popup postmenu" id="newspecial_menu" style="display: none"> <!--{if !$forum['allowspecialonly']}--><li><a href="post.php?action=newthread&fid=$fid" onclick="showWindow('newthread', this.href);doane(event)">{lang post_newthread}</a></li><!--{/if}--> <!--{if $allowpostpoll}--><li class="poll"><a href="post.php?action=newthread&fid=$fid&special=1">{lang post_newthreadpoll}</a></li><!--{/if}--> <!--{if $allowpostreward}--><li class="reward"><a href="post.php?action=newthread&fid=$fid&special=3">{lang post_newthreadreward}</a></li><!--{/if}--> <!--{if $allowpostdebate}--><li class="debate"><a href="post.php?action=newthread&fid=$fid&special=5">{lang post_newthreaddebate}</a></li><!--{/if}--> <!--{if $allowpostactivity}--><li class="activity"><a href="post.php?action=newthread&fid=$fid&special=4">{lang post_newthreadactivity}</a></li><!--{/if}--> <!--{if $allowposttrade}--><li class="trade"><a href="post.php?action=newthread&fid=$fid&special=2">{lang post_newthreadtrade}</a></li><!--{/if}--> <!--{if $threadplugins}--> <!--{loop $forum['threadplugin'] $tpid}--> <!--{if array_key_exists($tpid, $threadplugins) && @in_array($tpid, $allowthreadplugin)}--> <li class="popupmenu_option"{if $threadplugins[$tpid] } style="background-image:url($threadplugins[$tpid] )"{/if}><a href="post.php?action=newthread&fid=$fid&specialextra=$tpid">{$threadplugins[$tpid] }</a></li> <!--{/if}--> <!--{/loop}--> <!--{/if}--> <!--{if $forum['threadsorts'] && !$forum['allowspecialonly']}--> <!--{loop $forum['threadsorts']['types'] $id $threadsorts}--> <!--{if $forum['threadsorts']['show'][$id]}--> <li class="popupmenu_option"><a href="post.php?action=newthread&fid=$fid&extra=$extra&sortid=$id">$threadsorts</a></li> <!--{/if}--> <!--{/loop}--> <!--{loop $forum['typemodels'] $id $model}--> <li class="popupmenu_option"><a href="post.php?action=newthread&fid=$fid&extra=$extra&modelid=$id">$model </a></li> <!--{/loop}--> <!--{/if}--> </ul> <!--{/if}--> <ul class="popupmenu_popup headermenu_popup filter_popup" id="filtertype_menu" style="display: none;"> <li><a href="forumdisplay.php?fid=$fid">{lang forum_viewall}</a></li> <!--{if $showpoll}--><li {if $filter == 'poll'}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=poll">{lang thread_poll}</a></li><!--{/if}--> <!--{if $showtrade}--><li {if $filter == 'trade'}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=trade">{lang thread_trade}</a></li><!--{/if}--> <!--{if $showreward}--><li {if $filter == 'reward'}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=reward">{lang thread_reward}</a></li><!--{/if}--> <!--{if $showactivity}--><li {if $filter == 'activity'}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=activity">{lang thread_activity}</a></li><!--{/if}--> <!--{if $showdebate}--><li {if $filter == 'debate'}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=debate">{lang thread_debate}</a></li><!--{/if}--> <!--{if $threadplugins}--> <!--{loop $forum['threadplugin'] $tpid}--> <!--{if array_key_exists($tpid, $threadplugins) && @in_array($tpid, $allowthreadplugin)}--> <li {if $filter == 'special' && $extraid == $tpid}class="active"{/if}><a href="forumdisplay.php?fid=$fid&filter=special&extraid=$tpid">{$threadplugins[$tpid] }</a></li> <!--{/if}--> <!--{/loop}--> <!--{/if}--> </ul> <!--{if $visitedforums}--> <ul class="popupmenu_popup" id="visitedforums_menu" style="display: none"> $visitedforums </ul> <!--{/if}--> <!--{if $forumjump}--> <div class="popupmenu_popup" id="fjump_menu" style="display: none"> $forummenu </div> <!--{/if}--> <!--{if $maxpage > 1}--> <script type="text/javascript">document.onkeyup = function(e){keyPageScroll(e, {if $page > 1}1{else}0{/if}, {if $page < $maxpage}1{else}0{/if}, 'forumdisplay.php?fid=$fid$forumdisplayadd', $page);}</script> <!--{/if}--> {subtemplate footer}
2018-10-31
117513 阅读
5 评论
老闆
2018-10-31
7.2 footer.htm模板备份
模板改坏了先用以下代码覆盖: </div> {subtemplate jsmenu} <!--{if $prompts['newbietask'] && $newbietasks}-->{template task_newbie_js}<!--{/if}--> <!--{if $admode && !empty($advlist)}--> <div class="ad_footerbanner" id="ad_footerbanner1">$advlist </div><!--{if $advlist }--><div class="ad_footerbanner" id="ad_footerbanner2">$advlist </div><!--{/if}--><!--{if $advlist }--><div class="ad_footerbanner" id="ad_footerbanner3">$advlist </div><!--{/if}--> <!--{else}--> <div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div> <!--{/if}--> $pluginhooks <div id="footer"> <div class="wrap s_clear"> <div id="footlink"> <p> <strong><a href="$siteurl" target="_blank">$sitename</a></strong> <!--{if $icp}-->( <a href=" target="_blank">$icp</a>)<!--{/if}--> <span class="pipe">|</span><a href="mailto:$adminemail">{lang contactus}</a> <!--{if $allowviewstats}--><span class="pipe">|</span><a href="stats.php">{lang stats}</a><!--{/if}--> <!--{if $archiverstatus}--><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><!--{/if}--> <!--{if $wapstatus}--><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><!--{/if}--> <!--{if $statcode}--><span class="pipe">| $statcode</span><!--{/if}--> $pluginhooks </p> <p class="smalltext"> {lang time_now} <!--{if debuginfo()}-->, <span id="debuginfo">Processed in $debuginfo second(s), $debuginfo queries<!--{if $gzipcompress}-->, Gzip enabled<!--{/if}--></span><!--{/if}-->. </p> </div> <div id="rightinfo"> <p>Powered by <strong><a href=" target="_blank">Discuz!</a></strong> <em>$version</em><!--{if !empty($boardlicensed)}--> <a href=" target="_blank">Licensed</a><!--{/if}--></p> <p class="smalltext">© 2001-2009 <a href=" target="_blank">Comsenz Inc.</a></p> </div> {eval updatesession();} </div> </div> <!--{if $_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes'}--> <script type="text/javascript" src="{$jspath}iframe.js?{VERHASH}"></script> <!--{/if}--> {eval output();} </body> </html>
2018-10-31
107378 阅读
3 评论
老闆
2018-10-31
post.htm模板原文件
模板修改壞掉了試用以下代码覆盖: {subtemplate header} <!--{block actiontitle}--><!--{if $action == 'newthread'}--><!--{if $special == 0}-->{lang post_newthread}<!--{elseif $special == 1}-->{lang post_newthreadpoll}<!--{elseif $special == 2}-->{lang post_newthreadtrade}<!--{elseif $special == 3}-->{lang post_newthreadreward}<!--{elseif $special == 4}-->{lang post_newthreadactivity}<!--{elseif $special == 5}-->{lang post_newthreaddebate}<!--{elseif $specialextra}--> {$threadplugins[$specialextra] }<!--{/if}--><!--{elseif $action == 'reply' && !empty($addtrade)}-->{lang trade_add_post}<!--{elseif $action == 'reply'}-->{lang join_thread}<!--{elseif $action == 'edit'}-->{lang edit_thread}<!--{/if}--><!--{/block}--> <div id="nav"><a href="$indexname">$bbname</a> $navigation » $actiontitle</div> {eval $adveditor = $isfirstpost && $special || $special == 2 && ($action == 'newthread' || $action == 'reply' && !empty($addtrade) || $action == 'edit' && $thread['special'] == 2);}{eval $advmore = !$showthreadsorts && !$special || $action == 'reply' && empty($addtrade) || $action == 'edit' && !$isfirstpost && ($thread['special'] == 2 && !$special || $thread['special'] != 2);}<div id="wrap" class="wrap s_clear"><div class="main"><div class="content editorcontent"> <form method="post" id="postform" {if $action == 'newthread'}action="post.php?action={if $special != 2}newthread{else}newtrade{/if}&fid=$fid&extra=$extra&topicsubmit=yes" {elseif $action == 'reply'}action="post.php?action=reply&fid=$fid&tid=$tid&extra=$extra&replysubmit=yes" {elseif $action == 'edit'}action="post.php?action=edit&extra=$extra&editsubmit=yes&mod=$mod" $enctype {/if} onsubmit="return validate(this)"> <input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" /> <input type="hidden" name="posttime" id="posttime" value="$timestamp" /> <!--{if !empty($modthreadkey)}--><input type="hidden" name="modthreadkey" id="modthreadkey" value="$modthreadkey" /><!--{/if}--> <input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editormode" /> <!--{if $action == 'reply'}--> <input type="hidden" name="noticeauthor" value="$noticeauthor" /> <input type="hidden" name="noticetrimstr" value="$noticetrimstr" /> <input type="hidden" name="noticeauthormsg" value="$noticeauthormsg" /> <!--{/if}--> <!--{if $action == 'edit'}--> <input type="hidden" name="fid" id="fid" value="$fid" /> <input type="hidden" name="tid" value="$tid" /> <input type="hidden" name="pid" value="$pid" /> <input type="hidden" name="page" value="$page" /> <!--{/if}--> <!--{if $special}--> <input type="hidden" name="special" value="$special" /> <!--{/if}--> <!--{if $specialextra}--> <input type="hidden" name="specialextra" value="$specialextra" /> <!--{/if}--> <!--{if $isfirstpost}--> <input type="hidden" name="iconid" id="iconid" value="$thread " /> <!--{/if}--> <div class="s_clear"{if !$showthreadsorts && !$adveditor} id="editorbox"{/if}> <h3 class="float_ctrl"> <em id="returnmessage"> $actiontitle </em> <!--{if $action == 'newthread' && $modnewthreads}--><em class="needverify">{lang approve}</em><!--{/if}--> <!--{if $action == 'reply' && $modnewreplies}--><em class="needverify">{lang approve}</em><!--{/if}--> <!--{block creditstring}--><!--{loop $postcredits $id $credit}--><!--{if $credit != ''}-->{$extcredits[$id] } {if $credit >= 0}+$credit{else}$credit{/if} {$extcredits[$id] } <!--{/if}--><!--{/loop}--><!--{/block}--> <!--{if $creditstring}--> <span><a href="faq.php?action=credits&fid=$fid" target="_blank" title="{lang credits_policy}"><!--{if $action == 'newthread'}-->{lang post_credits_newthread}<!--{elseif $action == 'reply'}-->{lang post_credits_newreply}<!--{/if}--> $creditstring</a></span> <!--{/if}--> </h3> <div class="postbox" id="postbox"> {$pluginhooks } <div class="float_postinfo s_clear"> <!--{if !$special && $isfirstpost}--> <em id="icon" class="dropmenu" onclick="showMenu({'ctrlid':this.id})"><img id="icon_img" src="images/icons/{if $action == 'edit' && $thread }{$_DCACHE['icons'][$thread ]}{else}icon1.gif{/if}" /></em> <ul id="icon_menu" class="popupmenu_popup" style="display:none"> <!--{loop $_DCACHE['icons'] $id $icon}--> <li><a href="javascript:;"><img onclick="switchicon($id, this)" src="images/icons/$icon" alt="" /></a></li> <!--{/loop}--> </ul> <!--{/if}--> <!--{if $action == 'reply' && !empty($addtrade) || $action == 'edit' && $thread['special'] == 2 && !$postinfo['first']}--> <input name="subject" type="hidden" value="" /> <!--{else}--> <!--{if $action != 'reply'}--> <span><input name="subject" id="subject" prompt="post_subject" class="txt" value="$postinfo " tabindex="1" /></span> <!--{else}--> <span id="subjecthide" class="left">RE: $thread [<a href="javascript:;" onclick="display('subjecthide');display('subjectbox');$('subject').value='RE: {echo htmlspecialchars(str_replace('\'', '\\\'', $thread ))}'">{lang modify}</a>]</span> <span id="subjectbox" style="display:none"><input name="subject" id="subject" class="txt" value="" tabindex="1" /></span> <!--{/if}--> <!--{/if}--> <!--{if $action == 'edit' && ($isfirstpost && $thread['replies'] < 1 || !$isfirstpost && ($isorigauthor || $forum['ismoderator']))}--> <!--{if !$rushreply}--> <div class="right"><input type="checkbox" name="delete" id="delete" value="1" title="{lang post_delpost}{if $thread == 3}{lang reward_price_back}{/if}"><label for="delete">{lang delete_check}</label></div> <!--{/if}--> <!--{/if}--> <div class="left"> <!--{if !$special && ($threadsorts = $forum ) && ($action == 'newthread' || $action == 'edit' && $isfirstpost && !$thread['sortid'])}--> <div class="float_typeid"> <select name="sortid" id="sortid" change="switchsort()"> <option value="0">{lang threadtype_option}</option> <!--{loop $threadsorts $tsortid $name}--> <!--{if !empty($modelid) && $threadsorts [$tsortid] == $modelid || empty($modelid)}--> <option value="$tsortid"{if $sortid == $tsortid} selected="selected"{/if}>{echo strip_tags($name);}</option> <!--{/if}--> <!--{/loop}--> </select> </div> <!--{/if}--> <!--{if $action == 'edit' && $isfirstpost && $sortid}--> <input type="hidden" name="sortid" value="$sortid" /> <!--{/if}--> <!--{if $isfirstpost && $forum }--> <div class="float_typeid"> <select name="typeid" id="typeid"> <option value="0">{lang types}</option> <!--{loop $forum $typeid $name}--> <option value="$typeid"{if $thread['typeid'] == $typeid} selected="selected"{/if}>{echo strip_tags($name);}</option> <!--{/loop}--> </select> </div> <!--{/if}--> </div> </div> <!--{if !$isfirstpost && $thread == 5 && empty($firststand) && $action != 'edit'}--> <div class="viewpoint s_clear"> <p class="left">{lang debate_viewpoint}: </p> <div class="float_typeid short_select"> <select id="stand" name="stand"> <option value="0">{lang debate_neutral}</option> <option value="1"{if $stand == 1} selected{/if}>{lang debate_square}</option> <option value="2"{if $stand == 2} selected{/if}>{lang debate_opponent}</option> </select> </div> </div> <!--{/if}--> <!--{if $showthreadsorts}--> <div class="classifieds"> <table cellpadding="0" cellspacing="0" class="formtable"> <tbody id="threadsorts"><span id="threadsortswait"></span></tbody> </table> </div> <!--{elseif $adveditor}--> <!--{if $special == 1}-->{template post_poll} <!--{elseif $special == 2 && ($action != 'edit' || ($action == 'edit' && ($authorid['authorid'] == $discuz_uid && $allowposttrade || $allowedittrade)))}-->{template post_trade} <!--{elseif $special == 3}-->{template post_reward} <!--{elseif $special == 4}-->{template post_activity} <!--{elseif $special == 5}-->{template post_debate} <!--{elseif $specialextra}--><div class="specialpost s_clear">$threadplughtml</div> <!--{/if}--> <!--{/if}--> {subtemplate post_editor} {$pluginhooks } <!--{if $action == 'newthread' || $action == 'edit' && $isfirstpost}--> <div class="columntype"> <table cellpadding="0" cellspacing="0"><tr> <!--{if $tagstatus}--> <td class="firstlist posttags"> <p><strong>{lang post_tag}:</strong> {lang tag_comment}</p> <p><input type="text" name="tags" id="tags" class="txt" value="$threadtags" tabindex="1" /><button name="addtags" type="button" onclick="relatekw();return false">+{lang searchtags}</button> <span id="tagselect"></span></p> </div> </td> <!--{/if}--> <!--{if $allowsetreadperm}--> <td class="firstlist"> <p><strong>{lang readperm}:</strong></p> <p><input type="text" name="readperm" value="$thread " class="txt" tabindex="1" /> {lang post_zero_is_nopermission}</p> </td> <!--{/if}--> <!--{if $maxprice && !$special}--> <td class="firstlist"> <p><strong>{lang price}</strong>({$extcredits[$creditstransextra[1]] }):</p> <p><input type="text" name="price" value="$thread " class="txt" tabindex="1" /> {$extcredits[$creditstransextra[1]] } <span title="{lang post_price_free_comment}">{lang post_price_comment}</span> </td> <!--{/if}--> </tr></table> </div> <!--{/if}--> <!--{if $maxprice && ($action == 'newthread' || $action == 'edit' && $isfirstpost)}--> <span class="lighttxt"> <!--{if $maxincperthread}--><img src="{IMGDIR}/arrow_right.gif" />{lang post_price_income_comment}<!--{/if}--> <!--{if $maxchargespan}--><img src="{IMGDIR}/arrow_right.gif" />{lang post_price_charge_comment}<!--{if $action == 'edit' && $freechargehours}-->{lang post_price_free_chargehours}<!--{/if}--><!--{/if}--> </span> <!--{/if}--> <div class="columntype"> <h4>{lang post_option}:</h4> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="firstlist"> <!--{if ($forum['allowhtml'] || ($action == 'edit' && ($org['htmlon'] & 1))) && $allowhtml}--> <p><input type="checkbox" name="htmlon" id="htmlon" value="1" $htmloncheck /><label for="htmlon">{lang post_html}</label></p> <!--{else}--> <p><input type="checkbox" name="htmlon" id="htmlon" value="0" $htmloncheck disabled="disabled" /><label for="htmlon">{lang post_html}</label></p> <!--{/if}--> <p><input type="checkbox" id="allowimgcode" disabled{if $forum['allowimgcode']} checked="checked"{/if} /><label for="allowimgcode">{lang post_imgcode}</label></p> </td> <td> <p><input type="checkbox" name="parseurloff" id="parseurloff" value="1" $urloffcheck tabindex="1" /><label for="parseurloff">{lang disable} {lang post_parseurl}</label></p> <p><input type="checkbox" name="smileyoff" id="smileyoff" value="1" $smileyoffcheck tabindex="1" /><label for="smileyoff">{lang disable} {faq smilies}</label></p> <p><input type="checkbox" name="bbcodeoff" id="bbcodeoff" value="1" $codeoffcheck tabindex="1" /><label for="bbcodeoff">{lang disable} {faq discuzcode}</label></p> <!--{if $tagstatus && ($action == 'newthread' || $action == 'edit' && $isfirstpost)}--> <p><input type="checkbox" name="tagoff" id="tagoff" {if !empty($tagoffcheck)}checked="checked"{/if} tabindex="1" /><label for="tagoff">{lang disable} {lang tag_parse}</label></p> <!--{/if}--> </td> <td> <!--{if $discuz_uid}--> <!--{if $action == 'newthread' || $action == 'edit' && $isfirstpost}--> <p><input type="checkbox" name="ordertype" id="ordertype" value="1" $ordertypecheck tabindex="1" /><label for="ordertype">{lang post_descview}</label></p> <!--{/if}--> <!--{if $action == 'newthread'}--> <p><input type="checkbox" name="attention_add" id="attention_add" checked="checked" value="1" /><label for="attention_add">{lang attention_add}</label></p> <!--{elseif $action == 'reply' || $action == 'edit'}--> <!--{if $has_attention}--> <p><input type="checkbox" name="attention_remove" id="attention_remove" value="1" /><label for="attention_remove">{lang attention_remove}</label></p> <!--{else}--> <p><input type="checkbox" name="attention_add" id="attention_add" value="1" /><label for="attention_add">{lang attention_add}</label></p> <!--{/if}--> <!--{/if}--> <!--{/if}--> <p><input type="checkbox" name="usesig" id="usesig" value="1" {if !$maxsigsize}disabled {else}$usesigcheck {/if}tabindex="1" /><label for="usesig">{lang post_show_sig}</label></p> <!--{if $action != 'edit'}--> <!--{if $allowanonymous}--><p><input type="checkbox" name="isanonymous" id="isanonymous" value="1" tabindex="1" /><label for="isanonymous">{lang post_anonymous}</label></p><!--{/if}--> <!--{else}--> <!--{if $allowanonymous || (!$allowanonymous && $orig['anonymous'])}--><p><input type="checkbox" name="isanonymous" id="isanonymous" value="1" {if $orig['anonymous']}checked="checked"{/if} tabindex="1" /><label for="isanonymous">{lang post_anonymous}</label></p><!--{/if}--> <!--{/if}--> </td> <td> <!--{if $action == 'newthread' && $forum['ismoderator'] && ($allowdirectpost || !$forum['modnewposts'])}--> <!--{if $action == 'newthread' && $forum['ismoderator'] && ($allowdirectpost || !$forum['modnewposts'])}--> <p><input type="checkbox" name="sticktopic" id="sticktopic" value="1" $stickcheck tabindex="1" /><label for="sticktopic">{lang post_stick_thread}</label></p> <p><input type="checkbox" name="addtodigest" id="addtodigest" value="1" $digestcheck tabindex="1" /><label for="addtodigest">{lang post_digest_thread}</label></p> <!--{/if}--> <!--{elseif $action == 'edit' && $auditstatuson}--> <p><input type="checkbox" name="audit" id="audit" value="1"><label for="audit">{lang auditstatuson}</label></p> <!--{/if}--> <!--{if $uchome['addfeed'] && $ucappopen['UCHOME'] && $forum['allowfeed']}--> <p><input type="checkbox" name="addfeed" id="addfeed" value="1" $addfeedcheck><label for="addfeed">{lang addfeed}</label></p> <!--{/if}--> <!--{if $action == 'newthread' || $action == 'edit' && $isfirstpost}--> <p><input type="checkbox" name="hiddenreplies" id="hiddenreplies"{if $hiddenreplies} checked="checked"{/if} value="1"><label for="hiddenreplies">{lang hiddenreplies}</label></p> <!--{/if}--> <!--{if $action == 'newthread' && $allowpostrushreply}--> <p><input type="checkbox" name="rushreply" id="rushreply" value="1"><label for="rushreply">{lang rushreply}</label></p> <!--{/if}--> <!--{if $action == 'edit' && getstatus($thread['status'], 3)}--> <p><input type="checkbox" disabled="disabled" checked="checked"><label for="rushreply">{lang rushreply}</label></p> <!--{/if}--> </td> </tr> </table><br /> </div> <div class="btnbar"> <span> <!--{if $action == 'newthread' && $sitemessage || $action == 'reply' && $sitemessage }--> <a href="javascript:;" id="custominfo" class="right"><img src="{IMGDIR}/info.gif" alt="{lang faq}" /></a> <!--{/if}--> </span> <button type="submit" id="postsubmit" prompt="post_submit" value="true" name="{if $action == 'newthread'}topicsubmit{elseif $action == 'reply'}replysubmit{elseif $action == 'edit'}editsubmit{/if}" tabindex="1"> <!--{if $action == 'newthread'}--> <!--{if $special == 0}-->{lang post_newthread} <!--{elseif $special == 1}-->{lang post_newthreadpoll} <!--{elseif $special == 2}-->{lang post_newthreadtrade} <!--{elseif $special == 3}-->{lang post_newthreadreward} <!--{elseif $special == 4}-->{lang post_newthreadactivity} <!--{elseif $special == 5}-->{lang post_newthreaddebate} <!--{elseif $special == 127}--> <!--{if $buttontext}-->$buttontext<!--{else}-->{lang post_newthread}<!--{/if}--> <!--{/if}--> <!--{elseif $action == 'reply' && !empty($addtrade)}-->{lang trade_add_post} <!--{elseif $action == 'reply'}-->{lang join_thread} <!--{elseif $action == 'edit'}-->{lang edit_thread} <!--{/if}--> </button> <!--{if $action != 'edit' && ($secqaacheck || $seccodecheck)}-->{subtemplate seccheck}<!--{/if}--> </div> {$pluginhooks } </div> </div> </form> </div></div></div> <div id="{$editorid}_menus" class="editorrow" style="overflow: hidden; margin-top: -5px; height: 0; border: none; background: transparent;"> {subtemplate post_editor_menu}</div> <!--{if $special}--><script type="text/javascript" src="{$jspath}calendar.js?{VERHASH}"></script><!--{/if}--><script type="text/javascript"> var postminchars = parseInt('$minpostsize'); var postmaxchars = parseInt('$maxpostsize'); var disablepostctrl = parseInt('$disablepostctrl'); var seccodecheck = parseInt('$seccodecheck'); var secqaacheck = parseInt('$secqaacheck'); var typerequired = parseInt('$forum '); var special = parseInt('$special'); var isfirstpost = {if $isfirstpost}1{else}0{/if}; var allowposttrade = parseInt('$allowposttrade'); var allowpostreward = parseInt('$allowpostreward'); var allowpostactivity = parseInt('$allowpostactivity'); var sortid = parseInt('$sortid'); var special = parseInt('$special'); {if $isfirstpost && $forum['threadtypes']['types']} simulateSelect('typeid'); {/if} {if !$isfirstpost && $thread['special'] == 5 && empty($firststand) && $action != 'edit'} simulateSelect('stand'); {/if} {if !$special && $forum && ($action == 'newthread' || $action == 'edit' && $isfirstpost && !$thread )} simulateSelect('sortid'); function switchsort() { if($('sortid').value) { saveData(1); {if $isfirstpost && $sortid} ajaxget('post.php?action=threadsorts&sortid=' + $('sortid').value + '&fid=$fid&allowpostimg=$allowpostimg{if !empty($modelid)}&modelid=$modelid{/if}{if !empty($modthreadkey)}&modthreadkey=$modthreadkey{/if}', 'threadsorts', 'threadsortswait') {else} location.href = 'post.php?action=$action&fid=$fid{if !empty($tid)}&tid=$tid{/if}{if !empty($pid)}&pid=$pid{/if}{if !empty($modelid)}&modelid=$modelid{/if}&extra=$extra{if !$sortid}&cedit=yes{/if}&sortid=' + $('sortid').value; {/if} Editorwin = 0; } } {/if} {if $isfirstpost && $sortid} ajaxget('post.php?action=threadsorts&sortid=$sortid&fid=$fid&allowpostimg=$allowpostimg{if !empty($tid)}&tid=$tid{/if}&inajax=1{if !empty($modthreadkey)}&modthreadkey=$modthreadkey{/if}', 'threadsorts', 'threadsortswait', 'threadsortswait'); {/if} {if $action == 'newthread' && $sitemessage || $action == 'reply' && $sitemessage } showPrompt('custominfo', 'click', '{if $action == 'newthread'}{echo trim($sitemessage )])}{elseif $action == 'reply'}{echo trim($sitemessage )])}{/if}', $sitemessage ); {/if} {if $swfupload != 1 && $allowpostattach}addAttach();{/if} {if $swfupload != 1 && $allowpostimg}addAttach('img');{/if} </script> {subtemplate footer}
2018-10-31
110178 阅读
3 评论
老闆
2018-10-31
7.2 discuz.htm 模板备份
模板改坏了先试试用以下代码恢復原状 {subtemplate header} <div id="nav"><a href="$indexname">$bbname</a> » {lang home}</div> <!--{if $admode && !empty($advlist['text'])}--><div class="ad_text" id="ad_text"><table summary="Text Ad" cellpadding="0" cellspacing="1">$advlist </table></div><!--{else}--><div id="ad_text"></div><!--{/if}--> {template xshow} <div id="wrap"{if $infosidestatus['allow'] < 2} class="wrap s_clear"{else} class="wrap with_side s_clear"{/if}> <!--{if $infosidestatus == 2}--> <a id="sidebar_img" href="javascript:;" onclick="sidebar_collapse(['{lang sidebar_collapsed_yes}', '{lang sidebar_collapsed_no}']);" class="$collapseimg "><!--{if $collapseimg == 'collapsed_yes'}-->{lang sidebar_collapsed_yes}<!--{else}-->{lang sidebar_collapsed_no}<!--{/if}--></a> <!--{elseif $infosidestatus == 1}--> <a id="sidebar_img" href="javascript:;" onclick="sidebar_collapse(['', '{lang sidebar_collapsed_no}']);" class="collapsed_yes">{lang sidebar_collapsed_yes}</a> <!--{/if}--> <div class="main"><div class="content"> $pluginhooks {template index_header} <!--{if $indexhot['status']}--> {subtemplate index_heats} <!--{/if}--> $pluginhooks <div class="itemtitle s_clear"> <p class="right forumcount"> {lang index_today}: <em>$todayposts</em>, {lang index_yesterday}: <em>$postdata[0]</em>, {lang index_members}: <em>$totalmembers</em> </p> <!--{if $indextype}--> {subtemplate index_navbar} <!--{/if}--> </div> <!--{eval $rkey=array_rand($catlist);}--> $pluginhooks <!--{loop $catlist $key $cat}--> <!--{if $cat['forumscount']}--> <div class="mainbox list"> <span class="headactions"> <!--{if $cat['moderators']}-->{lang forum_category_modedby}: $cat <!--{/if}--> <img id="category_$cat _img" src="{IMGDIR}/$cat " title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat ');" /> </span> <h3><a href="$indexname?gid=$cat " style="{if $cat }color: {$cat };{/if}">$cat </a></h3> <table id="category_$cat " summary="category$cat " cellspacing="0" cellpadding="0" style="$collapse['category_'.$cat ]"> <!--{if !$cat['forumcolumns']}--> <!--{loop $cat $forumid}--> <!--{eval $forum=$forumlist[$forumid];}--> <tbody id="forum$forum "> <tr> <th$forum > $forum <div class="left"> <h2><a href="forumdisplay.php?fid=$forum " {if $forum }target="_blank"{/if} style="{if $forum }color: {$forum };{/if}">$forum </a><!--{if $forum && !$forum['redirect']}--><em> ({lang index_today}: <strong>$forum </strong>)</em><!--{/if}--></h2> <!--{if $forum }--><p>$forum </p><!--{/if}--> <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}--> <!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><p>{lang forum_moderators}: $forum </p><!--{else}--><span class="dropmenu" id="mod$forum " onmouseover="showMenu({'ctrlid':this.id})">{lang forum_moderators}</span><ul class="popupmenu_popup headermenu_popup" id="mod$forum _menu" style="display: none">$forum </ul><!--{/if}--><!--{/if}--> </div> </th> <td class="forumnums"> <!--{if $forum['redirect']}-->N/A<!--{else}--><em>$forum </em> / $forum <!--{/if}--> </td> <td class="forumlast"> <!--{if $forum['permission'] == 1}--> {lang private_forum} <!--{else}--> <!--{if $forum['redirect']}--> <a href="forumdisplay.php?fid=$forum ">{lang url_link}</a> <!--{elseif is_array($forum['lastpost'])}--> <p><a href="redirect.php?tid=$forum &goto=lastpost#lastpost">{echo cutstr($forum , 30)}</a></p> <cite><!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum </cite> <!--{else}--> {lang never} <!--{/if}--> <!--{/if}--> </td> </tr> </tbody> <!--{/loop}--> <!--{else}--> <tr class="narrowlist"> <!--{loop $cat['forums'] $forumid}--> <!--{eval $forum=$forumlist[$forumid];}--> <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}--> </tr></tbody> <!--{if $forum['orderid'] < $cat['forumscount']}--> <tbody><tr> <!--{/if}--> <!--{/if}--> <th width="$cat "{$forum }> <h2><a href="forumdisplay.php?fid=$forum " {if $forum }target="_blank"{/if} style="{if $forum }color: {$forum };{/if}">$forum </a><!--{if $forum }--><em> ({lang index_today}: <strong>$forum </strong>)</em><!--{/if}--></h2> <!--{if !$forum }--> <p>{lang forum_threads}: $forum , {lang forum_posts}: $forum </p> <!--{if $forum['permission'] == 1}--> <p>{lang private_forum} <!--{else}--> <p>{lang forum_lastpost}: <!--{if is_array($forum['lastpost'])}--> <a href="redirect.php?tid=$forum &goto=lastpost#lastpost" title="{echo cutstr($forum , 30)} {lang forum_lastpost_by} {if $forum['lastpost']['author']}$forum['lastpost']['authorusername']{else}{lang anonymous}{/if} ">$forum </a> <!--{else}--> {lang never} <!--{/if}--> </p> <!--{/if}--> <!--{else}--> <p>{lang url_link}</p> <!--{/if}--> </th> <!--{/loop}--> $cat['endrows'] <!--{/if}--> </table> </div> <!--{if $admode && !empty($advlist['intercat']) && ($advlist['intercat'][$key] = array_merge(($advlist['intercat'][0] ? $advlist['intercat'][0] : array()), ($advlist['intercat'][$key] ? $advlist['intercat'][$key] : array())))}--><div class="ad_column" id="ad_intercat_$key"><!--{echo $advitems[$advlist['intercat'][$key] [$key])]]}--></div><!--{else}--><div id="ad_intercat_$key"></div><!--{/if}--> <!--{/if}--> <!--{/loop}--> $pluginhooks <!--{if $_DCACHE['forumlinks'][0] || $_DCACHE['forumlinks'][1] || $_DCACHE['forumlinks'][2]}--> <div class="mainbox list"> <span class="headactions"><img id="forumlinks_img" src="{IMGDIR}/$collapseimg .gif" alt="" onclick="toggle_collapse('forumlinks');" /></span> <h3>{lang board_links}</h3> <div id="forumlinks" style="$collapse "> <!--{if $_DCACHE['forumlinks'][0]}--> <div class="forumlinks"> <ul class="s_clear">$_DCACHE['forumlinks'][0]</ul> </div> <!--{/if}--> <!--{if $_DCACHE['forumlinks'][1]}--> <div class="forumimglink"> $_DCACHE['forumlinks'][1] </div> <!--{/if}--> <!--{if $_DCACHE['forumlinks'][2]}--> <div class="forumtxtlink"> <ul class="s_clear"> $_DCACHE['forumlinks'][2] </ul> </div> <!--{/if}--> </div> </div> <!--{/if}--> <!--{if empty($gid) && $maxbdays &&$_DCACHE['birthdays_index']['todaysbdays']}--> <div class="mainbox list" id="bdays"> <h3 id="bdayslist"> <a href="member.php?action=list&type=birthdays">{lang todays_birthdays}</a>: $_DCACHE </h3> </div> <!--{/if}--> <!--{if empty($gid) && $whosonlinestatus}--> <div class="mainbox list" id="online"> <!--{if $whosonlinestatus}--> <!--{if $detailstatus}--> <span class="headactions"><a href="$indexname?showoldetails=no#online" title="{lang pm_close}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang pm_close}" /></a></span> <h3> <strong><a href="member.php?action=online">{lang onlinemember}</a></strong> - <em>$onlinenum</em> {lang onlines} - <em>$membercount</em> {lang index_members}(<em>$invisiblecount</em> {lang index_invisibles}), <em>$guestcount</em> {lang index_guests} - {lang index_mostonlines} <em>$onlineinfo[0]</em> {lang on} <em>$onlineinfo[1]</em>. </h3> <!--{else}--> <span class="headactions"><a href="$indexname?showoldetails=yes#online" class="nobdr"><img src="{IMGDIR}/collapsed_yes.gif" alt="" /></a></span> <h3> <strong><a href="member.php?action=online">{lang onlinemember}</a></strong> - {lang total} <em>$onlinenum</em> {lang onlines} - {lang index_mostonlines} <em>$onlineinfo[0]</em> {lang on} <em>$onlineinfo[1]</em>. </h3> <!--{/if}--> <!--{else}--> <h4><strong><a href="member.php?action=online">{lang onlinemember}</a></strong></h4> <!--{/if}--> <!--{if $whosonlinestatus && $detailstatus}--> <dl id="onlinelist"> <dt>$_DCACHE </dt> <!--{if $detailstatus}--> <dd> <ul class="s_clear"> <!--{if $whosonline}--> <!--{loop $whosonline $key $online}--> <li title="{lang time}: $online {LF}{lang action}: $online <!--{if $online['fid']}-->{LF}{lang forum}: $online <!--{/if}-->"> <img src="images/common/$online " alt="" /> <!--{if $online['uid']}--> <a href="space.php?uid=$online ">$online </a> <!--{else}--> $online <!--{/if}--> </li> <!--{/loop}--> <!--{else}--> <li style="width: auto">{lang online_only_guests}</li> <!--{/if}--> </ul> </dd> <!--{/if}--> </dl> <!--{/if}--> </div> <!--{/if}--> $pluginhooks </div></div> <!--{if $infosidestatus == 2}--> <div id="sidebar" class="side" style="$collapse "> <!--{if !empty($qihoo['status']) && ($qihoo['searchbox'] & 1)}--> <div id="qihoosearch" class="sidebox"> <!--{if !empty($qihoo['status']) && ($qihoo['searchbox'] & 1)}--> <form method="post" action="search.php?srchtype=qihoo" onSubmit="this.target='_blank';"> <input type="hidden" name="searchsubmit" value="yes" /> <input type="text" class="txt" name="srchtxt" value="$qihoo_searchboxtxt" size="20" /> <select name="stype"> <option value="" selected="selected">{lang qihoo_search_filltext}</option> <option value="1">{lang qihoo_search_title}</option> <option value="2">{lang qihoo_search_author}</option> </select> <button name="searchsubmit" type="submit" value="true">{lang search}</button> </form> <!--{if !empty($qihoo['links']['keywords'])}--> <strong>{lang qihoo_hot_searches}</strong> <!--{loop $qihoo['links']['keywords'] $link}--> $link <!--{/loop}--> <!--{/if}--> <!--{if $customtopics}--> <strong>{lang qihoo_custom_topics}</strong> $customtopics [<a href="javascript:;" onclick="showWindow('customtopics', 'misc.php?action=customtopics')">{lang edit}</a>]<br /> <!--{/if}--> <!--{if !empty($qihoo['links']['topics'])}--> <strong>{lang qihoo_topics}</strong> <!--{loop $qihoo['links']['topics'] $url}--> {$url} <!--{/loop}--> <!--{/if}--> <!--{/if}--> </div> <!--{/if}--> <!--{if $infosidestatus[2]}--> <!--{if !empty($qihoo['status']) && ($qihoo['searchbox'] & 1)}--> <hr class="shadowline"/> <!--{/if}--> <div id="infoside"> <!--{if empty($gid)}--> {eval request($infosidestatus, 0, 2);} <!--{else}--> {eval request($infosidestatus, 1, 2);} <!--{/if}--> </div> <!--{/if}--> </div> <!--{/if}--> {subtemplate footer}
2018-10-31
110480 阅读
7 评论
老闆
2018-9-3
DISCUZ X2.5 X3 去掉帖子中图片弹出「下载附件」提示的方法
不喜欢太多DISCUZ不必要的功能在网页上显示 ! 像图片移动经过时显示下载附件 。 下面提供修改解决方法给大家 , 让你的DISCUZ更清爽一点吧 ^^ 预览图: 265 一、x3.0的修改方法: 至template/default/forum/discuzcode.htm文件,查找此代码: mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach }$attach {/if}" $widthcode id="aimg_$attach " inpost="1"{if $_GET['from'] != 'preview'} onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"{/if} /> 修改为: mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach }$attach {/if}" $widthcode id="aimg_$attach " inpost="1"{if $_GET['from'] != 'preview'} {/if} /> 二、x2.5的修改方法: 找到template/default/forum/discuzcode.htm文件,查找(最后一处): alt="$attach " title="$attach " onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" 简单的讲就是将滑鼠移动经过的触发事件程式码拿掉就可以了 "onmouseover="...."
2018-9-3
105075 阅读
6 评论
老闆
2018-9-25
Discuz!7.x 发帖页面的发帖选项代码注释
发现很多人在那块有些功能用不上 我把那块的代码注释了 大家看哪块不想要的 就删了就可以了。 修改如下 templates/default/post.htm 1HTML代码 <!--{if ($forum['allowhtml'] || ($action == 'edit' && ($org['htmlon'] & 1))) && $allowhtml}--> <p><input type="checkbox" name="htmlon" id="htmlon" value="1" $htmloncheck /><label for="htmlon">{lang post_html}</label></p> <!--{else}--> <p><input type="checkbox" name="htmlon" id="htmlon" value="0" $htmloncheck disabled="disabled" /><label for="htmlon">{lang post_html}</label></p> <!--{/if}--> 2img代码 <p><input type="checkbox" id="allowimgcode" disabled{if $forum['allowimgcode']} checked="checked"{/if} /><label for="allowimgcode">{lang post_imgcode}</label></p> 3禁用URL识别 <p><input type="checkbox" name="parseurloff" id="parseurloff" value="1" $urloffcheck tabindex="1" /><label for="parseurloff">{lang disable} {lang post_parseurl}</label></p> 4禁用表情 <p><input type="checkbox" name="smileyoff" id="smileyoff" value="1" $smileyoffcheck tabindex="1" /><label for="smileyoff">{lang disable} {faq smilies}</label></p> 5禁用Discuz代码 <p><input type="checkbox" name="bbcodeoff" id="bbcodeoff" value="1" $codeoffcheck tabindex="1" /><label for="bbcodeoff">{lang disable} {faq discuzcode}</label></p> 6标签解析 <!--{if $tagstatus && ($action == 'newthread' || $action == 'edit' && $isfirstpost)}--> <p><input type="checkbox" name="tagoff" id="tagoff" {if !empty($tagoffcheck)}checked="checked"{/if} tabindex="1" /><label for="tagoff">{lang disable} {lang tag_parse}</label></p> <!--{/if}--> 7倒序看帖 <!--{if $action == 'newthread' || $action == 'edit'}--> <p><input type="checkbox" name="ordertype" id="ordertype" value="1" $ordertypecheck tabindex="1" /><label for="ordertype">{lang post_descview}</label></p> <!--{/if}--> 8关注此主题的新回复/取消关注 <!--{if $action == 'newthread'}--> <p><input type="checkbox" name="attention_add" id="attention_add" checked="checked" value="1" /><label for="attention_add">{lang attention_add}</label></p> <!--{elseif $action == 'reply' || $action == 'edit'}--> <!--{if $has_attention}--> <p><input type="checkbox" name="attention_remove" id="attention_remove" value="1" /><label for="attention_remove">{lang attention_remove}</label></p> <!--{else}--> <p><input type="checkbox" name="attention_add" id="attention_add" value="1" /><label for="attention_add">{lang attention_add}</label></p> <!--{/if}--> <!--{/if}--> 9使用个人签名 <p><input type="checkbox" name="usesig" id="usesig" value="1" {if !$maxsigsize}disabled {else}$usesigcheck {/if}tabindex="1" /><label for="usesig">{lang post_show_sig}</label></p> 10使用匿名发帖 <!--{if $action != 'edit'}--> <!--{if $allowanonymous}--><p><input type="checkbox" name="isanonymous" id="isanonymous" value="1" tabindex="1" /><label for="isanonymous">{lang post_anonymous}</label></p><!--{/if}--> <!--{else}--> <!--{if $allowanonymous || (!$allowanonymous && $orig['anonymous'])}--><p><input type="checkbox" name="isanonymous" id="isanonymous" value="1" {if $orig['anonymous']}checked="checked"{/if} tabindex="1" /><label for="isanonymous">{lang post_anonymous}</label></p><!--{/if}--> <!--{/if}--> 11管理组状态下显示的:置顶主题,加入精华 <!--{if $action == 'newthread' && $forum['ismoderator'] && ($allowdirectpost || !$forum['modnewposts'])}--> <p><input type="checkbox" name="sticktopic" id="sticktopic" value="1" $stickcheck tabindex="1" /><label for="sticktopic">{lang post_stick_thread}</label></p> <p><input type="checkbox" name="addtodigest" id="addtodigest" value="1" $digestcheck tabindex="1" /><label for="addtodigest">{lang post_digest_thread}</label></p> <!--{/if}--> 12通过审核 <!--{elseif $action == 'edit' && $auditstatuson}--> <p><input type="checkbox" name="audit" id="audit" value="1"><label for="audit">{lang auditstatuson}</label></p> 13UCHome时间推送(加入事件) <!--{if $uchome['addfeed'] && $ucappopen['UCHOME'] && $forum['allowfeed']}--> <p><input type="checkbox" name="addfeed" id="addfeed" value="1" $addfeedcheck><label for="addfeed">{lang addfeed}</label></p> <!--{/if}--> 14回复仅作者可见 <!--{if $action == 'newthread' || $action == 'edit'}--> <p><input type="checkbox" name="hiddenreplies" id="hiddenreplies"{if $hiddenreplies} checked="checked"{/if} value="1"><label for="hiddenreplies">{lang hiddenreplies}</label></p> <!--{/if}--> 15抢楼帖 <!--{if $action == 'newthread' && $allowpostrushreply}--> <p><input type="checkbox" name="rushreply" id="rushreply" value="1"><label for="rushreply">{lang rushreply}</label></p> <!--{/if}--> <!--{if $action == 'edit' && getstatus($thread['status'], 3)}--> <p><input type="checkbox" disabled="disabled" checked="checked"><label for="rushreply">{lang rushreply}</label></p> <!--{/if}--> 备註:修改前记得备份文件 以上提供个位参考依据使用方法
2018-9-25
120816 阅读
5 评论
老闆
2018-9-25
discuz!去掉版塊名稱前的圖標
關於discuz!論壇去掉版塊名稱前的圖標的問題,看到很多朋友都在找 其實很簡單。 预览图:暂无 至后台模板目錄的discuz.htm文件。 用ctrl+f查找如下代碼: <th width="$cat "{$forum } 替換為: <th width="$cat "{$forum } style="background-image:none;padding-left:10px !important;">{$forum } 提交ok
2018-9-25
112651 阅读
5 评论
老闆
上一页
1
2
下一页
/ 2 页
下拉加载更多
首页
板块
登录