This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Dynamic Login field on site_header


avatar
velemoonkon 0
From: -
Dynamic Login field on site_header

I'm trying to create a login field on top of my site header next to my banner, as shown bellow


__________________________
|-----Banner------|-----DyLogin---|
--------------------------------------|
| N----|........Content---------------|
| A----|------------------------------|
| V----|------------------------------|
| -------------------------------------|
|________copyright__________|



First i put a simple Form into site_header, which worked very well, but then problem is when user is loged in, it still shows login field, what i want is some sort of script to check if user is loged on, if yes show welcome, $username you have $pm messages, click here to lo out and if not show the form

i tryed different thing includes,
puting $insert[login_dologin]
puting <? echo GetTemplate("login_dologin"); ?>
into Login section of my header

but none of them worked, i'm really stuck and dont know what to do, please help me

Thank you
esi.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Dynamic Login field on site_header
avatar
OP 0
From: -
Dynamic Login field on site_header

btw you can find login form from login_dologin template
1 Re: Dynamic Login field on site_header
avatar
OP 0
From: -
Dynamic Login field on site_header

i think i found how to do this Smiling Face

1. edit login_header_anon
-put login form into it

2. edit site_header
-cut the bottom line "$insert[login_header]"
-paste it in your login section

thats all Smiling Face

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.