Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - allow permissions to certain pages??
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

allow permissions to certain pages??

 Post Reply Post Reply
Author
jarv View Drop Down
Groupie
Groupie


Joined: 15 December 2008
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote jarv Quote  Post ReplyReply Direct Link To This Post Topic: allow permissions to certain pages??
    Posted: 25 February 2009 at 2:43pm
Can anyone help me, I would like to lock certain members out of certain pages
I have extra custom pages built onto the forum see example code of my other pages below:

[code]
<% @ Language=VBScript %>
<% Option Explicit %>
<!--#include file="common.asp" -->
<% If blnGuest AND blnGuestSessions = True Then
    response.Redirect("login_user.asp")
End If %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="test.css" />
<title>EAWP</title>

</head>

<body>
<div id="wrapper">
    <div id="top">
        <div class="left">
            <a href="main.asp" title="Home"><img src="images/logo.jpg" alt="Logo for EAWP" border="0" /></a>
        </div>
        <div class="contact"><a href="contact1.asp">Contact information&nbsp;&nbsp;<img src="images/contact-icon.gif" alt="Contact EAWP" border="0" /></a></div>
  </div>
    <div id="topgreencurves"></div>
  <div id="topgreenmain"></div>
    <div id="mainholder">
        <div id="leftcolumn">
        <ul>
            <li>
                  <ul>
                    <li id="bicon2" class="bicons"><a href="about1.asp">About EAWP</a></li>
                    <li id="subicon1" class="subicons"><a href="objectives1.asp" target="centerandright">Objectives</a></li>
                    <li id="subicon1" class="subicons"><a href="#" target="centerandright">Management Committee</a></li>
                    <li id="subicon1" class="subicons"><a href="partners1.asp" target="centerandright">Partners</a></li>
                  </ul>
            </li>
            <li id="bicon2" class="bicons"><a href="project-overview1.asp">Project Overview</a></li>
            <li id="bicon3" class="bicons"><a href="best-practice1.asp">Best Practice</a></li>
            <li id="bicon4" class="bicons"><a href="news1.asp">News</a></li>
            <li id="bicon5" class="bicons"><a href="links1.asp">Links</a></li>
        </ul>
         <ul>
            <li id="icon1" class="icons"><a href="default1.asp">Clusters</a></li>
              <li id="icon2" class="icons"><a href="calendar.asp">Calendar</a></li>
            <li id="icon3" class="icons"><a href="management-committee.asp">Management Committee</a></li>
            <li id="icon4" class="icons"><a href="downloads.asp">Downloads</a></li>
        </ul>
        </div>
        <div id="centercolumn">
            <img src="images/fishpic.jpg" alt="picture of fish swimming in the sea" border="0" />
          <h2>About EAWP</h2>           
            <p>The European Animal Welfare Platform (EAWP) is a unique project aimed at helping European producers to implement higher standards for animal welfare. It unites leading organisations in the field ranging from companies to research institutes and animal welfare organisations.</p>
            <p>This European project is funded under the EU’s Seventh Framework Programme for Research. It enables the establishment of a stakeholders’ platform aimed at facilitating the exchange of knowledge, expertise and best practice thereby resulting in improved animal welfare in the food supply chain.</p>
            <p>The work of the platform is organised into four work packages:</p>
            <ul>
              <li>
                <p>Best practices and implementation</p>
              </li>
              <li>
                <p>Research and development needs and     priorities</p>
              </li>
              <li>
                <p>Information and communication</p>
              </li>
              <li>
                <p>Management</p>
              </li>
            </ul>
            <p>The activities of the first three work packages are grouped in product clusters.  These clusters develop strategic visions on the role of animal welfare in each of the different product supply chains (beef and dairy, poultry meat and eggs, farmed salmon, and pork). In each cluster companies work together with NGOs and academia to achieve informed input on aspects relevant to the economically viable, animal friendly production of that product. The leader of each cluster is the EAWP
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 25 February 2009 at 2:58pm
The best way to tell if the user is loged into the forum and an active member is to check the group:-

If intGroupID = 2 Then

If you want to check if they are logged in then:-

If lngLoggedInUserID <> 2 Then
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: 26 February 2009 at 7:53pm
Havent you asked this several times? and I refered you to my Member-Only Pages tutorial which provides the answer?
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.