Hello , i'm newbie on elgg , sorry for my bad english, the next code doesn't works user settings don't save, any idea of the error?
<?php
/**
*
* @package Interpretaciones
*
*/
$plugin = $vars["entity"];
$noyes_options = array(
"no" => elgg_echo("option:no"),
"yes" => elgg_echo("option:yes")
);
?>
<!-- Fecha -->
<?php
$pie_pagina.=elgg_echo('interpretacion:settings:fecha');
$pie_pagina.=elgg_view("input/dropdown", array("name" => "params[interpretacion_fecha]", "options_values" => $noyes_options, "value" => $plugin->interpretacion_fecha))."<br />";
?>
<!-- Hora -->
<?php
$pie_pagina.=elgg_echo('interpretacion:settings:hora');
$pie_pagina.=elgg_view("input/dropdown", array("name" => "params[interpretacion_hora]", "options_values" => $noyes_options, "value" => $plugin->interpretacion_hora))."<br />";
?>
<!-- Nombre -->
?>
<!-- Especialdiad -->
<?php
$pie_pagina.=elgg_echo('interpretacion:settings:especialidad');
$pie_pagina.=elgg_view("input/dropdown", array("name" => "params[interpretacion_especialidad]", "options_values" => $noyes_options, "value" => $plugin->interpretacion_especialidad))." ";
echo elgg_view_module("inline", elgg_echo("interpretacion:settings:pie_pagina"), $pie_pagina);
?>
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.
- Matt Beckett@Beck24

Matt Beckett - 0 likes
- Víctor Hugo Sánchez@vhsm_24

Víctor Hugo Sánchez - 0 likes
- Matt Beckett@Beck24

Matt Beckett - 0 likes
You must log in to post replies.You can't use this notation
to get user settings, that will fetch plugin settings (global, site wide setting for the plugin).
To get a user plugin setting you should use
http://reference.elgg.org/engine_2lib_2plugins_8php.html#a170cd3240d9b5193ac8f38d908d8a64c
Thanks Matt, it works
i'm using
$plugin->getUserSetting("interpretacion_fecha", elgg_get_page_owner_guid()
that works too :)