Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Trouble administrating my forum
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Trouble administrating my forum

 Post Reply Post Reply
Author
conn360 View Drop Down
Newbie
Newbie
Avatar

Joined: 21 April 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote conn360 Quote  Post ReplyReply Direct Link To This Post Topic: Trouble administrating my forum
    Posted: 21 April 2003 at 2:12pm

Whenever i try to administrate my forum it says i have insufficiant permission to do so.....even when im logged in as administrator. Am i doing something wrong???

If someone can point me in the right direction i will be very gratefull

Back to Top
oneminuteguy View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 18 October 2002
Location: Denmark
Status: Offline
Points: 100
Post Options Post Options   Thanks (0) Thanks(0)   Quote oneminuteguy Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2003 at 2:38pm
What version r u using?
Back to Top
conn360 View Drop Down
Newbie
Newbie
Avatar

Joined: 21 April 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote conn360 Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2003 at 2:56pm
The access 2002 version
Back to Top
boyohboy View Drop Down
Groupie
Groupie


Joined: 15 October 2002
Location: United States
Status: Offline
Points: 197
Post Options Post Options   Thanks (0) Thanks(0)   Quote boyohboy Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2003 at 3:01pm

clean out everything and start a new one.

I do that and it works

Visit my community website @
EverythingVIET.com
Back to Top
conn360 View Drop Down
Newbie
Newbie
Avatar

Joined: 21 April 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote conn360 Quote  Post ReplyReply Direct Link To This Post Posted: 22 April 2003 at 3:46am

Rite,

Ive managed to find the file forum_permission.  Can anyone tell me if this code is rite???


'Turn the members status number returned from the database into a string value
Select Case intMemberStatus
 'Guest status
 Case 0
  strMemberStatus = "Guest"
 'Standard member status
 Case 1
  strMemberStatus = "Standard"
 'Super member status
 Case 2
  strMemberStatus = "Super"
 'Power member status
 Case 3
  strMemberStatus = "Power"
End select


'Get the security level for the member within this forum
If Request.QueryString("ForumID") <> "" Then
  
 'Intialise the ADO recordset object
 Set rsSecurityLevel = Server.CreateObject("ADODB.Recordset")
 
 'Initlise the sql statement
 If strDatabaseType = "SQLServer" Then
  strSQL = "EXECUTE wwfSpForumsAllWhereForumIs @intForumID = " & CInt(Request("ForumID"))
 Else
  strSQL = "SELECT tblForum." & strMemberStatus & " FROM tblForum WHERE tblForum.Forum_ID=" & CInt(Request("ForumID")) & "; "
 End If
 
 'Query the database
 rsSecurityLevel.Open strSQL, strCon
    
 'If theres a record returned then get the security level of the user on this forum
 If NOT rsSecurityLevel.EOF Then
  intMemberSecurityLevel = CInt(rsSecurityLevel(strMemberStatus))
 End If
    
 'Get rid of them objects
 rsSecurityLevel.Close
 Set rsSecurityLevel = Nothing 
End If

'If the user is the forum admin or moderator then set there security level to 1 (read and write)
If lngLoggedInUserID = 1 OR blnModerator = True Then intMemberSecurityLevel = 1

'If the security level for this user on this forum is 3 they don't have permission to view this forum so send them elsewhere
If intMemberSecurityLevel = 3 Then
 
 'Reset Server Objects
 Set adoCon = Nothing
 Set strCon = Nothing
 
 'Redirect to no permission page
 Response.Redirect("insufficient_permission.asp?" & Request.ServerVariables("QUERY_STRING"))
End If
%>

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 22 April 2003 at 4:35am

Deleting the fprum and reuploading everything again.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.