Better user problem


(Loggedon Menard) #1

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





(Avi Miller) #2

Have you run the compile_locales.php script?


(Loggedon Menard) #3

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',

),

),

)

);

?>


(Avi Miller) #4

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.


(Loggedon Menard) #5

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?


(Avi Miller) #6

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.

(Greg Sherwood) #7

The create screen is different to the normal edit screen. Once you create your user, do you see the attributes of the Details screen?