1
mCity
how to check xoopsModulesConfig in user.php
  • 2006/2/23 17:44

  • mCity

  • Just popping in

  • Posts: 52

  • Since: 2003/3/31


Under XOOPS 2.2.3a, couldnt check $xoopsModuleConfig['allow_register'] outside module such as in /user.php

This index is in module profile, while it seemed that it wasn't loaded in user.php, so checking is unavailable.

Is there a correct way to check the setting in user.php?

2
Dave_L
Re: how to check xoopsModulesConfig in user.php
  • 2006/2/23 18:16

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


$module_handler =& xoops_gethandler('module');
$module         =& $module_handler->getByDirname('profile');
$config_handler =& xoops_gethandler('config');
$moduleConfig   =& $config_handler->getConfigsByCat(0$module->getVar('mid'));
$value $moduleConfig['allow_register'];

Login

Who's Online

382 user(s) are online (289 user(s) are browsing Support Forums)


Members: 0


Guests: 382


more...

Donat-O-Meter

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

Latest GitHub Commits