Google

NukeCoder


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
krike
Repeat Offender



Joined: Apr 02, 2008
Posts: 47

PostPosted: Thu Jul 24, 2008 11:41 pm Reply with quote

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 Very Happy
View user's profile Send private message
krike
Repeat Offender



Joined: Apr 02, 2008
Posts: 47

PostPosted: Fri Jul 25, 2008 12:16 am Reply with quote

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 = "";
}
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 722

PostPosted: Fri Jul 25, 2008 10:19 am Reply with quote

Well, I don't really mess with actionscript, but it does look like you are on the right path. Let us know what works Smile
View user's profile Send private message Visit poster's website
krike
Repeat Offender



Joined: Apr 02, 2008
Posts: 47

PostPosted: Sat Jul 26, 2008 1:40 am Reply with quote

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 Very Happy
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 722

PostPosted: Sat Jul 26, 2008 3:43 am Reply with quote

for the if/else, do it like this...

Code:

{if $is_login == 1}
// do something
{else}
// do something else
{/if}
View user's profile Send private message Visit poster's website
krike
Repeat Offender



Joined: Apr 02, 2008
Posts: 47

PostPosted: Sat Jul 26, 2008 6:54 pm Reply with quote

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...
View user's profile Send private message
krike
Repeat Offender



Joined: Apr 02, 2008
Posts: 47

PostPosted: Sat Jul 26, 2008 7:00 pm Reply with quote

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}
View user's profile Send private message
krike
Repeat Offender



Joined: Apr 02, 2008
Posts: 47

PostPosted: Sat Jul 26, 2008 7:04 pm Reply with quote

ooooooooh oke I got it Very Happy it's not

{if $is_login == '1'}


it's


{if $current_user == ''}
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT + 10 Hours
Forums ©