Forums / Templates, Stylesheets, Page Layout / how show greeting in top header?

how show greeting in top header?

Locked

Views: 3,737

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
22 Jun 2008, 7:02 AM
#1
ebloger avatar

ebloger

New Zenner

Join Date:
Dec 2007
Posts:
35
Plugin Contributions:
0

how show greeting in top header?

in default , the greeting is show only in the center of home page , i try to copy /plaste the code

<?php if (SHOW_CUSTOMER_GREETING == 1) { ?> <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2> <?php } ?> to tpl_header.php and then the home page show hello XXXX(a custom name) but in others page the code does not work. it show TEXT_GREETING_GUEST ...
25 Jun 2008, 8:05 PM
#2
krispyskingdom avatar

krispyskingdom

New Zenner

Join Date:
Sep 2005
Posts:
35
Plugin Contributions:
0

Re: how show greeting in top header?

I would like to be able to show the greeting on all of the pages from tpl_header.php as well. It shows fine on the home page, but not on any other pages.

**Kustom By Kris**
Its All Zen!

11 Jul 2008, 10:40 AM
#3
imageriot avatar

imageriot

New Zenner

Join Date:
Mar 2007
Posts:
25
Plugin Contributions:
0

Re: how show greeting in top header?

I am currently working on this also and I may have a possible solution although Im sure its not the best way of doing this...I included the following code inside tpl_header.php and it sorted the problem of pages other than the homepage displaying the message wrong.

            define('TEXT_GREETING_GUEST', 'Welcome Guest'); 
            define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>!');

Good luck with this if anyone makes any further improvements please post them here so we can all benefit!

Rory

18 Jul 2008, 8:15 AM
#4
total_soft avatar

total_soft

New Zenner

Join Date:
Jul 2008
Posts:
8
Plugin Contributions:
0

Re: how show greeting in top header?

I am also facing the same problem here

please if you have got the solution reply me

thanks

18 Jul 2008, 9:14 AM
#5
total_soft avatar

total_soft

New Zenner

Join Date:
Jul 2008
Posts:
8
Plugin Contributions:
0

Re: how show greeting in top header?

in default , the greeting is show only in the center of home page , i try to copy /plaste the code

<?php if (SHOW_CUSTOMER_GREETING == 1) { ?> <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2> <?php } ?> to tpl_header.php and

in product pages it shows

EXT_GREETING_GUEST

or after login

TEXT_GREETING_PERSONAL

please Help us

Thanks

31 Jul 2008, 4:37 PM
#6
minneapolis_dan avatar

minneapolis_dan

New Zenner

Join Date:
Jan 2006
Location:
minneapolis
Posts:
69
Plugin Contributions:
0

Re: how show greeting in top header?

I did it the way imageriot did, but I don't know if there's a better way...

define('TEXT_GREETING_GUEST', 'Welcome Guest');
define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>!');

1 Dec 2008, 10:40 PM
#7
basara avatar

basara

New Zenner

Join Date:
Dec 2008
Posts:
1
Plugin Contributions:
0

Re: how show greeting in top header?

thanks. that did the trick.
I pasted the code inside the english language folder into the "header.php" file just under "header_title_login" and now it works just as expected.

really really big thanks for the help.

includes/languages/english/header.php

paste anywhere (using common sense, needless to say)
define('TEXT_GREETING_GUEST', 'Welcome Guest');
define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>!');

saved and solved. :clap: