Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 02:56:35 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Return Group Name  (Read 463 times)
srogul

Offline Offline

Posts: 12


« on: August 13, 2007, 03:36:44 PM »

Heyho!

I know that
Code:
$wb->get_display_name
returns the Name of the User logged in. Now I would like to know what returns the Name of the group that the User logged in is in!

Thanks.
Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #1 on: August 14, 2007, 05:28:49 PM »

Don't know about the name, but since you can get the group number via something like this:

Code:
if ($wb->get_session('GROUP_ID')==1)

I suspect you will need to use the number to look it up in the GROUPS array.

See http://projects.websitebaker.org/websitebaker2/wiki/Docs-EN-Variables and look for GROUPS (there are several references).  You can check the Group administration page to find out how it populates the list there and do something similar.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!