Print Page | Close Window

quick security integration question! help

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=9326
Printed Date: 07 April 2026 at 8:16pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: quick security integration question! help
Posted By: PrimeraRacer
Subject: quick security integration question! help
Date Posted: 28 January 2004 at 1:18pm

Hi.

I'm trying to lockdown some pages on my website based on the user logged into the forum.

basically I want it to see if the user is a guest on the forum and if so tell them they cant access the page.

If they are in the members group I want to allow access to the page.

I know this will need to be done through the userID or something but does anyoen have a quick solution for doign this before I trawl through and look into it all myself!!

Many Thanks

Kev




Replies:
Posted By: dpyers
Date Posted: 28 January 2004 at 11:18pm
That's pretty much it. Restrict a topic to specific groups and move whomever you want into the groups.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: snapey
Date Posted: 29 January 2004 at 11:20am

dp,

You seem to have missed the point. I think Kev needs to check if the user is logged in to the forum before allowing them access to non-forum content.

(as do I, which is why I was watching this forum).

Kev, I noticed a possible mod in the mods forum that will do what we need, but I have not had chance to test it out yet.

See http://forums.webwiz.net/forum_posts.asp?TID=843&PN=1 - http://forums.webwiz.net/forum_posts.asp?TID=843&am p;PN=1

 



Posted By: dpyers
Date Posted: 29 January 2004 at 7:52pm
Originally posted by snapey snapey wrote:

dp,

You seem to have missed the point.

Right you are!



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: PrimeraRacer
Date Posted: 30 January 2004 at 4:52am

yeah cheers mate I've looked at that mod but theres now two of us that cant get it working.

I was rather hoping that the userID would be stored as a server variable and it would then be dead easy to do...

Can anyone else help.......... Surely this has been done before!

Thanks

Kev



Posted By: WebWiz-Bruce
Date Posted: 30 January 2004 at 5:16am
Have a look in the file common.asp, all the logining in stuff is done in there and just chop out the bits that you require.

Each line is commented to let you know what is going on to make it simpler to follow the code.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: PrimeraRacer
Date Posted: 30 January 2004 at 5:24am

cheers I'll have a look.

I was starting to look at retreiving the GroupID value from the database based on the users username retreived from the Cookie.

Would this way work?

if it would then can you tell me what the cookie name is so I can retreive from it.

if not then I'll give up lol

Cheers

Kev



Posted By: PrimeraRacer
Date Posted: 30 January 2004 at 5:27am

just had a look at the common file... looks like I might be able to chop that as you said.

I'll let you know if I fail miserably lol!

Cheers

Kev



Posted By: PrimeraRacer
Date Posted: 30 January 2004 at 6:30am

Just one issue now.

I'm having problems with the reference "formatSQLInput" in the common.asp.

I know its a function but I cant find the function anywhere. Can you possibly tell me which file its held in, I've tried all the function files to no avail!

Cheers

Kev



Posted By: WebWiz-Bruce
Date Posted: 30 January 2004 at 7:55am
It's in the file functions/functions_filters.asp

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: PrimeraRacer
Date Posted: 30 January 2004 at 8:26am

hmm wierd.

I included that file and get this error message

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'formatSQLInput'

/check_permission.asp, line 185



Posted By: PrimeraRacer
Date Posted: 30 January 2004 at 8:30am

ignore that I got it working now!

Will see how the code works with the permissions and let ya know!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net