Forums / Cotonti / Extensions / Own Plugin Tag in BEGIN: USER

GHengeveld
#26074 2010-09-13 18:09
It's easy. In your plugin, just do this:

if($usr['id'] > 0)
{
$t->assign(array(-- YOUR TAGS --));
$t->parse('MAIN.USER');
}

Anything inside the USER block will be ignored if the user isn't logged. If the block will be nested inside another block, don't forget to update the parse to something like MAIN.PARENT.USER