| Comments |
 Re: ACP - How To Easily Add A Configuration Entry / Value To ACP
|
I forgot to mention that you can use the same procedure to add new profile options for users... but that require some extra editing.
If someone is interested I may create extra instructions in the future... if someone would like to try on is own and report the results, is more than welcome. 
|
|
Mighty Gorgon [ Sat 12 Sep, 2009 09:54 ]
|
 |
 Re: ACP - How To Easily Add A Configuration Entry / Value To ACP
|
|
Thank you MG!
I'll be testing this tomorrow to see what I can apply it to.
I hope you've got it right! ROFL!
|
|
Inactive User [ Sat 12 Sep, 2009 10:23 ]
|
 |
 Re: ACP - How To Easily Add A Configuration Entry / Value To ACP
|
Fantastic... work around...
I shall be looking at this for future modifications...

|
|
DWho [ Sun 13 Sep, 2009 16:54 ]
|
 |
 Re: ACP - How To Easily Add A Configuration Entry / Value To ACP
|
I forgot to mention that you can use the same procedure to add new profile options for users... but that require some extra editing.
If someone is interested I may create extra instructions in the future... if someone would like to try on is own and report the results, is more than welcome. 
Can´t wait to see more instructions. Thank´s MG
|
|
spydie [ Sun 13 Sep, 2009 18:29 ]
|
 |
 Re: ACP - How To Easily Add A Configuration Entry / Value To ACP
|
Mighty Gorgon wrote: [View Post] Hi,
I'll make a short example on how you can easily add your own configuration section to ACP => Configuration => Icy Phoenix.
$mod_name = '120_My_Own_Mods';
$lang = array_merge($lang, array(
'120_My_Own_Mods' => 'My Own Mods',
)
Hi,
I'm creating a new simple mod for icy phoenix and i would like to have some parameter to be editable from ACP.
What is unclear to me is the number 120 in the mod's name; i guess it is related to the position of my own configuration section within ACP.
Where can i find any information about it ?
Thanks in advance
|
|
Jodi [ Sat 14 Nov, 2009 09:44 ]
|
 |
 Re: ACP - How To Easily Add A Configuration Entry / Value To ACP
|
Since currently there is no way to sort ACP modules via DB, sorting is performed alphabetically based on the lang var name.
That number is just an example, you can either remove or change it to suit your needs.
|
|
Mighty Gorgon [ Sun 15 Nov, 2009 11:06 ]
|
 |
 Re: ACP - How To Easily Add A Configuration Entry / Value To ACP
|
Jodi wrote: [View Post]
Hi,
I'm creating a new simple mod for icy phoenix and i would like to have some parameter to be editable from ACP.
What is unclear to me is the number 120 in the mod's name; i guess it is related to the position of my own configuration section within ACP.
Where can i find any information about it ?
Thanks in advance
I posted the message above because my mod settings doesn't appeared in ACP and I guessed it was related to the number 120 in the mod's name.
To insert my mod settings in ACP has been necessary to remove the following lines from first example (file mod_my_brand_new_config_section.php):
$is_allowed = check_acp_module_access();
if ($is_allowed == false)
{
return;
}
Are these lines related to a previous release of icyphoenix ?
I'm using icyphoenix 1.3.0.53
|
|
Jodi [ Sun 15 Nov, 2009 11:12 ]
|
 |
 Re: ACP - How To Easily Add A Configuration Entry / Value To ACP
|
As I wrote at the beginning of the post, when you create a module using this way, it will be shown in ACP => Configuration => Icy Phoenix.
Try to check there.
|
|
Mighty Gorgon [ Sun 15 Nov, 2009 11:21 ]
|
 |
 Re: ACP - How To Easily Add A Configuration Entry / Value To ACP
|
Mighty Gorgon wrote: [View Post] As I wrote at the beginning of the post, when you create a module using this way, it will be shown in ACP => Configuration => Icy Phoenix.
Try to check there.
My settings are shown in APC->Configuration->Icy Phoenix only if i comment out/remove the code above.
|
|
Jodi [ Sun 15 Nov, 2009 11:32 ]
|
 |
 Re: ACP - How To Easily Add A Configuration Entry / Value To ACP
|
|
Yes, you are right.
Fixed first post.
Thanks
|
|
Mighty Gorgon [ Sun 15 Nov, 2009 11:53 ]
|
 |
|
|