1
m0nty
A ? For Xoops Devs
  • 2004/10/7 19:09

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


i'm currently playing around (as i have more time on my hands now i quit my old website)

so i'm doing a hack for XOOPS but have run into a small problem.. lol and i'll probably run into more as i progress thru this as i'm not a coder at all and i only have limited knowledge on php..

but in modules etc and XOOPS core

there are functions like this:

if ( $xoopsUser ) {
if ( !$xoopsUser->isAdmin


where is this function defined? i mean isAdmin obviously is reading whether the user is in the webmaster group or in module case, whether the user has module admin permission..

2ndly how can i define a new function similar to this, ie if i leave that function the same & I create a new user group, how can i say assign the new group ie group id=5 with a global function of say ---

if ( $xoopsUser ) {
if ( !$xoopsUser->isNew

i used 'isNew' as an example..

thanks in advance..

Vaughan

2
ejuden01
Re: A ? For Xoops Devs
  • 2004/10/7 19:13

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


It is located in XOOPS_ROOT_PATH/kernel/user.php.

I'm not sure that I understand your 2nd question. Can you explain it in a little more detail what your end goal is with the function?

3
m0nty
Re:A ? For Xoops Devs
  • 2004/10/7 20:16

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


what i'm trying to achieve is to be able to create a global Super Admin Group in which users in that group have full permission for everything on the site.

i'm playing with a multisite install version of XOOPS 2.0.7.3 that i was provided with by bd_csmc and trying to develop it further.

the basic idea is so that once done, the super admin will have full control, where as normal admin will only have certain permissions.. ie even tho the normal admin group has full permissions for modules and blocks etc.. the normal admin will not be able to modify certain config options, and will not be able to actually delete modules (as this could cause problems if a module is deleted on a multisite version)

i know it seems a lot but i have a lot of ideas which can improve things, it's just implementing them that's the hard part for me.. once i can get these permissions and super admin functions working properly, it'll be worth working more and more on the multisite functions and improving the administration of a multi-site version..

Login

Who's Online

437 user(s) are online (63 user(s) are browsing Support Forums)


Members: 0


Guests: 437


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits