SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
Posted:  08 Aug 2008 21:00   Last Edited By: someone
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?
__________________
"Everything should be made as simple as possible, but not simpler." : Albert Einstein
Posted:  09 Aug 2008 10:31
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
...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?
__________________
"Everything should be made as simple as possible, but not simpler." : Albert Einstein
Posted:  10 Aug 2008 17:52
Moving elsewhere..please close thread
__________________
"Everything should be made as simple as possible, but not simpler." : Albert Einstein