Thanks all of you for helping me out with this one.
Using .XOOPS_URL. works fine.
I als removed the check if it is a xoops_user and modified the code now to $groups = $xoopsUser->getGroups();
The main problem I had with implementing this solution is "when to use what?", it was very hard to find it in any XOOPS documentation.
For example.
<{$xoops_url}> is used in html
.XOOPS_URL is used in PHP
Are there any other variations?
Also getting the info is difficult.
I understand from the php manual that I can get a variable with the command. Getvar(). But is there any documentation on what variables xoops_user has?
When trying to get the username I tried ('name'), {'username'}, etc. Only to find out after a lot of searching that the variable was called uname. If would be great if there is some document that would explains this.
For example:
xoops_session can contain xoops_url, xoops_user, xoops_database, etc
With all the variables linked to their documentation.
xoops_user can contain uname, uid, etc, etc.
I have been developing with Lotus Notes, and I started with xoops/php to expand my programming skills and I don't have the money to buy a Notes server :)
So if you take a look at this
documentation you might understand what I mean with the comments above.
[Disclaimer]
If there is such documentation I will remove all comments above, smack my forhead 10 times on my keyboard and not abuse you guys anymore.
[/Disclaimer]
Thanks again for your quick replies and great help. Keep up the good work!
Willem.