Jump to content



Photo
- - - - -

get rid of the "TEXT_GREETING_GUEST


This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1   x-shane-xx@hotmail.com

x-shane-xx@hotmail.com
  • Members
  • 61 posts

Posted 12 February 2008 - 10:10

i know i ned to delete the majority of the text from language\english.php to get rid of "Welcome Guest! Would you like to log yourself in?" But where do I get rid of the "TEXT_GREETING_GUEST" that now shows in the index. I have checked both the index.php and includes/languages/english/index.ph with no luck....

Thx

#2   k9fto

k9fto
  • Members
  • 7 posts

Posted 12 February 2008 - 12:23

I need to do the same thing, remove completely the welcome guest line from the main index page. I have searched the forums and guess I am not searching it right to find it. I see were alot of sites have removed it.

#3   geoffreywalton

geoffreywalton

    Professional Developer

  • Community Sponsor
  • 8,245 posts

Posted 12 February 2008 - 20:50

/includes/languages/english.php needs a line in it as follows, guess you deleted the whole line

define('TEXT_GREETING_GUEST', '');

This would be a good place to do a little research

http://www.oscommerc...sign_and_Layout
Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

Virus Threat Scanner
My Contributions
Basic install answers.
Click here for Contributions / Add Ons.
UK your site.
Site Move.
Basic design info.

For links mentioned in old answers that are no longer here follow this link Useful Threads.

If this post was useful, click the Like This button over there ======>>>>>.

#4   k9fto

k9fto
  • Members
  • 7 posts

Posted 13 February 2008 - 02:18

/includes/languages/english.php needs a line in it as follows, guess you deleted the whole line

define('TEXT_GREETING_GUEST', '');

This would be a good place to do a little research

http://www.oscommerc...sign_and_Layout




I dont have the line in mine either and I have been looking. Is it referenced from somewhere else? I just want to delete the whole guest welcome line.

#5   k9fto

k9fto
  • Members
  • 7 posts

Posted 13 February 2008 - 02:31

I dont have the line in mine either and I have been looking. Is it referenced from somewhere else? I just want to delete the whole guest welcome line.



I did my research and found the answer in another post. Just had to figure out how to ask the right question. Here is the answer.....

In catalog\includes\languages\english.php and other language files find


define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?');
define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>');
define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');

and change to

define('TEXT_GREETING_PERSONAL', '');
define('TEXT_GREETING_PERSONAL_RELOGON', '');
define('TEXT_GREETING_GUEST', '');

I added one extra step and that was to not delete the original code but to rem it out so if I needed to go back to it I could very easily. Just place the // in front of the top three define tags to rem them out.....

#6   x-shane-xx@hotmail.com

x-shane-xx@hotmail.com
  • Members
  • 61 posts

Posted 13 February 2008 - 09:55

Thx all~~ this forum really helps out
/rolleyes.gif' class='bbc_emoticon' alt=':rolleyes:' />

#7   screenprintdude

screenprintdude
  • Members
  • 22 posts

Posted 03 November 2009 - 18:27

For Design Purposes:

To Correctly and non-destructively remove the Default Greeting Line completely.

Locate this in the index.php file

<td class="main"><?php echo tep_customer_greeting(); ?></td>
change to <td class="main"><?php // echo tep_customer_greeting(); ?></td>


The Function is in the general.php in the functions directory.

You may also consider adding the text to the STS template user file if you are using STS.