Members only S2H script not working with V9.4
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=24359
Printed Date: 30 March 2026 at 4:18am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Members only S2H script not working with V9.4
Posted By: Andy Rowland
Subject: Members only S2H script not working with V9.4
Date Posted: 06 September 2007 at 7:48pm
Does any one know why the members only script from http://www.s2h.co.uk/wwf/tips/intergration/member-only-pages.asp no longer works with the new version of the forum.
<!--#include virtual="/forum/common.asp" -->
<%
If lngLoggedInUserID = 2 then
Call closeDatabase()
response.redirect("/forum/login_user.asp")
End If
%>
response.redirect("/forum/insufficient_permission.asp")
<% Call closeDatabase() %>
|
Replies:
Posted By: Scotty32
Date Posted: 06 September 2007 at 7:52pm
Did you not get my reply to your email?
the problem is WebWizForums locks the cookie to the /forum/ folder only and cannot be used outside of that.
open the "setup_options_inc.asp" in "includes" folder and edit the following lines:
strCookiePath = Left(Request.ServerVariables("HTTP_URL"), InstrRev(Request.ServerVariables("HTTP_URL"), "/"))
'strCookiePath = "/" 'Uncomment this line if your forum has issues with cookies |
uncomment the bottom line and comment out the top line so it reads:
'strCookiePath = Left(Request.ServerVariables("HTTP_URL"), InstrRev(Request.ServerVariables("HTTP_URL"), "/"))
strCookiePath = "/" 'Uncomment this line if your forum has issues with cookies |
also, it would be better if you used my http://www.s2h.co.uk/forum/ - own forum for support of my mods
------------- S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins
For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .
|
Posted By: Andy Rowland
Date Posted: 06 September 2007 at 8:01pm
Sorry for not using your forum. It now works fine. Can this also be set up so only people with admin rights can access secure pages? Thanks for the help.
|
Posted By: Scotty32
Date Posted: 06 September 2007 at 8:08pm
yes, instead of members only, to have admins only you just do:
If not blnAdmin then Call closeDatabase() response.redirect("/forum/login_user.asp") end if
|
and for specific groups you would do:
If intGroupID <> 1 then Call closeDatabase() response.redirect("/forum/login_user.asp") end if
|
just change "1" to the ID number of the group you want to have access
------------- S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins
For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .
|
|