论坛添加注册提醒功能
1,admin/forumads.asp<tr><td width=\\\"200\\\" class=\\\"td1\\\"><B>论坛首页浮动广告图片高度</B></td>
<td width=\\\"*\\\" class=\\\"td1\\\">
<input type=\\\"text\\\" name=\\\"Forum_ads_6\\\" size=\\\"3\\\" value=\\\"<%=Dvbbs.Forum_ads(6)%>\\\"> 象素
</td>
</tr>
下面添加
<tr>
<td width=\\\"200\\\" class=\\\"td1\\\"><B>开启注册提醒</B></td>
<td width=\\\"*\\\" class=\\\"td1\\\">
<input type=radio class=\\\"radio\\\" name=\\\"Forum_ads_30\\\" value=0 <%if Dvbbs.Forum_ads(30)=\\\"0\\\" then%>checked<%end if%>>关闭
<input type=radio class=\\\"radio\\\" name=\\\"Forum_ads_30\\\" value=1 <%if Dvbbs.Forum_ads(30)=\\\"1\\\" then%>checked<%end if%>>打开
</td>
</tr>
2,index.asp在
If Dvbbs.Forum_ads(2)=\\\"1\\\" or Dvbbs.Forum_ads(13)=\\\"1\\\" Then
上面添加
If Dvbbs.Forum_ads(30)=1 And Dvbbs.Userid=0 Then
TPL_Echo \\\"<script language=\\\"\\\"javascript\\\"\\\" src=\\\"\\\"inc/regts.js\\\"\\\" type=\\\"\\\"text/javascript\\\"\\\"></script>\\\"
End If3,dispbbs.asp在
Topic_Ads=Dvbbs.Forum_ads(n)(CInt(UBound(Dvbbs.Forum_ads(n))*Rnd))
End Function
下面添加
If Dvbbs.Forum_ads(30)=1 And Dvbbs.Userid=0 Then
TPL_Echo \\\"<script language=\\\"\\\"javascript\\\"\\\" src=\\\"\\\"inc/regts.js\\\"\\\" type=\\\"\\\"text/javascript\\\"\\\"></script>\\\"
End If
4,下载regts.js文件到inc目录
5,进后台》广告设置》开启注册提醒》选是
修改完看一下效果吧。弹出的登录框样式可以在regts.js里面修改
页:
[1]
2