<u id="14hvx"><sub id="14hvx"></sub></u>

    1. <u id="14hvx"></u>

      <video id="14hvx"><ins id="14hvx"></ins></video>

      設為首頁加入收藏業務一覽表公司歷程公司介紹聯系我們
      當前位置網站運營 >> 如何在Discuz 7.1中給通過WAP宣布的帖子加標記

      如何在Discuz 7.1中給通過WAP宣布的帖子加標記

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

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

      后果圖: 

      一、修正數據庫結構

      在 Discuz 7.1 后臺 => 數據庫 => 升級,提交如下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]

      在此段程序之后添加:

      該信息來自手機

      保留,更新緩存。

      [來源:原創] [作者:嵊州新時代建站] [日期:10-02-01] [閱讀:]
      精品夜夜爽天天爽视频_无码毛片一区二区本码视频_欧美激情免费观看一区_亚洲啪精品视频网站免费
      <u id="14hvx"><sub id="14hvx"></sub></u>

      1. <u id="14hvx"></u>

        <video id="14hvx"><ins id="14hvx"></ins></video>

        亚洲欧美日韩中文字幕无线码 | 日韩精品久久人人躁人人噜 | 亚洲国产五月综合网 | 韩国资源一区在线 | 亚洲精品乱码久久久久久按摩 | 热久久99这里有综合久久 |