×
论坛公告
查看详情
不再提醒
繁體
|
簡體
Sclub交友聊天~加入聊天室當版主
(檢舉)
分享
新浪微博
QQ空间
人人网
腾讯微博
Facebook
Google+
Plurk
Twitter
Line
论坛统计
关于我们
我的宠物
软软西瓜
历史今天
首页
社区
板块
风格
代码
聊天
签到
游客
爱秀代码
游客仅可浏览部分版块
请登录解锁全部权限
首页
板块
关于
签到
登录
注册
首页
/
模板修改
模板修改
20
主题 ·
135
帖子
全部
精华
最新
热门
最多阅读
2026-10-15
置顶
精华
我的宠物v1.0 For Discuz!7.2 GBK
我的宠物v1.0 For Discuz!7.2 GBK 正式版发布 1104 1、在后台 dz7joe模板套系 新建7个模板,分别命名为 female male bunny cat dog page_pet page_petrank 2、将压缩包内的对应模板中的代码依次全部复制到新建模板。 3、将 {subtemplate page_pet} {subtemplate page_petrank} 放到discuz模板的 {subtemplate header} 上边。 4、在 默认 模板套系新建1个模板,命名为 joe_pet_api ,将压缩包内对应名称模板的代码复制进去。 5、在默认模板套系的faq模板最上边加 {subtemplate joe_pet_api} 6、最后替换掉 viewthread 文件内容。 7、宠物页面进入链接: 后台更新缓存看效果。 1103 我的宠物v2.0 1216 1212 # 文件 风格包 操作 1 joe_pet_cfg.htm dz7joe 新建 2 page_pet.htm dz7joe 覆盖 3 page_petrank.htm dz7joe 覆盖 4 joe_pet_api.htm default 覆盖 1215
2026-10-15
2752 阅读
11 评论
icode
2026-10-30
置顶
精华
Joe风格 完整安装教程(傻瓜式,逐步配图)
Joe风格 完整安装教程(傻瓜式,逐步配图) 适用:Discuz! 7.2 | 包含:主题界面 + 聊天室 + 宠物 + 签到 + 个人主页封面 + SVG表情 一句话说明 :全程不需要改任何 PHP 文件、不需要 FTP 传文件,所有操作都在论坛后台完成。只要会"复制、粘贴、点提交",就能装完。 一、安装前必读(30 秒) [*]确认论坛是 Discuz! 7.2 ,编码为 GBK (UTF-8 / BIG5 编码的站请勿直接安装,会乱码)。[*]先备份数据库:后台 → 工具 → 数据库 → 备份。有备无患。[*]解压安装包,确认里面有 5 个编号文件夹。 文件夹编号就是安装顺序 ,严格按顺序操作: 1)导入风格 → 2)数据库升级 → 3)default模板套系 → 4)dz7joe模板套系 → 5)jq [*]安装期间你的原风格照常运行,访客无感知。全部装完最后一步才切换,出问题随时一键切回。 安装包: 1257 二、第一步:导入风格(对应文件夹 1) [*]进入后台 → 界面 → 风格管理 。[*]拉到页面最下方,找到 导入风格 一栏。[*]点"浏览",选择安装包里的 1)导入风格\discuz_style_joe风格.xml 点 提交 。[*]提示成功后,风格列表里会多出 Joe风格 。 【插图01:风格管理页面底部的"导入风格"】 1244 【插图02:导入成功后风格列表出现 Joe风格】 1245 注意: · 这个 XML 是 GBK 编码, 不要用记事本"另存为 UTF-8" ,也不要改文件名。 · 此时它只是一个 空壳 ,网站外观不会有任何变化。 先不要启用它! 三、第二步:数据库升级(对应文件夹 2) [*]后台 → 工具 → 数据库 → 升级 。[*]用记事本打开 2)数据库升级\数据库升级代码.txt ,里面共 5 段 SQL, 一段一段 粘进文本框执行: [*]聊天室表 cdb_chatroom[*]聊天室艾特表 cdb_chatroom_at[*]个人主页封面字段(ALTER 语句,注意必须是 varchar(255) )[*]签到表 cdb_joesign[*]SVG 表情 40 条(INSERT 语句,整段一次执行) 【插图03:数据库升级页面粘贴 SQL】 1246 重要: · 如果你的表前缀不是 cdb_(安装论坛时没改过的话就是 cdb_),先把 SQL 里的 cdb_ 全部替换成你的前缀再执行。 · 语句里的 CHARSET=utf8 不要改 ,这不是论坛编码,是这几张表自己的存储编码。 · 提示"表已存在"说明以前装过,跳过那一段即可。 · 如果升级页面的文本框 是灰色的、不能输入 :这是 Discuz 的安全限制。用 FTP 或主机面板打开论坛根目录的 config.inc.php ,找到 $admincp['runquery'] = 0; 把 0 改成 1 ,保存后刷新页面即可粘贴(装完可改回 0)。 · 宠物功能不需要执行 SQL ,首次访问宠物页会自动建表。 四、第三步:粘贴 default 默认套系模板(对应文件夹 3) 这 6 个文件装进 默认模板套系 (所有风格共用的底层接口:登录、聊天室、宠物、签到都走这里)。 [*]后台 → 界面 → 模板管理 ,找到 默认模板套系 那一行,点它右边的 详情 ,进入该套系的模板列表页。[*]按下表顺序逐个添加( 名称不要带 .htm 后缀 ): 顺序 模板名(填进名称框) 说明 1 joe_auth_api 登录/注册接口 2 joe_chatroom_api 聊天室接口 3 joe_pet_api 宠物接口 4 joe_sign_api 签到接口 5 joe_chatroom 聊天室前端 6 faq 【特殊,见下方】 每个文件都是同样的"两步法" (以 joe_auth_api 为例): [*]在模板列表页顶部的 添加模板 输入框里填模板名 joe_auth_api (不带 .htm)→ 点 提交 → 下方列表里出现这个新模板。[*]在列表里找到刚添加的 joe_auth_api,点它右边的 编辑 → 出现一个大文本框 → 用记事本打开安装包里的 joe_auth_api.htm → Ctrl+A 全选 → Ctrl+C 复制 → 粘进文本框 → 点 提交 。[*]提示成功后,点浏览器的 后退 按钮回到列表页,接着做下一个文件。 【插图04:默认套系的"添加模板"输入框(第 1 步)和列表】 1247 [*] faq 是编辑不是新建 :默认套系里已有 faq 模板, 不要 在"添加模板"里建 faq,直接在列表里找到 faq 点 编辑 , 全选删除原有内容 ,粘贴安装包里 faq.htm 的全文,提交。[*] faq 必须最后一个保存 ,因为它引用了前面 4 个接口模板;顺序反了会报错。[*]如果你以前自己改过默认模板的 faq、不想整体覆盖:只把你 faq 第一行的 {subtemplate header} 前面 补上这一串即可: {subtemplate joe_auth_api}{subtemplate joe_chatroom_api}{subtemplate joe_pet_api}{subtemplate joe_sign_api} 五、第四步:粘贴 dz7joe 套系模板(对应文件夹 4,量最大的一步) 文件夹 4 里共 70 个文件: 2 个空文件跳过,1 个可选,其余 67 个分 5 批粘贴 。 [*]后台 → 界面 → 模板管理 → 找到 dz7joe 套系那一行,点 详情 。[*]用第三步同样的 "两步法" (先在"添加模板"框里建名字 → 再点该模板的"编辑"粘内容)逐个添加。[*] 批次顺序不能乱 (后面的模板会引用前面的,顺序反了保存时会报错),批内顺序随意。 第 1 批:样式与脚本库(18 个) css_append 全站样式(内容最长,粘完拉到底确认完整再提交) joe_auth_css 登录/注册页样式 joe_head_css 头部样式 joe_plugin_css 插件页样式 joe_attach_css 附件样式 joe_attach_js 附件脚本 jquery jQuery 库 swiper 轮播库 clipboard 复制库 joe_global_js 全站公共脚本 joe_index_js 首页脚本 joe_post_js 帖子页脚本 joe_robot_js 页脚机器人 joe_weather_fav 天气与收藏 joe_svgemoji SVG 表情库(内容很长,同 css_append 注意完整) joe_pdeye_js 密码输入框小眼睛 joe_pet_cfg 宠物配置 jsmenu 菜单脚本 第 2 批:页面框架(3 个) header 页头 side 全站边栏 footer 页脚 第 3 批:被引用的子模板(5 个) user_covers 个人主页封面选择器 pm_node 私信节点 search_threads 搜索结果条目 post_editor 发帖编辑器 post_editor_menu 编辑器菜单 第 4 批:页面模板(40 个,顺序随意) about ajax_attachlist ajax_imagelist bunny cat discuzcode dog female forumdisplay getpasswd login male memberlist memcp_profile my my_buddylist my_favorites my_threads nopermission notice page_at page_darkroom page_findpwd page_forumdisplay page_pet page_petrank page_sign page_user pm pm_send post register search showmessage stats_main stats_misc stats_team stats_trade viewpro_classic viewthread 第 5 批:收尾(1 个,必须最后保存) discuz 首页(它引用了前面几乎所有页面模板) 【插图05:dz7joe 套系新增模板的示例】 1248 说明: · joe_clipboard_js.htm、joe_swiper_js.htm 是空的历史遗留文件, 跳过不用装 。 · index.htm 内容只有一个空行,是防止服务器列目录的占位文件,可装可不装;后台若提示"内容不能为空"直接跳过。 · 装完自检:dz7joe 套系应新增 67 个模板(不含可选的 index)。 六、第五步:jQuery 与"其他头部信息"(对应文件夹 5) [*]回到 dz7joe 套系的模板列表页,用同样的"两步法"再装一个模板: jquery4 ,内容粘贴 5)jq\jquery4.htm 全文。 (以前装过本风格、已经建过 jquery4 的老用户跳过这一步——文件夹里"安装过就不要再装了"说的就是这个)[*]后台 → 全局 → 优化设置 → 搜索引擎优化 ,找到 其他头部信息 输入框, 另起一行 粘贴: <script src="templates/dz7joe/jquery4.htm?joe=20261007a" type="text/javascript"></script> 框里已有的统计代码等内容 不要删除 。 【插图06:搜索引擎优化里的"其他头部信息"框】 1249 七、第六步:启用风格 + 更新缓存 [*]后台 → 界面 → 风格管理 → 找到 Joe风格 :勾选 可用 ,选中 默认 ,点提交。[*]后台 → 工具 → 更新缓存 → 点提交。[*]回到前台,按 Ctrl+F5 强制刷新首页。安装完成! 【插图07:风格管理里启用 Joe风格 并设为默认】 1250 【插图08:更新缓存页面】 1251 八、第七步:验收(逐个点开看一遍) [*] 首页 :版块卡片、轮播、边栏显示正常。[*] 签到 :访问 你的域名/index.php?icode=sign ,选个心情、写一句话,点签到。(地址栏手动输入,或点导航上的"签到")[*] 聊天室 :页面左下角的"聊天室"悬浮球点开,发一句话试试。[*] 宠物 :访问 你的域名/index.php?icode=pet ,领养一只(首次访问会自动建表,刷新一下即可)。[*] 个人主页 :点自己头像进主页,点封面区域换一张封面。[*] 发帖 :编辑器表情栏里能看到新的 SVG 表情。 【插图09:首页效果】 1252 【插图10:签到页】 1253 【插图11:聊天室】 1254 【插图12:个人主页封面】 1255 【插图13:宠物页】 1256 九、可选配置(不配置也有默认值) 后台 → 全局 → 站点信息 → 第三方统计代码 框,每行一条,改完更新缓存生效: JOELOGO: 自定义站标图片 JOEHOT:12,15,30,42 指定首页4个热帖(不足自动按回复数补齐) JOEBANNER:1859,1860,1861 指定首页轮播帖子(数量不限,显示原图) JOENOTICE:1859 指定首页公告帖(标题红色,可点击) 十、Sclub 等免费托管平台特别说明 · 本风格已内置官方顶部条(logo、繁简切换、广告、检举那一行)的 美化样式 ,启用后自动变成主题配色,官方元素和统计计数全部保留。 · 严禁 用 margin-top:-18px、display:none 等任何方式遮挡或删除官方顶部条, 否则会被封站 。本风格不含此类代码,你也不要自行添加。 · 托管平台不能上传模板图片属正常现象:本风格图标全部内联, 没有任何图片文件依赖 。 十一、常见问题(出事先查这里) Q:启用后整页白屏? A:某份模板没粘全或保存顺序错了。回风格管理切回原风格立即恢复,再对照教程第四、五步逐份核对(重点:css_append、joe_svgemoji 是否粘贴完整,discuz 是否最后保存)。 Q:页面无样式、排版全乱? A:css_append 没粘成功或没更新缓存。重粘 css_append → 更新缓存 → Ctrl+F5。 Q:签到页打不开 / 空白? A:确认 ①第二步执行了签到表 SQL ②page_sign 粘进了 dz7joe 套系 ③访问地址是 index.php?icode=sign(不是单独的文件)。 Q:点签到弹出 err|signed / err|nomood / err|notlogin? A:signed=今天已签过(正常);notlogin=没登录;nomood=第二步第 5 段 SVG 表情 SQL 没执行成功。 Q:签到/聊天室/宠物点了没反应? A:第三步 default 套系的 6 个文件没装齐,或 faq 不是最后一个保存的。按第三步顺序重做。 Q:聊天室图标点不开? A:三样缺一不可——第二步的建表 SQL、default 套系的 joe_chatroom、dz7joe 套系的 header。 Q:个人主页封面保存失败或显示不全? A:第二步的封面字段必须是 varchar(255) 。早期教程写成 varchar(20),执行下面这句修正(表前缀换成你的): ALTER TABLE cdb_memberfields MODIFY coverbg varchar(255) NOT NULL DEFAULT ''; Q:全站反复提示"Cache List: style_2 ...",后台也进不去? A:forumdata/cache 和 forumdata/templates 目录不可写。急救:用 你的域名/admincp.php?styleid=1 强制默认风格进后台 → 把这两个目录设为可写(Linux 777 / 面板勾选可写)→ 工具 → 更新缓存。 Q:XML 导入后中文乱码? A:文件被存成了 UTF-8。用记事本打开 XML → 另存为 → 编码选 ANSI → 重新导入。 Q:头像上传异常? A:确认 memcp_profile 已粘进 dz7joe 套系(第 4 批)。 十二、如何卸载 / 回退 风格管理里把默认风格切回你原来的风格,前台立即恢复。dz7joe 套系留着不占资源;确认不要了再在后台删除该风格,并自行清理 templates/dz7joe 目录和数据库里的 cdb_chatroom、cdb_chatroom_at、cdb_joesign、cdb_pet 表及 coverbg 字段。 安装中遇到本教程没覆盖的问题,回帖说明:卡在第几步、后台提示了什么(截图最好),看到会回复。
2026-10-30
55 阅读
1 评论
icode
2018-9-7
置顶
jQuery安装
286 后台新建一个模板命名为jquery 将附件解压,复制文本全部内容到jquery模板提交。 在论坛其他头部信息加入代码 <script type="text/javascript" src="templates/default/jquery.htm"></script> 即可
2018-9-7
1159115 阅读
5 评论
icode
2026-11-3
置顶
精华
独立视频页 v1.0 For Discuz!7.2
将附件内文件替换掉原有文件 替换完后记得将discuz.htm内的$thread ==47改为自己打板块id,否则首页mp3会失效。 使用方法:在后台新建两个discuz代码:如图 1287 1、MP4替换内容: <video src="{1}" controls preload="metadata" playsinline style="width:600px;max-width:100%;height:auto;display:block;"></video> 1289 2、bilibili替换内容: <script type="text/javascript"> var raw = "{1}"; var m = raw.match(/(BV[0-9A-Za-z]+)/); var bvid = m ? m[1] : raw; document.write('<iframe src="//player.bilibili.com/player.html?bvid=' + bvid + '" autoplay="0" scrolling="no" muted="0" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="width:600px;max-width:100%;height:400px;display:block;"></iframe>');</script> 1288 1286
2026-11-3
196 阅读
0 评论
icode
板块主题
2026-10-29
签到系统 v1.0 For Discuz!7.2 GBK
1241 第一步:升级数据库 CREATE TABLE cdb_joesign ( sid INT UNSIGNED NOT NULL AUTO_INCREMENT, uid MEDIUMINT UNSIGNED NOT NULL DEFAULT 0, username VARCHAR(15) NOT NULL DEFAULT '', mood VARCHAR(40) NOT NULL DEFAULT '', message VARCHAR(1000) NOT NULL DEFAULT '', days SMALLINT UNSIGNED NOT NULL DEFAULT 1, dateline INT UNSIGNED NOT NULL DEFAULT 0, ip VARCHAR(15) NOT NULL DEFAULT '', PRIMARY KEY (sid), KEY uid (uid), KEY dateline (dateline) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; dz7joe新建模板page_sign.htm,内容如下 <!--{if $_GET["icode"]=="sign"}--> {eval $jfavicon = 'data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Ctext%20y%3D%22.9em%22%20font-size%3D%2290%22%3E%F0%9F%93%85%3C/text%3E%3C/svg%3E';} {eval $navtitle = '每日签到'; $jnav = 'sign';} {subtemplate header} {eval $js_has = !!$db->result_first("SHOW TABLES LIKE '".$tablepre."joesign'");} {eval $js_now = $timestamp + $timeoffset * 3600;} {eval $js_day0 = $js_now - ($js_now % 86400) - $timeoffset * 3600;} {eval $js_total = $js_has ? intval($db->result_first("SELECT COUNT(*) FROM ".$tablepre."joesign")) : 0;} {eval $js_today = $js_has ? intval($db->result_first("SELECT COUNT(*) FROM ".$tablepre."joesign WHERE dateline >= '$js_day0'")) : 0;} {eval $js_per = 20;} {eval $js_page = isset($_GET['page']) ? max(1, intval($_GET['page'])) : 1;} {eval $js_pages = $js_total > 0 ? ceil($js_total / $js_per) : 1;} {eval if($js_page > $js_pages) $js_page = $js_pages;} {eval $js_start = ($js_page - 1) * $js_per;} {eval $js_q = $js_has ? $db->query("SELECT sid,uid,username,mood,message,days,dateline FROM ".$tablepre."joesign ORDER BY sid DESC LIMIT $js_start, $js_per") : false;} {eval $js_list = array();} {eval while($js_q && $js_r = $db->fetch_array($js_q)) $js_list[] = $js_r;} {eval $js_my = ($discuz_uid && $js_has) ? $db->fetch_first("SELECT * FROM ".$tablepre."joesign WHERE uid='$discuz_uid' AND dateline >= '$js_day0'") : array();} {eval $js_yest = ($discuz_uid && $js_has) ? $db->fetch_first("SELECT days FROM ".$tablepre."joesign WHERE uid='$discuz_uid' AND dateline >= '".($js_day0 - 86400)."' AND dateline < '$js_day0'") : array();} {eval $js_streak = !empty($js_my) ? intval($js_my['days']) : (empty($js_yest) ? 0 : intval($js_yest['days']));} {eval $js_mycount = ($discuz_uid && $js_has) ? intval($db->result_first("SELECT COUNT(*) FROM ".$tablepre."joesign WHERE uid='$discuz_uid'")) : 0;} {eval $js_lvt = array(10, 20, 30, 50, 80, 120, 180, 250, 350); $js_nam = array('初来乍到', '偶尔看看I', '偶尔看看II', '常住居民I', '常住居民II', '常住居民III', '以坛为家I', '以坛为家II', '以坛为家III', '伴坛终老');} {eval $js_tot = array(); $js_uids = array(); if($js_list) foreach($js_list as $js_r) $js_uids[] = intval($js_r['uid']); if($js_uids) $js_tq = $db->query("SELECT uid, COUNT(*) AS n FROM ".$tablepre."joesign WHERE uid IN (".implode(',', $js_uids).") GROUP BY uid"); if($js_uids) while($js_tq && $js_tr = $db->fetch_array($js_tq)) $js_tot[$js_tr['uid']] = intval($js_tr['n']);} {eval $js_mc = 1; foreach($js_lvt as $js_t) if($js_mycount >= $js_t) $js_mc++; $js_mylv = ' '.$js_nam[$js_mc-1];} <style> .joe_sign{width:100%;margin:20px auto;padding:0 16px;box-sizing:border-box} .jose_box{background:var(--background);border-radius:var(--radius-wrap);box-shadow:var(--box-shadow);margin-bottom:15px;overflow:hidden} .jose_hd{background:linear-gradient(135deg,#ffb15c,#f56c6c 60%,#e6483e);padding:22px 26px 18px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:12px} .jose_hd::after{content:'';position:absolute;right:-50px;top:-70px;width:210px;height:210px;border-radius:50%;background:rgba(255,255,255,.13)} .jose_hd::before{content:'';position:absolute;right:70px;bottom:-90px;width:160px;height:160px;border-radius:50%;background:rgba(255,255,255,.08)} .jose_hd h2{margin:0;font-size:22px;line-height:30px;color:#fff;letter-spacing:2px;position:relative;z-index:1} .jose_hd .jose_hd_sub{position:relative;z-index:1;font-size:13px;color:rgba(255,255,255,.92);white-space:nowrap} .jose_hd .jose_hd_sub b{font-size:16px;color:#fff} .jose_body{padding:18px 26px 6px} .jose_status{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px} .jose_st{flex:1;min-width:120px;background:var(--classA);border-radius:12px;padding:12px 16px;font-size:12px;color:var(--minor);text-align:center} .jose_st b{display:block;font-size:20px;line-height:26px;color:var(--main);margin-top:4px} .jose_st b.jose_lvb{font-size:15px;white-space:nowrap} .jose_st.jose_st_on b{color:#f56c6c} .jose_todaybox{background:linear-gradient(90deg,rgba(245,108,108,.10),var(--classA));border:1px solid rgba(245,108,108,.28);border-radius:12px;padding:14px 18px;margin-bottom:16px} .jose_todaybox .jose_tb_hd{font-size:13px;color:var(--minor);margin-bottom:8px} .jose_todaybox .jose_tb_hd b{color:#f56c6c} .jose_todaybox .jose_tb_body{display:flex;align-items:center;gap:10px} .jose_todaybox .jose_tb_body .jose_tb_mood{flex:0 0 auto;line-height:0} .jose_todaybox .jose_tb_body .jose_tb_mood svg{width:30px;height:30px} .jose_todaybox .jose_tb_body p{margin:0;font-size:14px;color:var(--main);line-height:1.7;flex:1;min-width:0;word-break:break-word} .jose_form textarea{width:100%;box-sizing:border-box;min-height:76px;resize:vertical;border:1px solid var(--seat);border-radius:10px;background:var(--classA);color:var(--main);font-size:14px;line-height:1.7;padding:10px 12px;outline:none;font-family:inherit} .jose_form textarea:focus{border-color:#f56c6c} .jose_smbar{display:flex;align-items:center;gap:10px;margin:10px 0 14px;flex-wrap:wrap} .jose_pick{font-size:13px;color:var(--minor);border:1px dashed var(--seat);border-radius:8px;padding:4px 10px;cursor:pointer;line-height:24px;min-width:110px;text-align:center} .jose_pick:hover{border-color:#f56c6c;color:#f56c6c} .jose_pick svg{width:22px;height:22px;vertical-align:-6px;margin-right:4px} .jose_sm{display:none;width:100%;max-height:150px;overflow-y:auto;border:1px solid var(--seat);border-radius:10px;padding:8px;box-sizing:border-box;background:var(--classA)} .jose_sm.on{display:flex;flex-wrap:wrap;gap:4px} .jose_sm .jose_si{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:8px;cursor:pointer} .jose_sm .jose_si:hover{background:rgba(245,108,108,.12)} .jose_sm .jose_si.on{background:rgba(245,108,108,.18);box-shadow:0 0 0 1px rgba(245,108,108,.45) inset} .jose_sm .jose_si svg{width:24px;height:24px} .jose_btn{display:block;width:100%;height:44px;border:none;border-radius:10px;background:linear-gradient(135deg,#ff9a4d,#f56c6c);color:#fff;font-size:16px;font-weight:bold;letter-spacing:4px;cursor:pointer;box-shadow:0 4px 12px rgba(245,108,108,.32);transition:transform .15s} .jose_btn:hover{transform:translateY(-1px)} .jose_btn:disabled{opacity:.6;cursor:default;transform:none;box-shadow:none} .jose_tip{font-size:12px;color:var(--minor);text-align:center;margin-top:10px;min-height:18px} .jose_tip.err{color:#e6483e} .jose_guest{text-align:center;padding:20px 0} .jose_guest a{color:#f56c6c;font-weight:bold} .jose_list_hd{font-size:13px;color:var(--minor);padding:6px 26px 0;margin-top:14px;border-top:1px dashed var(--seat);margin-left:0} .jose_list{list-style:none;margin:8px 0 0;padding:0 26px 18px} .jose_item{display:flex;gap:12px;padding:14px 0;border-bottom:1px dashed var(--seat)} .jose_item:last-child{border-bottom:none} .jose_item.jose_today{background:linear-gradient(90deg,rgba(255,177,92,.10),rgba(255,177,92,0) 60%);padding: 14px 12px;} .jose_item.jose_self{background:var(--classA);border-radius:12px;padding:14px 12px;margin:4px 0} .jose_ava{flex:0 0 40px;width:40px;height:40px;border-radius:50%;border:2px solid var(--seat);background:#fff;box-sizing:border-box;object-fit:cover} .jose_item.jose_today .jose_ava{border-color:#f5a623} .jose_c{flex:1;min-width:0} .jose_top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--minor)} .jose_name{font-size:14px;font-weight:bold;color:var(--main);text-decoration:none} .jose_name:hover{color:#f56c6c} .jose_badge{font-size:11px;padding:1px 7px;border-radius:9px;background:rgba(250,173,20,.14);color:#c47b00} .jose_badge.jose_b7{background:rgba(245,108,108,.14);color:#e6483e} .jose_time{margin-left:auto} .jose_moodline{display:flex;align-items:flex-start;gap:8px;margin-top:6px} .jose_moodline .jose_m{flex:0 0 auto;line-height:0} .jose_moodline .jose_m svg{width:26px;height:26px;vertical-align:top} .jose_moodline p{margin:0;font-size:14px;line-height:1.75;color:var(--main);word-break:break-word;flex:1;min-width:0} .jose_msg{font-size:14px;line-height:1.75;color:var(--main);margin:6px 0 0;word-break:break-word} .jose_lv{font-size:12px;color:#9aa3ad;white-space:nowrap} .jose_nomsg{color:var(--minor);font-size:13px;font-style:italic} .jose_quick{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0} .jose_quick span{font-size:12px;color:var(--minor);background:var(--classA);border:1px solid var(--seat);border-radius:14px;padding:3px 12px;line-height:20px;cursor:pointer} .jose_quick span:hover{border-color:#f56c6c;color:#f56c6c} .jose_pager{display:flex;justify-content:center;align-items:center;gap:10px;padding:4px 26px 20px;font-size:13px;color:var(--minor)} .jose_pager a{color:var(--main);background:var(--classA);border-radius:8px;padding:5px 14px;text-decoration:none} .jose_pager a:hover{color:#f56c6c} .jose_empty{text-align:center;color:var(--minor);font-size:14px;padding:34px 26px 40px;line-height:2} @media (max-width:680px){.jose_hd{padding:18px 16px 14px}.jose_hd h2{font-size:18px}.jose_body{padding:14px 16px 4px}.jose_list_hd{padding:6px 16px 0}.jose_list{padding:4px 16px 14px}.jose_pager{padding:4px 16px 16px}.jose_status{gap:8px}.jose_st{min-width:90px;padding:10px 8px}} </style> <div class="joe_sign"> <div class="jose_box"> <div class="jose_hd"> <h2>每日签到</h2> <span class="jose_hd_sub">今天已签 <b>$js_today</b> 人</span> </div> <div class="jose_body"> <!--{if $discuz_uid}--> <div class="jose_status"> <div class="jose_st<!--{if $js_streak > 0}--> jose_st_on<!--{/if}-->">连续签到<b>$js_streak 天</b></div> <div class="jose_st">累计签到<b>$js_mycount 次</b></div> <div class="jose_st">签到等级<b class="jose_lvb">$js_mylv</b></div> <div class="jose_st">全站记录<b>$js_total 条</b></div> </div> <!--{/if}--> <!--{if !$js_has}--> <div class="jose_empty">签到表还没建好,请站长先在后台执行建表 SQL。</div> <!--{elseif !$discuz_uid}--> <div class="jose_guest">登录后即可每天留下一个心情和一句话。<br><a href="logging.php?action=login">立即登录</a></div> <!--{elseif !empty($js_my)}--> <div class="jose_todaybox"> <div class="jose_tb_hd">你今天已签到,连续 <b>$js_my 天</b> · <span><!--{eval echo gmdate('H:i', $js_my + $timeoffset * 3600);}--></span></div> <div class="jose_tb_body"> <span class="jose_tb_mood">{eval $js_hm = preg_replace('/\[( +)\][^\[]*?\[\/\1\]/', '<svg class="svgemo" width="30" height="30" viewBox="0 0 100 100"><use href="#$1"/></svg>', htmlspecialchars(stripslashes($js_my['mood']), ENT_QUOTES));}{echo $js_hm;}</span> <p>{eval $js_ht = preg_replace('/\[( +)\][^\[]*?\[\/\1\]/', '<svg class="svgemo" width="24" height="24" viewBox="0 0 100 100"><use href="#$1"/></svg>', htmlspecialchars(stripslashes($js_my['message']), ENT_QUOTES));}{echo $js_ht === '' ? '<span class="jose_nomsg">你今天没有填写想说的话</span>' : $js_ht;}</p> </div> </div> <!--{else}--> <div class="jose_form"> <textarea id="joseMsg" maxlength="250" placeholder="今天最想说的话……(也可以留空,系统会显示默认占位)"></textarea> <div class="jose_quick" id="joseQuick"></div> <div class="jose_smbar"> <span class="jose_pick" id="josePick">选个心情表情</span> <span class="jose_smhint" style="font-size:12px;color:var(--minor)">签到后当天不可修改</span> <div class="jose_sm" id="joseSm"></div> </div> <button type="button" class="jose_btn" id="joseBtn">签 到</button> <div class="jose_tip" id="joseTip"></div> </div> <!--{/if}--> </div> <div class="jose_list_hd">签到墙 · 最新在前</div> <!--{if empty($js_list)}--> <div class="jose_empty">还没有人签到,来做第一个吧~</div> <!--{else}--> <ul class="jose_list"> <!--{loop $js_list $js_r}--> {eval $js_ist = $js_r['dateline'] >= $js_day0 ? 1 : 0;} {eval $js_isb = !$js_ist && $js_r['dateline'] >= ($js_day0 - 86400) ? 1 : 0;} {eval $js_sd = isset($js_tot[$js_r['uid']]) ? $js_tot[$js_r['uid']] : 1; $js_c = 1; foreach($js_lvt as $js_t) if($js_sd >= $js_t) $js_c++; $js_lvs = ' '.$js_nam[$js_c-1];} <li class="jose_item<!--{if $js_ist}--> jose_today<!--{/if}--><!--{if $discuz_uid && $js_r == $discuz_uid}--> jose_self<!--{/if}-->"> <img class="jose_ava" src="uc_server/avatar.php?uid=$js_r &size=small" width="40" height="40" loading="lazy" alt=""> <div class="jose_c"> <div class="jose_top"> <a class="jose_name" href="space.php?uid=$js_r " target="_blank">$js_r </a> <!--{if $js_lvs}--><span class="jose_lv">$js_lvs</span><!--{/if}--> <span class="jose_badge<!--{if $js_r >= 7}--> jose_b7<!--{/if}-->">连续 $js_r 天</span> <!--{if $js_ist}--><span class="jose_badge">今天</span><!--{elseif $js_isb}--><span class="jose_badge">昨天</span><!--{/if}--> <span class="jose_time">{eval echo gmdate('n-j H:i', $js_r['dateline'] + $timeoffset * 3600);}</span> </div> <div class="jose_moodline"> <span class="jose_m">{eval $js_rm = preg_replace('/\[( +)\][^\[]*?\[\/\1\]/', '<svg class="svgemo" width="26" height="26" viewBox="0 0 100 100"><use href="#$1"/></svg>', htmlspecialchars(stripslashes($js_r['mood']), ENT_QUOTES));}{echo $js_rm;}</span> <p>{eval $js_rt = preg_replace('/\[( +)\][^\[]*?\[\/\1\]/', '<svg class="svgemo" width="22" height="22" viewBox="0 0 100 100"><use href="#$1"/></svg>', htmlspecialchars(stripslashes($js_r['message']), ENT_QUOTES));}{echo $js_rt === '' ? '<span class="jose_nomsg">该会员没有填写今日想说内容</span>' : $js_rt;}</p> </div> </div> </li> <!--{/loop}--> </ul> <!--{if $js_pages > 1}--> <div class="jose_pager"> <!--{if $js_page > 1}--><a href="index.php?icode=sign&page={eval echo $js_page - 1;}">上一页</a><!--{/if}--> <span>$js_page / $js_pages</span> <!--{if $js_page < $js_pages}--><a href="index.php?icode=sign&page={eval echo $js_page + 1;}">下一页</a><!--{/if}--> </div> <!--{/if}--> <!--{/if}--> </div> </div> <script type="text/javascript"> var JS_HASH = '{eval echo FORMHASH;}'; (function () { var pick = document.getElementById('josePick'), sm = document.getElementById('joseSm'); var btn = document.getElementById('joseBtn'), msg = document.getElementById('joseMsg'); var tip = document.getElementById('joseTip'), quick = document.getElementById('joseQuick'); if (!pick || !sm || !btn) { return; } var cur = '', tries = 0, built = false; var QUICK = ['今天也要元气满满呀', '来打个卡,大家早安', '忙碌的一天,终于歇会儿', '天气不错,适合出去走走', '又是平淡但踏实的一天', '加油,明天会更好']; if (quick) { var qh = '', qi; for (qi = 0; qi < QUICK.length; qi++) { qh += '<span>' + QUICK + '</span>'; } quick.innerHTML = qh; var qs = quick.getElementsByTagName('span'); for (qi = 0; qi < qs.length; qi++) { qs .onclick = function () { msg.value = this.innerHTML; msg.focus(); }; } } function esc(s) { return String(s).replace(/&/g, '&').replace(/"/g, '"').replace(/</g, '<'); } function svg(id, size) { return '<svg class="svgemo" width="' + size + '" height="' + size + '" viewBox="0 0 100 100"><use href="#' + id + '"/></svg>'; } function build() { if (built) { return; } if (typeof joeSvgSmilies === 'undefined' || !joeSvgSmilies.length) { if (++tries > 40) { return; } setTimeout(build, 150); return; } built = true; var html = '', i, b; for (i = 0; i < joeSvgSmilies.length; i++) { b = joeSvgSmilies ; html += '<span class="jose_si" data-id="' + esc(b.id) + '" data-c="[' + esc(b.id) + ']' + esc(b.name) + '[/' + esc(b.id) + ']" title="' + esc(b.name) + '">' + svg(esc(b.id), 24) + '</span>'; } sm.innerHTML = html; var items = sm.getElementsByTagName('span'), n; for (n = 0; n < items.length; n++) { items .onclick = function () { var all = sm.getElementsByTagName('span'), m; for (m = 0; m < all.length; m++) { all .className = all .className.replace(' on', ''); } this.className += ' on'; cur = this.getAttribute('data-c'); pick.innerHTML = svg(this.getAttribute('data-id'), 22) + esc(this.getAttribute('title')); }; } } pick.onclick = function () { build(); sm.className = sm.className.indexOf('on') === -1 ? 'jose_sm on' : 'jose_sm'; }; function say(t, bad) { tip.className = 'jose_tip' + (bad ? ' err' : ''); tip.innerHTML = t; } btn.onclick = function () { var txt = (msg.value || '').replace(/\s+/g, ' ').replace(/^\s+|\s+$/g, ''); btn.disabled = true; say('正在签到……'); var xhr = new XMLHttpRequest(); xhr.open('POST', 'faq.php?jsact=post', true); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.onreadystatechange = function () { if (xhr.readyState !== 4) { return; } var r = xhr.responseText || ''; if (r.indexOf('ok|') === 0) { var a = r.split('|'); say('签到成功!连续 ' + a[1] + ' 天,获得金钱 ' + a[2]); setTimeout(function () { location.reload(); }, 900); } else { btn.disabled = false; if (r === 'err|signed') { say('今天已经签过到了,明天再来~', true); } else if (r === 'err|notlogin') { say('请先登录。', true); } else if (r === 'err|badformhash') { say('凭证过期,刷新页面重试。', true); } else if (r === 'err|toolong') { say('内容太长了,精简一下吧。', true); } else if (r === 'err|nomood') { say('心情表情未通过校验,换一个试试。', true); } else { say('签到失败:' + r, true); } } }; xhr.send('formhash=' + encodeURIComponent(JS_HASH) + '&mood=' + encodeURIComponent(cur) + '&msg=' + encodeURIComponent(txt)); }; build(); })(); </script> {subtemplate side} {subtemplate footer} <!--{eval exit;}--> <!--{/if}--> 默认模板新建joe_sign_api.htm,内容如下: {eval $js_act = isset($_GET['jsact']) ? trim($_GET['jsact']) : '';} <!--{if $js_act == 'post'}--> <!--{if !$discuz_uid}-->{eval echo 'err|notlogin'; exit;}<!--{/if}--> {eval $js_hash = isset($_POST['formhash']) ? trim($_POST['formhash']) : '';} <!--{if $js_hash != FORMHASH}-->{eval echo 'err|badformhash'; exit;}<!--{/if}--> {eval $js_mood = isset($_POST['mood']) ? trim($_POST['mood']) : '';} {eval $js_msg = isset($_POST['msg']) ? trim($_POST['msg']) : '';} {eval $js_msg = trim(strip_tags($js_msg));} {eval $js_msg = str_replace("\r", ' ', $js_msg);} {eval $js_msg = str_replace("\n", ' ', $js_msg);} {eval $js_msg = preg_replace('/\s+/', ' ', $js_msg);} <!--{if strlen($js_msg) > 800}-->{eval echo 'err|toolong'; exit;}<!--{/if}--> {eval $js_mt = $js_mood != '' && preg_match('/^\[( +)\]/', $js_mood, $js_mm) ? $js_mm[1] : '';} <!--{if $js_mood != ''}--> {eval $js_mc = intval($db->result_first("SELECT COUNT(*) FROM ".$tablepre."bbcodes WHERE tag='$js_mt'"));} <!--{if !$js_mc}-->{eval echo 'err|nomood'; exit;}<!--{/if}--> <!--{/if}--> {eval $js_now = $timestamp + $timeoffset * 3600;} {eval $js_day0 = $js_now - ($js_now % 86400) - $timeoffset * 3600;} {eval $js_dup = intval($db->result_first("SELECT COUNT(*) FROM ".$tablepre."joesign WHERE uid='$discuz_uid' AND dateline >= '$js_day0'"));} <!--{if $js_dup}-->{eval echo 'err|signed'; exit;}<!--{/if}--> {eval $js_y = $db->fetch_first("SELECT days FROM ".$tablepre."joesign WHERE uid='$discuz_uid' AND dateline >= '".($js_day0 - 86400)."' AND dateline < '$js_day0'");} {eval $js_days = empty($js_y) ? 1 : intval($js_y['days']) + 1;} {eval $js_money = $js_days % 7 == 0 ? 25 : 5;} {eval $db->query("INSERT INTO ".$tablepre."joesign (uid, username, mood, message, days, dateline, ip) VALUES ('$discuz_uid', '$discuz_user', '$js_mood', '$js_msg', '$js_days', '$timestamp', '$onlineip')");} {eval updatecredits($discuz_uid, array(2 => $js_money), 1);} {eval echo 'ok|'.$js_days.'|'.$js_money; exit;} <!--{/if}--> dz7joe的discuz.htm模板里加 {subtemplate page_sign} 默认模板的faq.htm模板加 {subtemplate joe_sign_api} 入口链接
2026-10-29
49 阅读
0 评论
icode
2026-10-26
顶部通知体系改造 For Discuz!7.2 GBK
顺序 文件 作用 备注 1 jeans/header.htm 顶栏消息/铃铛入口、提醒弹窗 4 个 tab 的 HTML 2 jeans/css_append.htm 6 色圆徽、弹窗 panel-inner/固定高度、tab 角标等全部样式 3 jeans/footer.htm 底部导航「消息」紫球 4 default/joe_chatroom_api.htm @我 列表的 AJAX 片段(结构/底部链接/LIMIT 3) 与主模板同构 5 default/joe_chatroom.htm 聊天室绿角标 + 白边、轮询调度 含正则 1192 找到 {eval $joecredits=$GLOBALS +$GLOBALS +$GLOBALS ;} 在上边加 {eval include_once DISCUZ_ROOT.'./include/forum.func.php';} 找到 {eval $joegroup=$joemu ;} 把上边那句改为 {eval $joemu=$db->fetch_array($db->query("SELECT m.credits, m.extcredits1, m.extcredits2, u.grouptitle, u.stars AS groupstars, u.creditshigher, u.creditslower FROM ".$tablepre."members m LEFT JOIN ".$tablepre."usergroups u ON u.groupid=m.groupid WHERE m.uid='$discuz_uid'"));}
2026-10-26
1210 阅读
0 评论
icode
2026-10-19
SVG表情教程 For Discuz!7.2 GBK
此表情仅适合Discuz!7.2 如图: 1137 安装方法在压缩包里 1138
2026-10-19
1509 阅读
0 评论
icode
2026-10-15
注册页面【修正】
1108 1109 1、按压缩包内文件名称替换,没有的新建 2、在dz7joe模板套系的disucz模板的 {subtemplate header} 上边加 {subtemplate page_findpwd} 3、然后在默认模板套系的faq模板最上加 {subtemplate joe_auth_api} 1107
2026-10-15
2008 阅读
0 评论
icode
2022-12-15
ziitttt
.......
2022-12-15
66258 阅读
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
126164 阅读
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
167378 阅读
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
114435 阅读
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
118477 阅读
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
116989 阅读
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
117866 阅读
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
107563 阅读
3 评论
老闆
上一页
1
2
下一页
/ 2 页
下拉加载更多
首页
板块
登录
论坛统计
关于我们