Hello everyone,
I'm currently developing a plugin that enable the users to choose whether he wants to display the Google ads sense on his website or not. However I have a problem with the checkboxes in the plugin settings. After I check the box and save the settings, it doesn't show that I ticked the box, and I also don't know how to catch the checkbox value. Here is my code for settings:
<?php echo elgg_view("input/checkboxes",
array('internalname'=>'params[header728x90]',
'value'=>array($vars['entity']->header728x90),
'options'=>array("Enable Header 728x90 ads"=>'header728x90')));
?>
Please excuse my bad English, and also I'm new to plugin developing, my knowledge is quite limited.
Thanks in advance,
Tuan Dang
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Dang Tuan Anh@Andy_dang1422
Dang Tuan Anh - 0 likes
You must log in to post replies.@RvR It doesn't seem to work for me, could you explain a little bit about how to implement your code?
Thanks in advance,
Tuan Dang