In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the Imperial CMS how to deduct the membership points and cancel the top after expiration, the article is very detailed, has a certain reference value, interested friends must read it!
The specific implementation methods are as follows:
1. Add the int field to the desired system model, top radio button 0p1 (0 is no, 1 is yes)
2. Modify e/class/qinfofun.php and find it in the file
Esetcookie ("lastaddinfotime", time (), time () + 3600mm 24)
All the way to /
Replace all with:
The code is as follows:
/ / Top deduction $tasking deduction empires-> fetch2 ("select top from {$dbtbpre} ecms_". $tbname. " Where userid='$muserid' and id='$id' and classid='$classid' limit 1 "); if ($t [top]) {$wicked empires-> fetch2 (" select userfen from {$dbtbpre} enewsmember where userid='$muserid' "); if ($w [userfen] > = 10) {$sql3=$empire- > query (" update {$dbtbpre} enewsmember set userfen=userfen-10 where userid='$muserid' "); printerror (" AddQinfoSuccess ", $reurl,1);} else {$sql4=$empire- > query (" update {$dbtbpre} ecms_ ". $tbname." Set top=0 where userid='$muserid' and id='$id' and classid='$classid' limit 1 "); printerror (" jifenbugou ", $reurl,1);}} else {printerror (" AddQinfoSuccess ", $reurl,1);}} else {printerror (" DbError "," history.go (- 1) ", 1);}}
Recommended to learn the Imperial cms course
3. Modify e/class/qinfofun.php and find it in the file
The code is as follows:
If ($sql) {$reurl=DoingReturnUrl ("ListInfo.php?mid=$mid", $add ['ecmsfrom']); if ($add [' editgotoinfourl'] & & $infor ['checked']) / / return content page {if ($cr [' showdt'] = = 1) {$reurl=$public_ r [newsurl]. "e/action/ShowInfo/?classid=$classid&id=$id";} elseif ($cr ['showdt'] = 2) {$reurl=$public_ r [newsurl]. "e/action/ShowInfo.php?classid=$classid&id=$id";} else {$reurl=$titleurl;}}
To /-to be replaced by:
The code is as follows:
/ / Top deduction $tasking deduction empires-> fetch2 ("select top from {$dbtbpre} ecms_". $tbname. " Where userid='$muserid' and id='$id' and classid='$classid' limit 1 "); if ($t [top]) {$wicked empires-> fetch2 (" select userfen from {$dbtbpre} enewsmember where userid='$muserid' "); if ($w [userfen] > = 10) {$sql3=$empire- > query (" update {$dbtbpre} enewsmember set userfen=userfen-10 where userid='$muserid' "); printerror (" EditQinfoSuccess ", $reurl,1);} else {$sql4=$empire- > query (" update {$dbtbpre} ecms_ ". $tbname." Set top=0 where userid='$muserid' and id='$id' and classid='$classid' limit 1 "); printerror (" jifenbugou ", $reurl,1)
} else {printerror ("EditQinfoSuccess", $reurl,1);}} else {printerror ("DbError", "history.go (- 1)", 1);}}
Note that 10 of the part is set for deducted points, and jifenbuzhu can add it to e/data/language/gb/pub/q_message.php for the prompts it needs (gb2312 version).
The main purpose of adding this field is to avoid conflicts with the boss's firsttitle and avoid the trouble caused by future upgrades.
If the member points are insufficient, it is indicated that the points are insufficient, but the information still allows it to be submitted but not at the top.
Call the method in the list template:
The code is as follows:
[select * from phome_ecms_house where top=1 and checked=1 and classid='$ globals [navy] 'limit 3 ", 3Jing 2410}] [Top]
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.