cotonti.com : How to Parse user Extra Fields? https://www.cotonti.com Последние сообщения в теме Cotonti en Fri, 21 Aug 2026 03:19:26 -0000 scriptor merci for it :)]]> вт, 29 июн 2010 03:02:10 -0000 urlkiller вт, 29 июн 2010 02:52:34 -0000 scriptor ]]> вт, 29 июн 2010 02:29:01 -0000 urlkiller
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...]]>
пн, 28 июн 2010 23:57:37 -0000
scriptor пн, 28 июн 2010 21:24:17 -0000 urlkiller
plugins can have hooks, hooks are there for hooking in to system routines.
so you could make a plugins that hooks into the right one and there you have to add a tag array and the parse command.

you can read about that topic here: http://www.cotonti.com/docs/en/plugins/hooks?highlight=HOOKS]]>
пн, 28 июн 2010 06:04:26 -0000
scriptor вс, 27 июн 2010 16:57:03 -0000 urlkiller сб, 26 июн 2010 05:05:44 -0000 scriptor пт, 25 июн 2010 23:19:11 -0000