# User Group in Profile/Signature?

**URL:** <https://forum.phpvms.net/t/user-group-in-profile-signature/3966>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [January 29, 2011, 11:34am UTC](https://forum.phpvms.net/t/user-group-in-profile-signature/3966 "2011-01-29T11:34:37Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![davehardy](https://forum.phpvms.net/user_avatar/forum.phpvms.net/davehardy/32/13_2.png) [@davehardy](https://forum.phpvms.net/u/davehardy)\
**Post date:** [January 29, 2011, 11:34am UTC](https://forum.phpvms.net/t/user-group-in-profile-signature/3966/1 "2011-01-29T11:34:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [January 29, 2011, 4:21pm UTC](https://forum.phpvms.net/t/user-group-in-profile-signature/3966/2 "2011-01-29T16:21:19Z")

</div>

Good Question, Let me look into it

---

<div class="post-metadata">

**Author:** ![davehardy](https://forum.phpvms.net/user_avatar/forum.phpvms.net/davehardy/32/13_2.png) [@davehardy](https://forum.phpvms.net/u/davehardy)\
**Post date:** [January 29, 2011, 4:57pm UTC](https://forum.phpvms.net/t/user-group-in-profile-signature/3966/3 "2011-01-29T16:57:16Z")

</div>

thank you

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [January 29, 2011, 5:32pm UTC](https://forum.phpvms.net/t/user-group-in-profile-signature/3966/4 "2011-01-29T17:32:06Z")

</div>

Ok, to clear it up, do you want the pilot group what they are in to show into the siggy?

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [January 29, 2011, 8:50pm UTC](https://forum.phpvms.net/t/user-group-in-profile-signature/3966/5 "2011-01-29T20:50:29Z")

</div>

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

```

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [January 29, 2011, 10:44pm UTC](https://forum.phpvms.net/t/user-group-in-profile-signature/3966/6 "2011-01-29T22:44:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [January 29, 2011, 11:01pm UTC](https://forum.phpvms.net/t/user-group-in-profile-signature/3966/7 "2011-01-29T23:01:45Z")

</div>

:lol

You got to love to know how to code these things, lol.

I’m in the stages to learn inside the modules.

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [January 30, 2011, 6:12pm UTC](https://forum.phpvms.net/t/user-group-in-profile-signature/3966/8 "2011-01-30T18:12:23Z")

</div>

Can I get help here please?

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [January 30, 2011, 6:18pm UTC](https://forum.phpvms.net/t/user-group-in-profile-signature/3966/9 "2011-01-30T18:18:05Z")

</div>

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

```

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [January 30, 2011, 6:26pm UTC](https://forum.phpvms.net/t/user-group-in-profile-signature/3966/10 "2011-01-30T18:26:51Z")

</div>

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;

```
