Parameters not showing in module help page

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Parameters not showing in module help page

Post 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;
  }
User avatar
mungra
Forum Members
Forum Members
Posts: 13
Joined: Wed Sep 16, 2009 11:10 am

Re: Parameters not showing in module help page

Post by mungra »

Yes these functions exist in my module and return the same values as your example
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Parameters not showing in module help page

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
mungra
Forum Members
Forum Members
Posts: 13
Joined: Wed Sep 16, 2009 11:10 am

Re: Parameters not showing in module help page

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Parameters not showing in module help page

Post by calguy1000 »

Sorry, I lied..

it's in the Help stuff.

You shouldn't be overriding the GetHelpPage() method
just the GetHelp() method.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
mungra
Forum Members
Forum Members
Posts: 13
Joined: Wed Sep 16, 2009 11:10 am

Re: Parameters not showing in module help page

Post by mungra »

i only have the GetHelp() method in my module

Code: Select all

	function GetHelp()
	{
		return $this->Lang('help');
	}
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Parameters not showing in module help page

Post 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.
User avatar
mungra
Forum Members
Forum Members
Posts: 13
Joined: Wed Sep 16, 2009 11:10 am

Re: Parameters not showing in module help page

Post 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
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Parameters not showing in module help page

Post by Jos »

I run out of questions  :-\  It must be a simple typo or something
User avatar
mungra
Forum Members
Forum Members
Posts: 13
Joined: Wed Sep 16, 2009 11:10 am

Re: Parameters not showing in module help page

Post 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!
Last edited by mungra on Thu Sep 17, 2009 1:15 am, edited 1 time in total.
Post Reply

Return to “Developers Discussion”