Thread: chumby
View Single Post
Posts: 13 | Thanked: 1 time | Joined on Aug 2007
#24
Originally Posted by zeez View Post
Actually the customizations are parameters that have to be parsed from the xml file and then passed to the flash file. It is very likely that a bunch of stuff doesn't work bc i have just tested like 4-5 widgets. Take a look at the code & the xml file to see what's wrong or post your channel here (or at least the xml file of it)
I figured out how to change your php code so it passed the parameter properly for my one widget with a single parameter. See below. Of course my revised code probably won't work right when there are multiple parameters for a single widget.

for ($j=0;$j<sizeof($a['profile']['widget_instances']['widget_instance'][$i]['widget_parameters']);$j++)
{
$name = ($a['profile']['widget_instances']['widget_instance'][$i]['widget_parameters']['widget_parameter']['name']['value']);
$value = ($a['profile']['widget_instances']['widget_instance'][$i]['widget_parameters']['widget_parameter']['value']['value']);
$param = $param.$name.'='.$value.'&';
}
 

The Following User Says Thank You to andyfromtucson For This Useful Post: