Jump to content

User Group in Profile/Signature?


davehardy

Recommended Posts

  • Moderators

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?>

Link to comment
Share on other sites

  • Moderators

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;}
?>

Link to comment
Share on other sites

  • Moderators

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;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...