i got a problem adding new attributes to better user asset. i followed the tutorial on how to do it. i could not see the new added attributes
Better user problem
yup i did it. where should i paste this code
<?php
$this->vars = Array (
'address' => array('added' => '0.1',
'type' => 'text',
'default' => '',
),
'phone' => Array(
'added' => '0.1',
'type' => 'int',
'default' => ''
),
'state' => Array(
'added' => '0.1',
'type' => 'selection',
'default' => '',
'parameters' => Array(
'multiple' => false,
'allow_empty' => true,
'options' => Array(
'nsw' => 'NSW',
'vic' => 'VIC',
'tas' => 'TAS',
'wa' => 'WA',
),
),
)
);
?>
As discussed in the tutorial (http://matrix.squiz.net/developer/tutorials/creating-an-asset/10), you place that code in the better_user_management.inc file.
You need to read the tutorial and follow all of the steps.
i just ask that coz im not sure if i did it right. so do you have any ideas why it doesnt displays the new attributes?
You need to follow the tutorial step-by-step and make sure you run the step_03.php and compile_locales.php scripts so that Matrix can see your new asset. Its very difficult to tell why your asset isn't working properly without seeing your specific code.
The create screen is different to the normal edit screen. Once you create your user, do you see the attributes of the Details screen?