[ic] index.html, personal username insert

Steve & Patti Getzinger steveandpatti@wubs.org
Wed, 27 Dec 2000 07:54:45 -0500


Jerry Davis wrote:

> Hello!
> I have been having a great time using 'Interchange' Thanks to all.
> Here is a snip of code I put into 'index.html' that inserts the user name
> after login and a generic message If a non registered user is just is
> looking around.
> I found the code in /templates/regions/LEFTRIGHT_TOP.
> here is the code:
> --- snip ---
> [/if]
> [/if]
>
> <p><img src="navigation/default_b.jpg" width="311" height="213"
> align="top"></p><br>
> Welcome to <b>FirstToSearch.com [if !session logged_in]
> <br>Your Online Virtual Store!
> [else]
> </b><font color="red">
> [data table=userdb column=fname key='[data session username]']!
> </font>
> [/else]
> [/if]
> </b>
> <br><font __FFACE__ size="2">A Division of __COMPANY__, The Internet's
> premier source
> of quality Electronic Products and GIZMOS! Thank you for
> visiting.</font></p>
> /--- snip ---
>
> To most of you this is no big thing but to me it is VERY cool.
> OBVIOUSLY I am a newbeeeee but this might help some one out there
> Thanks again
> Jerry Davis
> This can be viewed at http://www.firsttosearch.com
> login: happy
> passwd: happy
> JD
>
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users

JD,
  You could go a step further and do an elsif on the userdb and if an actual
name exists put it in place of username. If no actual name yet then
username. This info is derived from the order process and in the name field.
Something to consider secure is not required throughtout the entire site and
does use more resources than unsecure. Might save secure for just the
checkout process.

Steve