Forums / Cotonti / Support / How to Parse user Extra Fields?

urlkiller
#25098 2010-06-28 23:57
ok easy.

1. first make a plugins that hooks in the right place (user.details.tags)
2. then make a mysql query that reads the correct field. ($my_user_row['hobbys'])
3. now you need a parse array like this:

/* SQL QUERY IS HERE */

$t->assign(array(
    'MYPLUG_HOBBYS' => sed_parse($my_user_row['hobbys']),
));

hope that helps a bit...
URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>