|
|
#1 |
|
Member
Join Date: Mar 2006
Posts: 75
Rep Power: 16 ![]() |
Does anyone know how to have the pages say welcome 'username' on the pages once logged in. When not logged in say welcome 'guest'
Zack |
|
|
|
|
|
#2 |
|
Member
Join Date: Mar 2006
Posts: 75
Rep Power: 16 ![]() |
I am using latest designer software.
Zack |
|
|
|
|
|
#3 |
|
Moderator
|
This should take place on templates/default/layout.tpl.php. I'm not sure what the default look is but add this where you want it to display user or guest based on login.
Code:
Welcome {if $smarty.session.username<>"" || $smarty.cookies.username<>""}{$smarty.session.username},{else}Guest, {/if}
__________________
John Snyder PHP Developer Last edited by juven14; 03-29-2006 at 10:30 PM. |
|
|
|
|
|
#4 |
|
Member
Join Date: Mar 2006
Posts: 75
Rep Power: 16 ![]() |
I will try that! Thanks!
Zack |
|
|
|
|
|
#5 |
|
Member
Join Date: Mar 2006
Posts: 75
Rep Power: 16 ![]() |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| the html pages don't show up... | FlyingBee | v3.1 Questions & Support | 8 | 12-08-2006 11:36 AM |
| List order for Category pages and sub category pages | marketingsolutions | v3.1 Questions & Support | 1 | 12-06-2006 11:49 AM |
| Setting logged in status | MVBaker | v3.1 Questions & Support | 10 | 11-10-2006 12:47 AM |
| Using php scripts in pages | martini55 | v3.1 Questions & Support | 7 | 05-26-2006 03:25 PM |
| Adding images to template pages | sleepy | HTML, CSS, and Design Help | 5 | 04-08-2006 09:40 PM |