help with a module

we2by

Joined: 2005-11-23
Posts: 4
Posted: Sun, 2005-11-27 13:28

Hello,I have read the module development at http://txtdump.com/g2dev/index.php. I have successfully create a static page :) but now I want to print some text if the user is logged in.

how should I do that/?

thanks

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-11-27 14:15

in your template you can use:

http://codex.gallery2.org/index.php/Gallery2:Tpl_Reference#User_Information

{$user.isRegistered}
blablabla text for logged in users
{/if}