Custom settings

13 years 4 weeks ago - 13 years 4 weeks ago #160053 by antohoho
Custom settings was created by antohoho
Hi guys.
I am trying to create custom settings in Configuration -> Group Features Tab

But my settings are not applying.. How I can save my settings?

I did next:
$_PLUGINS->registerFunction( 'gj_onConfigIntegrations', 'getConfig', 	'cbcustomsettingsPlugin' );

and next for example
$input		=	array();
$input['my_paging']	=	moscomprofilerHTML::yesnoSelectList( 'my_paging',  null, $plugin->params->get( 'my_paging', 1 ), CBTxt::T( 'Enable' ), CBTxt::T('Disable' ) );
	
$return		=	'<table class="adminlist" width="100%" cellspacing="0" cellpadding="4" border="0">'
		.'<thead>'
		'<tr>'
		.'<th colspan="3">' . CBTxt::Th( 'my Integration' ). '</th>'
		.'</tr>'
		.'</thead>'
		.'<tbody>'
		.'<tr>'						
		.'<th width="15%">' . CBTxt::Th( 'Paging' ) . '</th>'
		.'<td width="40%">' . $input['my_paging'] . '</td>'
		.'<td>' . CBTxt::Th( 'Enable or disable usage of paging on the My tab. If disabled will also disable Page Limit.' ) . '</td>'
		.'</tr>'
		.'</tbody>'
		.'</table>';

	return $return;

Please Log in to join the conversation.

13 years 4 weeks ago #160057 by krileon
Replied by krileon on topic Re: Custom settings
Please review existing integrations as to exactly how to do this. The saving is done automatically by GJ and access via $plugin->params->get( PARAMETER, DEFAULT_VALUE ) type usage.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

13 years 4 weeks ago #160066 by antohoho
Replied by antohoho on topic Re: Custom settings
I did this exactly like in another plugin.. But in my case it does not working..
I use
$input = moscomprofilerHTML::yesnoSelectList( 'my_paging', null, $plugin->params->get( 'my_paging', 1 ), CBTxt::T( 'Enable' ), CBTxt::T('Disable' ) );

But field always has Enable status..

Please Log in to join the conversation.

13 years 4 weeks ago #160131 by krileon
Replied by krileon on topic Re: Custom settings
Don't know what to advise, works fine in all the integrations provided; I can not develop this for you. Please continue to review and trial/error until working. Please note GJ 2.x is only available to advanced and professional subscribers, if I may, how are you accessing its source?


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.190 seconds

Facebook Twitter LinkedIn