Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
9 - 3 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
getvar(groupname)[/code] but I now this is not correct... anyone can direct me in the right direction? Can anyone also tell me where I can find a list with samples and explanation of XOOPS classes? Thanks, Koeneke [/quote]" />

Re: how to get the name of a group?
by trabis on 2009/1/8 0:41:41

Quote:

Koeneke wrote:
Can anyone also tell me where I can find a list with samples and explanation of XOOPS classes?


Good!
https://xoops.org/modules/mediawiki/index.php/?title=CategoryevWiki

Excellent!!!
https://xoops.org/modules/mediawiki/index.php?title=Categoryevelopment
Re: how to get the name of a group?
by trabis on 2009/1/8 0:35:51

le="color: #000000"><?php $groupid = 1; $group_handler =& xoops_gethandler('group'); $group = $group_handler->get($groupid); $groupname = is_object($group) ? $group->getVar('name') : 'Group not found';


This is more correct ;)
Re: how to get the name of a group?
by sarahmx on 2009/1/7 22:26:23

i don't know if this is related..but i used to use this hack last time


https://xoops.org/modules/smartfaq/faq.php?faqid=642
Re: how to get the name of a group?
by Koeneke on 2009/1/7 21:13:14

ok,

I took some time to investigate some classes and found a sollution:

le="color: #000000"><?php $groupid = 1; $member_handler =& xoops_gethandler('member'); $grouplist = $member_handler->getGroupList(); $groupname = $grouplist[$groupid]; // groupname will be "webmasters"


Is this the best and fastest way to get a groupname?

Thanks
how to get the name of a group?
by Koeneke on 2009/1/7 20:42:44

Hello,

how do I get the name of a group if I have the ID?
let's say I have $groupid = 1... then I would like to have in $groupname = "webmasters"

I think it has to be something like:
le="color: #000000"><?php $groupname = groups($groupid)->getvar(groupname)

but I now this is not correct...

anyone can direct me in the right direction?

Can anyone also tell me where I can find a list with samples and explanation of XOOPS classes?

Thanks,
Koeneke

Who's Online

480 user(s) are online (424 user(s) are browsing Support Forums)


Members: 0


Guests: 480


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits