Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Force existing members to review new policy
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

redbrad0
Advanced Member

USA
3725 Posts

Posted - 06 June 2004 :  14:04:20  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
does the read_new_policy.asp file use the same inc_header.asp? If so then you need put a check that if they are on read_new_policy.asp then dont forward them to the page.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 06 June 2004 :  15:21:54  Show Profile  Visit NiteOwl's Homepage
YES, that helped!!! Thank-you very much!!

-=NiteOwl=-

Edited by - NiteOwl on 06 June 2004 16:36:42
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 06 June 2004 :  17:00:58  Show Profile  Visit NiteOwl's Homepage
Whew, almost there, I owe you guys a beer!

So the last piece of this puzzle for me is to now be able to present a form like the read_new_policy.asp and have available a string which will update the M_View_Policy field in the Forum.Members table.

Initially I am using a copy of the Policy.asp but I am unsure how or where to add the Agree form to the code.

-=NiteOwl=-

Edited by - NiteOwl on 06 June 2004 17:28:21
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 06 June 2004 :  17:49:56  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Well first thing I just noticed when I went to your site is that if its a new user that has not yet signed up or logged in they get sent to the new policy page. You need to have a check in inc_header.asp right before this function is called where its basically like


If MemberID>0 Then
' #THEY ARE A MEMBER SO LETS CHECK FOR NEW POLICY PAGE
ReadNewPolicy(MemberID)
Else
' # THEY ARE NOT A MEMBER SO DON'T DO ANYTHING
End If


Next you need to change this line
<form action="register.asp?mode=Register" id="form1" method="post" name="form1">

with this line
<form action="read_new_policy.asp?action=read" id="form1" method="post" name="form1">

Then towards the top of the new policy page you need to add a quick check to see if the form was submitted


<%
If Request.QueryString("action")="read" Then
' # ADD SQL UPDATE STATMENT BELOW

' # NOW WE WILL REDIRECT THEM TO THE FORUM SINCE ITS BEEN UPDATED
Response.Redirect("default.asp")
End If
%>

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 06 June 2004 :  23:42:38  Show Profile  Visit NiteOwl's Homepage
Excellent, thank you very much. Hopfully this will be my last newbie question:

What is the content of the SQL update string?

is it something like this:?

strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " SET M_VIEW_POLICY = " 1 "

-=NiteOwl=-

Edited by - NiteOwl on 07 June 2004 00:25:56
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 07 June 2004 :  02:52:33  Show Profile
strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS SET M_VIEW_POLICY = 1"
my_Conn.Execute(strSql),,adCmdText + adExecuteNoRecords

Support Snitz Forums
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 07 June 2004 :  08:46:47  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
No problem, as long as your trying to learn alot of people don't mind helping out.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 07 June 2004 :  11:19:50  Show Profile  Visit NiteOwl's Homepage
Looked pretty good, I inserted the code and pressed agree, it however populated all users with a 1 and not just the user I was logged in with. grin

-=NiteOwl=-
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 07 June 2004 :  13:32:51  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
because Davio left out a small part of the code change what davio posted to below...


strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS SET M_VIEW_POLICY = 1 WHERE MEMBER_ID=" & MemberID
my_Conn.Execute(strSql),,adCmdText + adExecuteNoRecords


Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 07 June 2004 :  21:56:55  Show Profile  Visit NiteOwl's Homepage
YES, that did it, thank you guys, this is just too excellent!!


-=NiteOwl=-
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 07 June 2004 :  22:53:19  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
No problem

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 08 June 2004 :  01:02:19  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
This message keeps coming up saying there is a new post and nothing is new

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 08 June 2004 :  23:49:52  Show Profile
Most likely niteowl is editing one of his previous topics Brad.

Support Snitz Forums
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 09 June 2004 :  00:46:01  Show Profile  Visit NiteOwl's Homepage
Yes, I was doing exactly that, I wanted to be clear incase somone, or even myself followed theses steps one day. grin, thanks so much again guys!!

NiteOwl

-=NiteOwl=-
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 09 June 2004 :  01:01:27  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
No problem.... That was working without any sleep, I shouldnt keep doing that I thought I was going insane

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.01 seconds. Powered By: Snitz Forums 2000 Version 3.4.07