Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Site intergration
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Site intergration

 Post Reply Post Reply
Author
freebs View Drop Down
Groupie
Groupie


Joined: 04 March 2005
Location: South Africa
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote freebs Quote  Post ReplyReply Direct Link To This Post Topic: Site intergration
    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.
 
 
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post 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.


Edited by wistex - 02 April 2007 at 1:21pm
Back to Top
freebs View Drop Down
Groupie
Groupie


Joined: 04 March 2005
Location: South Africa
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote freebs Quote  Post ReplyReply Direct Link To This Post Posted: 02 April 2007 at 2:39pm
Thanks i will give it a try.
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.