davehardy Posted January 29, 2011 Report Posted January 29, 2011 What code would i need to add the pilots user group in the profile & signature ? Would like to make staff members more prominent to the pilots so they can find help easier. Thanks, Dave. Quote
Moderators Kyle Posted January 29, 2011 Moderators Report Posted January 29, 2011 Good Question, Let me look into it Quote
Moderators Kyle Posted January 29, 2011 Moderators Report Posted January 29, 2011 Ok, to clear it up, do you want the pilot group what they are in to show into the siggy? Quote
Moderators Kyle Posted January 29, 2011 Moderators Report Posted January 29, 2011 Ok, I give up. Somebody help me out here too, lol He wants to show what the pilot is in the group, so here's how I have done it, and it doesn't still show the group name they are in, so if someone can help us complete the code, thanks! For siggy $output[] = 'Pilot Is: ' .$group->groupname; For php echo for what group is pilot in I don't know something like this <?php echo $userinfo->group?> Quote
Moderators mark1million Posted January 29, 2011 Moderators Report Posted January 29, 2011 How about an if else, so if the member is in the group staff they get one signature else its the default. But i have no idea how to code that Quote
Moderators Kyle Posted January 29, 2011 Moderators Report Posted January 29, 2011 :lol You got to love to know how to code these things, lol. I'm in the stages to learn inside the modules. Quote
Moderators Kyle Posted January 30, 2011 Moderators Report Posted January 30, 2011 Can I get help here please? Quote
Moderators mark1million Posted January 30, 2011 Moderators Report Posted January 30, 2011 Looking at it if Dave upload another background image then this is selectable by the pilots in their profile, it may just be a simple case of uploading another image and getting the staff to use that one. There is also nothing to stop others from choosing that either so the code could be modified slightly to prevent this along the same line as, <?php if(!ExamsData::check_admin(Auth::$userinfo->pilotid)) { Template::Set('message', '<div id="error" class="mcright"><b>You must an EXAMCenter administrator to access this feature!</b></div><br />'); Template::Show('frontpage_main.tpl'); return;} ?> Quote
Moderators Kyle Posted January 30, 2011 Moderators Report Posted January 30, 2011 Okay to clear it up, I'm trying to get the siggy to show what group (Admin Group) what group is he in, so here's a line of a code for the siggy, and It still does not work, any ideas? $output[] = 'Pilot Is: ' .$userinfo->group; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.