How can I print out Usergroups of Current User in HTML Code?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Karl-Heinz
Posts: 2
Joined: Tue Aug 18, 2015 2:59 pm

How can I print out Usergroups of Current User in HTML Code?

Post by Karl-Heinz »

Hey guys'n'girls,

I recently found phpMyFAQ to be a really cool tool for our Mentoring Program Project and its Mentoring Guide.

I'd love to (sry) get rid of the News Section on the startpage, and replace it with static html – depending on the usergroup(s) the current user has.
My dirty idea was: Echo the usergroups as "css classes" in the html body tag.

Any ideas how I can print/echo the usergroups of the current user like "mentee student activetandem"?

Thanks for advices and suggestions!
Karl-Heinz
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How can I print out Usergroups of Current User in HTML C

Post by Thorsten »

Hi,

what do you mean with "usergroups"? The groups the current user is a member of?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Karl-Heinz
Posts: 2
Joined: Tue Aug 18, 2015 2:59 pm

Re: How can I print out Usergroups of Current User in HTML C

Post by Karl-Heinz »

Yup. :)

Any direct or workaround suggestions?
Any php classes our developer could use without much of adjustments?
Post Reply