Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 UserGroup Mod and inc_header
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

StephenD
Senior Member

Australia
1044 Posts

Posted - 05 May 2005 :  22:57:17  Show Profile  Send StephenD a Yahoo! Message
Can you use the UserGroup mod to load a specific inc_header for their User Group. Example:

if Session(strCookieURL & "UserGroups") = "20" then
%>
<!--#INCLUDE FILE="inc_header_20.asp" -->
<%
else
%>
<!--#INCLUDE FILE="inc_header.asp" -->
<%

StephenD
Senior Member

Australia
1044 Posts

Posted - 07 May 2005 :  15:00:22  Show Profile  Send StephenD a Yahoo! Message
I really need to know if this is possible before I install the UserGroups Mod. Has anyone done something like this? I want each User Group to have their own header and nav bar.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 09 May 2005 :  08:14:56  Show Profile
No, not familiar with the UserGroup mod but I assume a member's usergroup ID is determined in inc_header.asp. What you're going to have to do is strip all the HTML out of inc_header.asp and create a new include for each group's headers then use a select case statement to include the necessary header. Bear in mind though that the server opens every single include no matter what so, if you've a lot of groups, it will slow down page generation time. A better solution may be to use conditionals to to write the necessary HTML from inc_header.asp rather than using includes.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07