| Author |
Message |
krike
Repeat Offender

Joined: Apr 02, 2008
Posts: 47
|
Posted:
Thu Jul 24, 2008 11:41 pm |
|
In the stand alone version I would like to show in the header the flash nav when a user is not registered and a welcome message when he is logged in.
I found this
| Code: |
| {if $is_login == '1'} onload="document.form.f_uname.focus();"{/if} |
how do I show or the flash nav or the welcome message?
{if $is_login == '1'} {/if} --> for welcome message
{if $is_login == '0'} {/if} --> for flash nav
Could this work ???? I could off course test it out but I just wanna ask first  |
|
|
|
 |
krike
Repeat Offender

Joined: Apr 02, 2008
Posts: 47
|
Posted:
Fri Jul 25, 2008 12:16 am |
|
this is the actionscript for the submit button. are the variables the names for username etc correct?
| Code: |
on (release, keyPress "<Enter>")
{
getURL("index.php?do=account&act=main", "", "POST");
f_uname = "";
f_pword = "";
f_lgn_now = "";
}
|
this is what it looks like for nuke evolution:
| Code: |
on (release, keyPress "<Enter>")
{
getURL("modules.php?name=Your_Account", "", "POST");
username = "";
user_password = "";
op = "";
} |
|
|
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 722
|
Posted:
Fri Jul 25, 2008 10:19 am |
|
Well, I don't really mess with actionscript, but it does look like you are on the right path. Let us know what works  |
|
|
|
 |
krike
Repeat Offender

Joined: Apr 02, 2008
Posts: 47
|
Posted:
Sat Jul 26, 2008 1:40 am |
|
and what about the if in the tpl? is that correct or is possible to use {else} {/else} ???
another thing I noticed is that to call up different links in a module the use $op (op) in nuke evolution (op -> see actionscript in post above)
so I thought it would be the same for digital shop, you use "do", but "do" is a command in actionscript so that only give errors... dang ....
will have to do some research  |
|
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 722
|
Posted:
Sat Jul 26, 2008 3:43 am |
|
for the if/else, do it like this...
| Code: |
{if $is_login == 1}
// do something
{else}
// do something else
{/if}
|
|
|
|
|
 |
krike
Repeat Offender

Joined: Apr 02, 2008
Posts: 47
|
Posted:
Sat Jul 26, 2008 6:54 pm |
|
mmmh... it only shows whatever I typed after the else. even if I'm logged in or not
mmmh weird cause that's the if that is used for the login / logout images... |
|
|
|
 |
krike
Repeat Offender

Joined: Apr 02, 2008
Posts: 47
|
Posted:
Sat Jul 26, 2008 7:00 pm |
|
oke that's weird... he shows me the welcome message when I'm in the usercp and the other text on other pages
this is what I have:
| Code: |
{if $is_login == '1'}
<td colspan="2" background="templates/default/images/IV-vision_03.jpg">Welcome</td>
{else}
<td colspan="2" background="templates/default/images/IV-vision_03.jpg">test</td>
{/if} |
|
|
|
|
 |
krike
Repeat Offender

Joined: Apr 02, 2008
Posts: 47
|
Posted:
Sat Jul 26, 2008 7:04 pm |
|
ooooooooh oke I got it it's not
{if $is_login == '1'}
it's
{if $current_user == ''} |
|
|
|
 |
|
|