少妇的丰满3中文字幕,日韩无遮挡一级无码a,欧美一级AAA片免费网站,国产精品免费久久久久软件

設(shè)為首頁加入收藏業(yè)務(wù)一覽表公司歷程公司介紹聯(lián)系我們
當(dāng)前位置網(wǎng)站運(yùn)營 >> 如何在Discuz 7.1中給通過WAP宣布的帖子加標(biāo)記

如何在Discuz 7.1中給通過WAP宣布的帖子加標(biāo)記

Discuz!是康盛創(chuàng)想(Comsenz)公司推出的一款論壇BBS產(chǎn)品,本期教程筆者為大家講解在Discuz! 7.1下如何給通過WAP宣布的帖子加標(biāo)記。

假如回復(fù)或者主題是通過wap宣布的,則在帖子信息中顯示出來 “該信息來自手機(jī)”。

后果圖: 

一、修正數(shù)據(jù)庫結(jié)構(gòu)

在 Discuz 7.1 后臺(tái) => 數(shù)據(jù)庫 => 升級(jí),提交如下SQL:

ALTER TABLE `cdb_posts` ADD `onmobile` TINYINT( 1 ) NOT NULL

二、修正WAP程序

打開論壇根目錄下 \wap\include\post.inc.php 文件

找到

$db->query("INSERT INTO {$tablepre}posts (fid, tid, first, author, authorid, subject, dateline, message, useip, invisible, usesig, htmlon, bbcodeoff, smileyoff, parseurloff, attachment)

VALUES ('$fid', '$tid', '1', '$discuz_user', '$discuz_uid', '$subject', '$timestamp', '$message', '$onlineip', '$pinvisible', '0', '0', '0', '0', '0', '0')");

修正為:

$db->query("INSERT INTO {$tablepre}posts (fid, tid, first, author, authorid, subject, dateline, message, useip, invisible, usesig, htmlon, bbcodeoff, smileyoff, parseurloff, attachment,onmobile)

VALUES ('$fid', '$tid', '1', '$discuz_user', '$discuz_uid', '$subject', '$timestamp', '$message', '$onlineip', '$pinvisible', '0', '0', '0', '0', '0', '0','1')");

找到

$db->query("INSERT INTO {$tablepre}posts (fid, tid, first, author, authorid, dateline, message, useip, invisible, usesig, htmlon, bbcodeoff, smileyoff, parseurloff, attachment)

VALUES ('$fid', '$tid', '0', '$discuz_user', '$discuz_uid', '$timestamp', '$message', '$onlineip', '$pinvisible', '1', '0', '0', '0', '0', '0')");

修正為:

$db->query("INSERT INTO {$tablepre}posts (fid, tid, first, author, authorid, dateline, message, useip, invisible, usesig, htmlon, bbcodeoff, smileyoff, parseurloff, attachment,onmobile)

VALUES ('$fid', '$tid', '0', '$discuz_user', '$discuz_uid', '$timestamp', '$message', '$onlineip', '$pinvisible', '1', '0', '0', '0', '0', '0','1')");

保留。

三、修正模板

打開論壇目錄下 \templates\default\viewthread_node.htm 文件

找到

{lang guest} {$pluginhooks[viewthread_postheader][$postcount]}{lang poston} $post[dateline]

在此段程序之后添加:

該信息來自手機(jī)

保留,更新緩存。

[來源:原創(chuàng)] [作者:嵊州新時(shí)代建站] [日期:10-02-01] [閱讀:]
三河市| 大荔县| 平凉市| 买车| 兴宁市| 海门市| 板桥市| 平昌县| 巴楚县| 台南市| 鹤壁市| 襄垣县| 南城县| 鞍山市| 伊吾县| 信宜市| 县级市| 扎鲁特旗| 湖州市| 巴青县| 合山市| 孝义市| 大冶市| 云安县| 太保市| 新津县| 永登县| 长宁区| 岳阳市| 陕西省| 盐津县| 昌平区| 彰化县| 屯昌县| 台安县| 漯河市| 黄陵县| 呼玛县| 金溪县| 新民市| 沛县|