插件名稱:發文確定看過版規按鈕
適用版本:2.5/SP1
最後更新日期:25/8
作 者:jimmyjimmyqqq,lu5266
修 改:lu5266
程式指導:jimmyjimmyqqq,lu5266
數據升級:/
修改文件:/
修改模板:forumdisplay.htm,post_newthread.htm,viewthread.htm,post_newreply.htm
新增文件:/
新增模板:/
安裝難度:★★☆☆☆
演 示:
本插件使用Cookies,不會每次都彈出來,不用擔心!
發文時 都會彈出視窗警告
這樣會員才會看清楚
被罰也沒有怨言
+++++++++++++++++++++++++++++++++++
開始安裝
+++++++++++++++++++++++++++++++++++
打開forumdisplay.htm
查找:
- theform.topicsubmit.disabled = true;
- return true;
复制代码
替換為:
- function Set(Cookie_name)
- {
- var Then = new Date()
- Then.setTime(Then.getTime() + 720*3600000 ) //從最後發貼起12小時有效
- document.cookie = Cookie_name+"=true;expires="+ Then.toGMTString()
- }
- function Get(Cookie_name)
- {
- var cookieString = new String(document.cookie)
- var cookieHeader = Cookie_name+"="
- var beginPosition = cookieString.indexOf(cookieHeader)
- if (beginPosition != -1)
- return true;
- else
- return false;
- }
- read_agree=false;
- if(!Get('agree_rule'))
- read_agree=confirm("請您先確定已經看過版規和瞭解版規\r\n當您按下 發表文章 ,表示您同意版規且如果違規願意接受處罰!!");
- if(Get('agree_rule')) read_agree=true;
- if(read_agree)
- {
- Set('agree_rule');
- theform.topicsubmit.disabled = true;
- return true;
- }
-
- else return false;
复制代码
尋找
- <input type="submit" name="topicsubmit" value="{lang post_topicsubmit}" tabindex="3">
复制代码
修改成
- <input type="submit" name="topicsubmit" value="{lang post_topicsubmit}" tabindex="3" onclick="return checkset()">
复制代码
打開 post_newtheath.htm
查找:
- theform.topicsubmit.disabled = true;
- return true;
复制代码
替換為:
- function Set(Cookie_name)
- {
- var Then = new Date()
- Then.setTime(Then.getTime() + 720*3600000 ) //從最後發貼起12小時有效
- document.cookie = Cookie_name+"=true;expires="+ Then.toGMTString()
- }
- function Get(Cookie_name)
- {
- var cookieString = new String(document.cookie)
- var cookieHeader = Cookie_name+"="
- var beginPosition = cookieString.indexOf(cookieHeader)
- if (beginPosition != -1)
- return true;
- else
- return false;
- }
- read_agree=false;
- if(!Get('agree_rule'))
- read_agree=confirm("請您先確定已經看過版規和瞭解版規\r\n當您按下 發表文章 ,表示您同意版規且如果違規願意接受處罰!!");
- if(Get('agree_rule')) read_agree=true;
- if(read_agree)
- {
- Set('agree_rule');
- theform.topicsubmit.disabled = true;
- return true;
- }
-
- else return false;
复制代码
找:
- <center><input type="submit" name="topicsubmit" value="{lang post_newthread}" tabindex="5">
复制代码
修改成:
- <center><input type="submit" name="topicsubmit" value="{lang post_newthread}" tabindex="5" onclick="return checkset()">
复制代码
打開 viewthread.htm
尋找
- theform.replysubmit.disabled = true;
- return true;
复制代码
替換為
- function Set(Cookie_name)
- {
- var Then = new Date()
- Then.setTime(Then.getTime() + 720*3600000 ) //從最後發貼起12小時有效
- document.cookie = Cookie_name+"=true;expires="+ Then.toGMTString()
- }
- function Get(Cookie_name)
- {
- var cookieString = new String(document.cookie)
- var cookieHeader = Cookie_name+"="
- var beginPosition = cookieString.indexOf(cookieHeader)
- if (beginPosition != -1)
- return true;
- else
- return false;
- }
- read_agree=false;
- if(!Get('agree_rule'))
- read_agree=confirm("請您先確定已經看過版規和瞭解版規\r\n當您按下 發表文章 ,表示您同意版規且如果違規願意接受處罰!!");
- if(Get('agree_rule')) read_agree=true;
- if(read_agree)
- {
- Set('agree_rule');
- theform.replysubmit.disabled = true;
- return true;
- }
-
- else return false;
复制代码
並把
- <input type="submit" name="replysubmit" value="{lang post_topicsubmit}" tabindex="3">
复制代码
改為:
- <input type="submit" name="replysubmit" value="{lang post_topicsubmit}" tabindex="3" onclick="return checkset()">
复制代码
打開 post_newreply.htm
尋找
- theform.replysubmit.disabled = true;
- return true;
复制代码
替換為
- function Set(Cookie_name)
- {
- var Then = new Date()
- Then.setTime(Then.getTime() + 720*3600000 ) //從最後發貼起12小時有效
- document.cookie = Cookie_name+"=true;expires="+ Then.toGMTString()
- }
- function Get(Cookie_name)
- {
- var cookieString = new String(document.cookie)
- var cookieHeader = Cookie_name+"="
- var beginPosition = cookieString.indexOf(cookieHeader)
- if (beginPosition != -1)
- return true;
- else
- return false;
- }
- read_agree=false;
- if(!Get('agree_rule'))
- read_agree=confirm("請您先確定已經看過版規和瞭解版規\r\n當您按下 發表文章 ,表示您同意版規且如果違規願意接受處罰!!");
- if(Get('agree_rule')) read_agree=true;
- if(read_agree)
- {
- Set('agree_rule');
- theform.replysubmit.disabled = true;
- return true;
- }
-
- else return false;
复制代码
並把
- <center><input type="submit" name="replysubmit" value="{lang post_newreply}" tabindex="5">
复制代码
修改成
- <center><input type="submit" name="replysubmit" value="{lang post_newreply}" tabindex="5" onclick="return checkset()">
复制代码
謝謝大家支持,多謝lu5266
[ 本帖最后由 jimmyjimmyqqq 于 2005-8-25 15:16 编辑 ] |