帝国cms视频教程当天5小时内更新 显示 new

完美笔记:帝国CMS后台系统设置无限增加客服QQ解决方案
对于一个初识帝国CMS新用户来说,刚使用中新系统又希望能在后台简单方便的增加多个客服QQ,就目前系统的功能后台是不可以直接添加的,这里简单介绍一下如何处理后台一步设置多个
&对于一个初识帝国CMS新用户来说,刚使用中新系统又希望能在后台简单方便的增加多个客服QQ,就目前系统的功能后台是不可以直接添加的,这里简单介绍一下如何处理后台一步设置多个客服QQ的方法。
找到e/admin/(在未修改管理后台目录为admin)目录下的SetEnews.php文件,查找下面代码:
$sql=$empire-&query(&update&{$dbtbpre}enewspublic&set&&.$a.&sitename='$add[sitename]',newsurl='$add[newsurl]',email='$add[email]',filetype='$add[filetype]',filesize=$add[filesize],hotnum=$add[hotnum],newnum=$add[newnum],relistnum=$add[relistnum],renewsnum=$add[renewsnum],min_keyboard=$add[min_keyboard],max_keyboard=$add[max_keyboard],search_num=$add[search_num],search_pagenum=$add[search_pagenum],newslink=$add[newslink],checked=$add[checked],searchtime=$add[searchtime],loginnum=$add[loginnum],logintime=$add[logintime],addnews_ok=$add[addnews_ok],register_ok=$add[register_ok],indextype='$add[indextype]',goodlencord=$add[goodlencord],goodtype='$add[goodtype]',goodnum=$add[goodnum],searchtype='$add[searchtype]',exittime=$add[exittime],smalltextlen=$add[smalltextlen],defaultgroupid=$add[defaultgroupid],fileurl='$add[fileurl]',phpmode=$add[phpmode],ftphost='$add[ftphost]',ftpport='$add[ftpport]',ftpusername='$add[ftpusername]',ftppath='$add[ftppath]',ftpmode='$add[ftpmode]',install=$add[install],hotplnum=$add[hotplnum],dorepnum=$add[dorepnum],loadtempnum=$add[loadtempnum],firstnum=$add[firstnum],bakdbpath='$add[bakdbpath]',bakdbzip='$add[bakdbzip]',downpass='$add[downpass]',min_userlen=$add[min_userlen],max_userlen=$add[max_userlen],min_passlen=$add[min_passlen],max_passlen=$add[max_passlen],filechmod=$add[filechmod],loginkey_ok=$add[loginkey_ok],limittype=$add[limittype],redodown=$add[redodown],candocode=$add[candocode],opennotcj=$add[opennotcj],reuserpagenum=$add[reuserpagenum],revotejsnum=$add[revotejsnum],readjsnum=$add[readjsnum],qaddtran=$add[qaddtran],qaddtransize=$add[qaddtransize],ebakthisdb=$add[ebakthisdb],delnewsnum=$add[delnewsnum],markpos=$add[markpos],markimg='$add[markimg]',marktext='$add[marktext]',markfontsize='$add[markfontsize]',markfontcolor='$add[markfontcolor]',markfont='$add[markfont]',adminloginkey=$add[adminloginkey],php_outtime=$add[php_outtime],listpagefun='$add[listpagefun]',textpagefun='$add[textpagefun]',adfile='$add[adfile]',notsaveurl='$add[notsaveurl]',rssnum=$add[rssnum],rsssub=$add[rsssub],dorepdlevelnum=$add[dorepdlevelnum],listpagelistfun='$add[listpagelistfun]',listpagelistnum=$add[listpagelistnum],infolinknum=$add[infolinknum],searchgroupid=$add[searchgroupid],opencopytext=$add[opencopytext],reuserjsnum=$add[reuserjsnum],reuserlistnum=$add[reuserlistnum],opentitleurl='$add[opentitleurl]',qaddtranimgtype='$add[qimgtype]',qaddtranfile=$add[qaddtranfile],qaddtranfilesize=$add[qaddtranfilesize],qaddtranfiletype='$add[qfiletype]',sendmailtype=$add[sendmailtype],smtphost='$add[smtphost]',fromemail='$add[fromemail]',loginemail=$add[loginemail],emailusername='$add[emailusername]',emailpassword='$add[emailpassword]',smtpport='$add[smtpport]',emailname='$add[emailname]',feedbacktfile=$add[feedbacktfile],feedbackfilesize=$add[feedbackfilesize],feedbackfiletype='$add[feedbackfiletype]',searchtempvar=$add[searchtempvar],showinfolevel=$add[showinfolevel],navfh='&.eaddslashes($add[navfh]).&',spicwidth=$add[spicwidth],spicheight=$add[spicheight],spickill=$add[spickill],jpgquality=$add[jpgquality],markpct=$add[markpct],redoview=$add[redoview],reggetfen=$add[reggetfen],regbooktime=$add[regbooktime],revotetime=$add[revotetime],fpath=$add[fpath],filepath='$add[filepath]',openmembertranimg=$add[openmembertranimg],memberimgsize=$add[memberimgsize],openmembertranfile=$add[openmembertranfile],memberfilesize=$add[memberfilesize],memberimgtype='$add[memberimgtype]',memberfiletype='$add[memberfiletype]',canposturl='$add[canposturl]',openspace='$add[openspace]',realltime=$add[realltime],closeip='$add[closeip]',openip='$add[openip]',hopenip='$add[hopenip]',closewords='$add[closewords]',closewordsf='$add[closewordsf]',textpagelistnum=$add[textpagelistnum],memberlistlevel=$add[memberlistlevel],ebakcanlistdb=$add[ebakcanlistdb],keytog='$add[keytog]',keyrnd='$add[keyrnd]',keytime='$add[keytime]',regkey_ok='$add[regkey_ok]',opengetdown='$add[opengetdown]',gbkey_ok='$add[gbkey_ok]',fbkey_ok='$add[fbkey_ok]',newaddinfotime='$add[newaddinfotime]',classnavline='$add[classnavline]',classnavfh='&.eaddslashes($add[classnavfh]).&',sitekey='$add[sitekey]',siteintro='$add[siteintro]',docnewsnum='$add[docnewsnum]',dtcanbq='$add[dtcanbq]',dtcachetime='$add[dtcachetime]',regretime='$add[regretime]',regclosewords='$add[regclosewords]',regemailonly='$add[regemailonly]',repkeynum='$add[repkeynum]',getpasstime='$add[getpasstime]',acttime='$add[acttime]',regacttype='$add[regacttype]',acttext='&.eaddslashes($add[acttext]).&',getpasstext='&.eaddslashes($add[getpasstext]).&',acttitle='&.eaddslashes($add[acttitle]).&',getpasstitle='&.eaddslashes($add[getpasstitle]).&',opengetpass='$add[opengetpass]',hlistinfonum='$add[hlistinfonum]',qlistinfonum='$add[qlistinfonum]',dtncanbq='$add[dtncanbq]',dtncachetime='$add[dtncachetime]',readdinfotime='$add[readdinfotime]',qeditinfotime='$add[qeditinfotime]',ftpssl='$add[ftpssl]',ftppasv='$add[ftppasv]',ftpouttime='$add[ftpouttime]',onclicktype='$add[onclicktype]',onclickfilesize='$add[onclickfilesize]',onclickfiletime='$add[onclickfiletime]',closeqdt='$add[closeqdt]',settop='$add[settop]',qlistinfomod='$add[qlistinfomod]',gb_num='$add[gb_num]',member_num='$add[member_num]',space_num='$add[space_num]',opendoip='$add[opendoip]',closedoip='$add[closedoip]',doiptype='$doiptypes',infolday='$add[infolday]',filelday='$add[filelday]',baktempnum='$add[baktempnum]',dorepkey='$add[dorepkey]',dorepword='$add[dorepword]',onclickrnd='$add[onclickrnd]',indexpagedt='$add[indexpagedt]',keybgcolor='$add[keybgcolor]',keyfontcolor='$add[keyfontcolor]',keydistcolor='$add[keydistcolor]',closeqdtmsg='$add[closeqdtmsg]',openfileserver='$add[openfileserver]',closemods='$closemodss',fieldandtop='$add[fieldandtop]',fieldandclosetb='$add[fieldandclosetb]',firsttitlename='&.eaddslashes($add[firsttitlename]).&',isgoodname='&.eaddslashes($add[isgoodname]).&',closelisttemp='&.eaddslashes($add[closelisttemp]).&',chclasscolor='&.eaddslashes($add[chclasscolor]).&',timeclose='&.eaddslashes($timecloses).&',timeclosedo='&.eaddslashes($timeclosedos).&',ipaddinfonum='$add[ipaddinfonum]',ipaddinfotime='$add[ipaddinfotime]',closehmenu='$closehmenus';&);&&
将其替换为下面修改后的代码:
$sql=$empire-&query(&update&{$dbtbpre}enewspublic&set&&.$a.&sitename='$add[sitename]',newsurl='$add[newsurl]',email='$add[email]',filetype='$add[filetype]',filesize=$add[filesize],hotnum=$add[hotnum],newnum=$add[newnum],relistnum=$add[relistnum],renewsnum=$add[renewsnum],min_keyboard=$add[min_keyboard],max_keyboard=$add[max_keyboard],search_num=$add[search_num],search_pagenum=$add[search_pagenum],newslink=$add[newslink],checked=$add[checked],searchtime=$add[searchtime],loginnum=$add[loginnum],logintime=$add[logintime],addnews_ok=$add[addnews_ok],register_ok=$add[register_ok],indextype='$add[indextype]',goodlencord=$add[goodlencord],goodtype='$add[goodtype]',goodnum=$add[goodnum],searchtype='$add[searchtype]',exittime=$add[exittime],smalltextlen=$add[smalltextlen],defaultgroupid=$add[defaultgroupid],fileurl='$add[fileurl]',phpmode=$add[phpmode],ftphost='$add[ftphost]',ftpport='$add[ftpport]',ftpusername='$add[ftpusername]',ftppath='$add[ftppath]',ftpmode='$add[ftpmode]',install=$add[install],hotplnum=$add[hotplnum],dorepnum=$add[dorepnum],loadtempnum=$add[loadtempnum],firstnum=$add[firstnum],bakdbpath='$add[bakdbpath]',bakdbzip='$add[bakdbzip]',downpass='$add[downpass]',min_userlen=$add[min_userlen],max_userlen=$add[max_userlen],min_passlen=$add[min_passlen],max_passlen=$add[max_passlen],filechmod=$add[filechmod],loginkey_ok=$add[loginkey_ok],limittype=$add[limittype],redodown=$add[redodown],candocode=$add[candocode],opennotcj=$add[opennotcj],reuserpagenum=$add[reuserpagenum],revotejsnum=$add[revotejsnum],readjsnum=$add[readjsnum],qaddtran=$add[qaddtran],qaddtransize=$add[qaddtransize],ebakthisdb=$add[ebakthisdb],delnewsnum=$add[delnewsnum],markpos=$add[markpos],markimg='$add[markimg]',marktext='$add[marktext]',markfontsize='$add[markfontsize]',markfontcolor='$add[markfontcolor]',markfont='$add[markfont]',adminloginkey=$add[adminloginkey],php_outtime=$add[php_outtime],listpagefun='$add[listpagefun]',textpagefun='$add[textpagefun]',adfile='$add[adfile]',notsaveurl='$add[notsaveurl]',rssnum=$add[rssnum],rsssub=$add[rsssub],dorepdlevelnum=$add[dorepdlevelnum],listpagelistfun='$add[listpagelistfun]',listpagelistnum=$add[listpagelistnum],infolinknum=$add[infolinknum],searchgroupid=$add[searchgroupid],opencopytext=$add[opencopytext],reuserjsnum=$add[reuserjsnum],reuserlistnum=$add[reuserlistnum],opentitleurl='$add[opentitleurl]',qaddtranimgtype='$add[qimgtype]',qaddtranfile=$add[qaddtranfile],qaddtranfilesize=$add[qaddtranfilesize],qaddtranfiletype='$add[qfiletype]',sendmailtype=$add[sendmailtype],smtphost='$add[smtphost]',fromemail='$add[fromemail]',loginemail=$add[loginemail],emailusername='$add[emailusername]',emailpassword='$add[emailpassword]',smtpport='$add[smtpport]',emailname='$add[emailname]',feedbacktfile=$add[feedbacktfile],feedbackfilesize=$add[feedbackfilesize],feedbackfiletype='$add[feedbackfiletype]',searchtempvar=$add[searchtempvar],showinfolevel=$add[showinfolevel],navfh='&.eaddslashes($add[navfh]).&',spicwidth=$add[spicwidth],spicheight=$add[spicheight],spickill=$add[spickill],jpgquality=$add[jpgquality],markpct=$add[markpct],redoview=$add[redoview],reggetfen=$add[reggetfen],regbooktime=$add[regbooktime],revotetime=$add[revotetime],fpath=$add[fpath],filepath='$add[filepath]',openmembertranimg=$add[openmembertranimg],memberimgsize=$add[memberimgsize],openmembertranfile=$add[openmembertranfile],memberfilesize=$add[memberfilesize],memberimgtype='$add[memberimgtype]',memberfiletype='$add[memberfiletype]',canposturl='$add[canposturl]',openspace='$add[openspace]',realltime=$add[realltime],closeip='$add[closeip]',openip='$add[openip]',hopenip='$add[hopenip]',closewords='$add[closewords]',closewordsf='$add[closewordsf]',textpagelistnum=$add[textpagelistnum],memberlistlevel=$add[memberlistlevel],ebakcanlistdb=$add[ebakcanlistdb],keytog='$add[keytog]',keyrnd='$add[keyrnd]',keytime='$add[keytime]',regkey_ok='$add[regkey_ok]',opengetdown='$add[opengetdown]',gbkey_ok='$add[gbkey_ok]',fbkey_ok='$add[fbkey_ok]',newaddinfotime='$add[newaddinfotime]',classnavline='$add[classnavline]',classnavfh='&.eaddslashes($add[classnavfh]).&',sitekey='$add[sitekey]',siteintro='$add[siteintro]',qq='$add[qq]',docnewsnum='$add[docnewsnum]',dtcanbq='$add[dtcanbq]',dtcachetime='$add[dtcachetime]',regretime='$add[regretime]',regclosewords='$add[regclosewords]',regemailonly='$add[regemailonly]',repkeynum='$add[repkeynum]',getpasstime='$add[getpasstime]',acttime='$add[acttime]',regacttype='$add[regacttype]',acttext='&.eaddslashes($add[acttext]).&',getpasstext='&.eaddslashes($add[getpasstext]).&',acttitle='&.eaddslashes($add[acttitle]).&',getpasstitle='&.eaddslashes($add[getpasstitle]).&',opengetpass='$add[opengetpass]',hlistinfonum='$add[hlistinfonum]',qlistinfonum='$add[qlistinfonum]',dtncanbq='$add[dtncanbq]',dtncachetime='$add[dtncachetime]',readdinfotime='$add[readdinfotime]',qeditinfotime='$add[qeditinfotime]',ftpssl='$add[ftpssl]',ftppasv='$add[ftppasv]',ftpouttime='$add[ftpouttime]',onclicktype='$add[onclicktype]',onclickfilesize='$add[onclickfilesize]',onclickfiletime='$add[onclickfiletime]',closeqdt='$add[closeqdt]',settop='$add[settop]',qlistinfomod='$add[qlistinfomod]',gb_num='$add[gb_num]',member_num='$add[member_num]',space_num='$add[space_num]',opendoip='$add[opendoip]',closedoip='$add[closedoip]',doiptype='$doiptypes',infolday='$add[infolday]',filelday='$add[filelday]',baktempnum='$add[baktempnum]',dorepkey='$add[dorepkey]',dorepword='$add[dorepword]',onclickrnd='$add[onclickrnd]',indexpagedt='$add[indexpagedt]',keybgcolor='$add[keybgcolor]',keyfontcolor='$add[keyfontcolor]',keydistcolor='$add[keydistcolor]',closeqdtmsg='$add[closeqdtmsg]',openfileserver='$add[openfileserver]',closemods='$closemodss',fieldandtop='$add[fieldandtop]',fieldandclosetb='$add[fieldandclosetb]',firsttitlename='&.eaddslashes($add[firsttitlename]).&',isgoodname='&.eaddslashes($add[isgoodname]).&',closelisttemp='&.eaddslashes($add[closelisttemp]).&',chclasscolor='&.eaddslashes($add[chclasscolor]).&',timeclose='&.eaddslashes($timecloses).&',timeclosedo='&.eaddslashes($timeclosedos).&',ipaddinfonum='$add[ipaddinfonum]',ipaddinfotime='$add[ipaddinfotime]',closehmenu='$closehmenus';&);&&
继续往下查找:
&&&td&height=&25&&bgcolor=&#FFFFFF&&网站简介&/td&&&
&&&td&height=&25&&bgcolor=&#FFFFFF&&&textarea&name=&siteintro&&cols=&80&&rows=&5&&id=&siteintro&&&?=$r[siteintro]?&&/textarea&&/td&&&
在&/tr&后换行增加下面代码:
&&&td&height=&25&&bgcolor=&#FFFFFF&&客服QQ&/td&&&
&&&td&height=&25&&bgcolor=&#FFFFFF&&&input&name=&qq&&type=&text&&id=&qq&&value=&&?=$r[qq]?&&&size=&38&&&font color=&#666666&&(多个QQ请)&/font&&/td&&&
最后,在要显示客服QQ的前端网页代码内插入下面调用代码:
[e:loop={&select&*&from&{$dbtbpre}enewspublic&LIMIT&0,30&,0,24,0}]&&
$a=&$bqr[qq]&;&&
$str=str_replace(',&',&',',&$a);&&
$t=&explode(&,&,&$str);&&&
&&&&$i=0;&&
&&&&$arr_n=count($t)-1;&&
&&&&foreach($t&as&$f){&&
&&&&if($arr_n!=$i){&&
&&&&&&&&$qlink=&tencent://QQInterLive/?Cmd=2&Uin=&.urlencode($t[$i]).&&;&&
&&&&&&&&$qq.=&&li&&a&class='qq_icon'&href='$qlink'&target='_blank'&&.$t[$i].&&;&&
&&&&}else{&&
&&&&&&&&$qlink=&tencent://QQInterLive/?Cmd=2&Uin=&.urlencode($t[$i]).&&;&&
&&&&&&&&$qq.=&&li&&a&class='qq_icon'&href='$qlink'&target='_blank'&&.$t[$i].&&;&&
&&&&$i++;&&
&&&&echo&$&&
[/e:loop]&&
OK,在数据更新下重新生成静态HTML页面。
扫码二维码帝国cms当天5小时内更新 显示 new_百度知道
帝国cms当天5小时内更新 显示 new
a href=&quot?&;&&img//&li& //&24小时内的文章标识为最新文章
if(time()-$bqr[truetime]&[?&gt,52);;3;&;[&#47,4;&/;&lt!--&lt[e;&&a&
}?=$&&lt,0?&gt,1&#39?php
$newimg=&quot?=esub($bqr[title];&gt?=$bqsr[titleurl];img src=&#39?&gt,0}]&;
/.gif'NEW;three&#47.url--]skin/;=1*24*3600){
$newimg=&quot:loop={'li&e
您的回答被采纳后将获得:
系统奖励20(财富值+经验值)+难题奖励30(财富值+经验值)帝国CMS教程:使用灵动标签制造时间飘红效果技巧_帝国CMS_绿色第一站
&|&&|&&|&&|&&|&&|&&|&&|&&|&&|&&|&&|&
&&>>&&>>&&>>&&>>&
帝国CMS教程:使用灵动标签制造时间飘红效果技巧
作者:佚名
文章来源:Onegreen.Net
浏览次数:(载入中...)
更新时间:
TAG:CMS教程&&帝国cms
帝国CMS教程:使用灵动标签制造时间飘红效果技巧
1、如果是今天发布的资源飘红的办法
----------------------------------------------------------------------------------------------------------------
&&& [e:loop={分类ID,显示条数,操作类型,只显示有预览图的软件}]
&&& $newcolor=&#666666&;
&&& if(strtotime(date(&Y-m-d&,$bqr[softtime]))==strtotime(date(&Y-m-d&)))
&&& $newcolor=&#FF0000&;
&&& &li&&a href=&&?=$bqsr[classurl]?&& class=&inclass&&[&?=$bqsr[classname]?&]&/a&&a href=&&?=$bqsr[softurl]?&& title=&&?=$bqr[softname]?&& target=&_blank& class=&intitle&&&?=esub($bqr[softname],40)?&&/a&&span&&font color=&&?=$newcolor?&&&&?=date(&m-d&,$bqr[softtime])?&&/font&&/span&&/li&
&&& [/e:loop]
--------------------------------------------------------------------------------
if(strtotime(date(&Y-m-d&,$bqr[softtime]))==strtotime(date(&Y-m-d&))) 这句是运用帝国如果发布软件的日期和当前日期相同,就可以改变你设定的日期当然你可以任意颜色了
2、目前时间距离更新时间24小时或者更久时间的实现办法
==============================================================
&&& [e:loop={分类ID,显示条数,操作类型,只显示有预览图的软件}]
&&& $newcolor=&#666666&;
&&& if(time()-$bqr[softtime]&=24*3600)
&&& $newcolor=&#FF0000&;
&&& &li&&a href=&&?=$bqsr[classurl]?&& class=&inclass&&[&?=$bqsr[classname]?&]&/a&&a href=&&?=$bqsr[softurl]?&& title=&&?=$bqr[softname]?&& target=&_blank& class=&intitle&&&?=esub($bqr[softname],40)?&&/a&&span&&font color=&&?=$newcolor?&&&&?=date(&m-d&,$bqr[softtime])?&&/font&&/span&&/li&
&&& [/e:loop]
=================================================================
注:if(time()-$bqr[softtime]&=24*3600)& 这里只是24小时的,如果你想3天就用if(time()-$bqr[softtime]&=3*24*3600)
关 键 字:
相关文章:
上一篇文章: 下一篇文章:
子栏目导航
&&&&&&&&&&&&&&&&

我要回帖

更多关于 帝国cms视频教程 的文章

 

随机推荐