cotonti.com : Own Plugin Tag in BEGIN: USER https://www.cotonti.com Last topic posts Cotonti en Tue, 03 Mar 2026 05:49:16 -0000 GHengeveld
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]]>
Mon, 13 Sep 2010 18:09:40 -0000
urlkiller
Maybe you make the check if the user is logged in also in your Plugin...

if($userid!=0) {my tags}

<!-- BEGIN: USER -->
{REGULAR_TAGS}
<!-- END: USER-->
<!-- BEGIN: YOUR_TAGS-->
{YOUR_TAGS}
<!-- END: YOUR_TAGS-->]]>
Wed, 28 Jul 2010 01:42:24 -0000
scriptor <!-- BEGIN: USER -->
{MY_PLUGIN_TAG}
<!-- END: USER-->

The Tag is in my Plugin.header.php

[BEGIN_SED_EXTPLUGIN]
Code=sociallike
Part=main
File=sociallike.header
Hooks=header.tags
Tags=header.tpl:{SLHEADER_SOCIALLIKESTART}
Minlevel=0
Order=11
[END_SED_EXTPLUGIN]

...

$t->assign("SLHEADER_SOCIALLIKENEWS",$itsactive);
$t->assign("SLHEADER_SOCIALLIKESTART",$START);

Can anyone help me?]]>
Wed, 28 Jul 2010 01:04:00 -0000