Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

safely remove "welcome" login message


Top_Speed

Recommended Posts

Posted

I have installed the login in the right box so now I would like the "Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?" totally removed.

 

my (lower code) in header is of such..

<?php
 if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerError">
   <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>
 </tr>
</table>
<?php
 }

 if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerInfo">
   <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>
 </tr>
</table>
<?php
 }
?>

 

Thanks!

define('PROJECTS', 'Something that goes on forever!');

Posted
I have installed the login in the right box so now I would like the "Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?" totally removed.

 

my (lower code) in header is of such..

<?php
 if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerError">
   <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>
 </tr>
</table>
<?php
 }

 if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerInfo">
   <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>
 </tr>
</table>
<?php
 }
?>

 

Thanks!

 

Just empty the appropriate strings in includes/languages/english.php

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

 

or (what I did for a while) edit catalog/index.php ->

find

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

 

and change to

 

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

 

I would prefer this last method.

Posted
Just empty the appropriate strings in includes/languages/english.php

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

 

or (what I did for a while) edit catalog/index.php ->

find

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

 

and change to

 

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

 

I would prefer this last method.

 

Thanks Howard,

 

I did the later as you suggested :thumbsup:

define('PROJECTS', 'Something that goes on forever!');

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...