| Re: how to get the name of a group? |
| by trabis on 2009/1/8 0:41:41 Quote:
Good! https://xoops.org/modules/mediawiki/index.php/?title=Category evWikiExcellent!!! https://xoops.org/modules/mediawiki/index.php?title=Category evelopment
|
| 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 |