Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Members only S2H script not working with V9.4
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Members only S2H script not working with V9.4

 Post Reply Post Reply
Author
Andy Rowland View Drop Down
Groupie
Groupie
Avatar

Joined: 13 July 2004
Location: London
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote Andy Rowland Quote  Post ReplyReply Direct Link To This Post Topic: Members only S2H script not working with V9.4
    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() %>
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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 own forum for support of my mods


Edited by Scotty32 - 06 September 2007 at 7:54pm
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
Andy Rowland View Drop Down
Groupie
Groupie
Avatar

Joined: 13 July 2004
Location: London
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote Andy Rowland Quote  Post ReplyReply Direct Link To This Post 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.Smile
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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 - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
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.