User Access Groups

Please post your suggestions or any hacks you have made here

User Access Groups

Postby dalbeck on Tue Mar 25, 2008 11:35 pm

I was looking for a feature where you would be able to select from your current Access groups to only display that form on a page. An example is right now I have a list of departments for absentee request forms, but it would be better I think if it only displayed there form for there respected department when they open taht page based off of there group.
dalbeck
Fresh Boarder
 
Posts: 17
Joined: Thu Nov 29, 2007 4:34 pm

Re:User Access Groups

Postby GreyHead on Wed Mar 26, 2008 12:37 am

Hi dalbeck,

No 'feature' but easy enough to do it in code if you know how to identify which group the user is in:
Code: Select all
<?php
switch ( $user_group ) {
  case 'this_group':
    // do this
  break;

  case 'that_group':
    // do that
  break;

  case 'other_group':
  default:
    // do other

  break;
}
?>
Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3252
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany


Return to Suggestions & Hacks

Who is online

Users browsing this forum: No registered users and 1 guest