| Posted: 08 Aug 2008 21:00 Last Edited By: someone |
|
|
|
Registered User Currently Offline
|
Posts: 19
Join Date: Aug 2008
|
I have moved the login boxes to the header template but because of this I have had to create another template 1 for guests and 1 for members so they dont show once logged in,
how can I have only one template again but still have the login boxes dispear once logged in?
|
| Posted: 09 Aug 2008 10:31 |
|
|
|
Administrator
|
Posts: 1116
Join Date: Mar 2005
|
|
Make the login boxes a variable in the template and set that variable to the needed value in the code depending on whether it is a guest or a logged user.
|
| Posted: 09 Aug 2008 18:05 Last Edited By: someone |
|
|
|
Registered User Currently Offline
|
Posts: 19
Join Date: Aug 2008
|
...And how would I do that? what templates? what code? I am a serious newbie to php!!!
My partial guess is:
make a new variable like
Code:
{$loginboxes}
replace the login boxes with something like:
Code:
<div>$loginboxes</div>
create a new template loginbox.htm and add the login boxes code inside
but then i'm stuck...how can I fetch the loginbox.htm template only when not logged in? what php code do I need? how can I inpliment it? and into what template should it go?
|
| Posted: 10 Aug 2008 17:52 |
|
|
|
Registered User Currently Offline
|
Posts: 19
Join Date: Aug 2008
|
Moving elsewhere..please close thread
|