亚洲视频二区_亚洲欧洲日本天天堂在线观看_日韩一区二区在线观看_中文字幕不卡一区

公告:魔扣目錄網為廣大站長提供免費收錄網站服務,提交前請做好本站友鏈:【 網站目錄:http://www.430618.com 】, 免友鏈快審服務(50元/站),

點擊這里在線咨詢客服
新站提交
  • 網站:51998
  • 待審:31
  • 小程序:12
  • 文章:1030137
  • 會員:747

1、在數據庫的前綴名_enewsgbook表中添加您要顯示的字段,比如我要加標題"gtitle"字段,可以用工具添加,也可以執行sql添加:ALTER TABLE 前綴名_enewsgbook ADD gtitle VARCHAR(100);

2、修改e/enews/gbookfun.php
第11行左右:

$name=RepPostStr(trim($add[name]));       
 $email=RepPostStr($add[email]);        
$call=RepPostStr($add[call]);        
$lytext=RepPostStr($add[lytext]);        
$gtitle=RepPostStr(trim($add[gtitle]));  
//增加的gtitle       
 if(empty($bid)||empty($gtitle)||empty($name)||empty($email)||!trim($lytext))  //gtitle字段檢測不允許為空

第56行左右
$sql=$empire->query("insert into {$dbtbpre}enewsgbook(name,gtitle,email,`call`,lytime,lytext,retext,bid,ip,checked,userid,username) values('$name','$gtitle','$email','$call','$lytime','$lytext','','$bid','$ip','$br[checked]','$userid','$username');"); //插入字段記錄

3、修改e/data/template/gbooktemp.txt
第50行左右
$query="select lyid,name,gtitle,email,`call`,lytime,lytext,retext from {$dbtbpre}enewsgbook where bid='$bid' and checked=0";   //查詢字段中添加gtitle

4、修改e/class/t_functions.php
第2106行左右
$listtemp=str_replace("[!--lyid--]",$r['lyid'],$listtemp);//id    $listtemp=str_replace("[!--lytext--]",nl2br($r['lytext']),$listtemp);//留言內容    $listtemp=str_replace("[!--retext--]",nl2br($r['retext']),$listtemp);//回復    $listtemp=str_replace("[!--lytime--]",format_datetime($r['lytime'],$formatdate),$listtemp);    $listtemp=str_replace("[!--name--]",$r['name'],$listtemp);    $listtemp=str_replace("[!--gtitle--]",$r['gtitle'],$listtemp);

5、修改e/class/functions.php
第2934行左右添加
$listtemp_center=str_replace("[!--lyid--]","<?=$r[lyid]?>",$listtemp_center);   $listtemp_center=str_replace("[!--name--]","<?=$r[name]?>",$listtemp_center);   $listtemp_center=str_replace("[!--gtitle--]","<?=$r[gtitle]?>",$listtemp_center);

6、然后修改留言模板
(1)加入必填項: <input name="gtitle" type="text" id="gtitle" />
(2)加入驗證碼: <input type=text name=key><img src="/e/ShowKey/?v=gbook" onClick="this.src= this.src +'&xx='+Math.random()" alt="看不清楚,點擊刷新">
(3)后臺開啟留言驗證: 系統參數修改——信息設置 —留言驗證碼

至此,留言字段添加成功。

分享到:
標簽:字段 帝國 驗證碼
用戶無頭像

網友整理

注冊時間:

網站:5 個   小程序:0 個  文章:12 篇

  • 51998

    網站

  • 12

    小程序

  • 1030137

    文章

  • 747

    會員

趕快注冊賬號,推廣您的網站吧!
最新入駐小程序

數獨大挑戰2018-06-03

數獨一種數學游戲,玩家需要根據9

答題星2018-06-03

您可以通過答題星輕松地創建試卷

全階人生考試2018-06-03

各種考試題,題庫,初中,高中,大學四六

運動步數有氧達人2018-06-03

記錄運動步數,積累氧氣值。還可偷

每日養生app2018-06-03

每日養生,天天健康

體育訓練成績評定2018-06-03

通用課目體育訓練成績評定