4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: ma3foos on March 01, 2008, 02:24:06 PM

Title: How can I show the member login id....
Post by: ma3foos on March 01, 2008, 02:24:06 PM
hello all


welcome to my message :)



I created 'order.php' so in the template ---> 'order.html' i tried to show the member nick name in the order form

I triad '{lang_loggedin_msg} ' but it didn't work.


so please tell me how can i show member nick name.....



ENG PLZ hehehe :)
Title: Re: How can I show the member login id....
Post by: ma3foos on March 02, 2008, 05:56:24 PM
Urgent PLZ...


Thanks all...
Title: Re: How can I show the member login id....
Post by: ma3foos on March 04, 2008, 05:54:49 AM
Please help me I really need this code


without it I can't start my site...


I now its an easy code just "{bla bla bla}"


Title: Re: How can I show the member login id....
Post by: Nicky on March 04, 2008, 08:51:52 AM
hi,

show us the url to get what you exactly means
Title: Re: How can I show the member login id....
Post by: mawenzi on March 04, 2008, 08:56:33 AM
... try this in your 'order.php' or 'page_header.php'...
... add after ...
Code: [Select]
$site_template->register_vars(array(

... this ...
Code: [Select]
"loggedin_user_name" => ($user_info['user_level'] >= USER) ? format_text(trim($user_info['user_name']), 2) : "Guest",

... and use in your 'order.html' ...
Code: [Select]
{loggedin_user_name}
Title: Re: How can I show the member login id....
Post by: ma3foos on March 04, 2008, 05:59:19 PM
Thanks mawenzi It worked %100


And Extra thanks to you Nicky, the bad thing that the galley in Arabic so :)



Thanks all