Page 2 of 2

Re: Parameters not showing in module help page

Posted: Wed Sep 16, 2009 3:02 pm
by Jos
don't know if it has something to do with it, but do you have these functions?

Code: Select all

  function IsPluginModule()
  {
    return true;
  }

  function HasAdmin()
  {
    return true;
  }

Re: Parameters not showing in module help page

Posted: Wed Sep 16, 2009 3:29 pm
by mungra
Yes these functions exist in my module and return the same values as your example

Re: Parameters not showing in module help page

Posted: Wed Sep 16, 2009 3:52 pm
by calguy1000
Created parameters are displayed in the About stuff, which is called from GetAbout()

If you are overriding the GetAbout() method, you need to be sure to call the parent classes method.
i.e:  parent::GetAbout();

Normally, we don't override this method.

Re: Parameters not showing in module help page

Posted: Wed Sep 16, 2009 6:44 pm
by mungra
calguy1000 wrote: Created parameters are displayed in the About stuff, which is called from GetAbout()

If you are overriding the GetAbout() method, you need to be sure to call the parent classes method.
i.e:   parent::GetAbout();

Normally, we don't override this method.
I don't think i'm overriding this method. It does't exist in my module.

Re: Parameters not showing in module help page

Posted: Wed Sep 16, 2009 7:08 pm
by calguy1000
Sorry, I lied..

it's in the Help stuff.

You shouldn't be overriding the GetHelpPage() method
just the GetHelp() method.

Re: Parameters not showing in module help page

Posted: Wed Sep 16, 2009 7:12 pm
by mungra
i only have the GetHelp() method in my module

Code: Select all

	function GetHelp()
	{
		return $this->Lang('help');
	}

Re: Parameters not showing in module help page

Posted: Wed Sep 16, 2009 10:54 pm
by Jos
Do you have the help section of your module working and is it just that it don't show the parameters, or don't you have a help at all.

Re: Parameters not showing in module help page

Posted: Wed Sep 16, 2009 11:53 pm
by mungra
Jos wrote: Do you have the help section of your module working and is it just that it don't show the parameters, or don't you have a help at all.
Yes the help section is working but not the parameters

Re: Parameters not showing in module help page

Posted: Thu Sep 17, 2009 12:13 am
by Jos
I run out of questions  :-\  It must be a simple typo or something

Re: Parameters not showing in module help page

Posted: Thu Sep 17, 2009 1:10 am
by mungra
I found the problem!! :D

Apparently when you do this in your "modulename.module.php" it prevents the parameters from showing in the help section:

Code: Select all

class ModuleName extends CMSModule
{
	function ModuleName()
	{
		do something;
	}
or

Code: Select all

class ModuleName extends CMSModule
{
	function __construct()
	{
		do something;
	}
think that it causes some internal error which is weird becauses i have error-reporting and debugging ON and didn''t see any error messages

i'm running CMSMS version 1.6.5 on my server. i dunno if this also happens in previous versions

i removed the function and the parameters were showing!! :)

Thanks everybody!