Print Page | Close Window

Site intergration

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=23041
Printed Date: 07 April 2026 at 9:49pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Site intergration
Posted By: freebs
Subject: Site intergration
Date Posted: 02 April 2007 at 11:30am
I have searched this site quite a bit and cant seem to find anything on site intergration. I have sections of my site that are not part of the forum and want to be able to restrict sertain sections to members only.
 
I have bought a license so I assume I am allowed to make modifications.  I do remember there was a topi dealing with this a while ago but it seems to be gone now.
 
I realise i need to include the common.asp file, but what else do I need to do.
 
 



Replies:
Posted By: wistex
Date Posted: 02 April 2007 at 1:17pm
It's very easy.

1. Include the common.asp code using an include statement.

2. Then you have to use IF/THEN statements using WWF's variables.

For example, if you want something hidden from people not logged in it would be as simple as doing this:

IF blnGuest then
    Response.Write "You must be logged in to access this area"
    etc. .... insert code you want to display to people not logged in or activated
else
    Response.Write "Member Area"
    etc. .... insert code you want to display to members here
end if

If you want to get more specific, you can use other variables that WWF sets.  Some of them include:

blnGuest = true if not logged in; true if logged in and not activated; false if logged in and activated

blnAdmin = true if a Forum Administrator

blnModerator = true if a Forum Moderator

blnActiveMember = true if allowed to post in forum

intGroupID = the group number that a member belongs to.  This is nice if you want to allow or deny certain groups from seeing certain things.

blnBanned = true if the logged in user is banned.

And there are many more you can key off of.  See includes/global_variables_inc.asp for a list of variables you can use.

For most things, a simple IF/THEN statement keying off the appropriate WWF variable will be all you need.


-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums


Posted By: freebs
Date Posted: 02 April 2007 at 2:39pm
Thanks i will give it a try.



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