Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How Can I Remove Empty Space


PJ2006

Recommended Posts

I have removed the welcome guest message from my front page, but now have a big empty space - how can I get rid of that?

 

Thanks

 

Lotti

What was the solution?

Link to comment
Share on other sites

You could remove the whole block:

	
	 <tr>
		<td class="main"><?php echo tep_customer_greeting(); ?></td>
		 <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

	  </tr>

Edited by oschellas
Link to comment
Share on other sites

You could remove the whole block:

	
	 <tr>
		<td class="main"><?php echo tep_customer_greeting(); ?></td>
		 <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

	  </tr>

 

Thanks for that.

 

I just removed the line

 

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

 

From index.php - catalog/index.php - that got rid of the space I was left with.

 

I'll go back and look at how I removed the Welcome Guest bit and post back - memory span of a gold fish!!

 

The only problem I'm left with now is I want to add a link to create account in my nav bar and I cannot find the reference $name for this anywhere if anyone knows.

 

Thanks

 

Lotti

Link to comment
Share on other sites

Thanks for that.

 

I just removed the line

 

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

 

From index.php - catalog/index.php - that got rid of the space I was left with.

 

I'll go back and look at how I removed the Welcome Guest bit and post back - memory span of a gold fish!!

 

The only problem I'm left with now is I want to add a link to create account in my nav bar and I cannot find the reference $name for this anywhere if anyone knows.

 

Thanks

 

Lotti

 

I removed the line:

 

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>?');

 

From English.php - catalog/includes/languages

 

Then I removed a line from the general.php which called it

 

I can't remember exactly what the line was but as it's now removed, sorry :blush:

 

I think I found it by looking up TEXT_GREETING_GUEST

 

 

I think I removed this else statement

 

// Return a customer greeting

function tep_customer_greeting() {

global $customer_id, $customer_first_name;

 

if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {

$greeting_string = sprintf(TEXT_GREETING_PERSONAL, tep_output_string_protected($customer_first_name), tep_href_link(FILENAME_PRODUCTS_NEW));

} else {

$greeting_string = sprintf(TEXT_GREETING_GUEST, tep_href_link(FILENAME_LOGIN, '', 'SSL'), tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));

}

 

Hope this helps

Link to comment
Share on other sites

<?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . HEADER_TITLE_CREATE_ACCOUNT . '</a>'; ?>

Thanks oschellas, I've been trying to get an answer to that for weeks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...