Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header Image Spacing......


carrzkiss

Recommended Posts

Posted

Hello All.

 

I cannot remember how to do this, and it is really bugging the mess out of me.

I have just created a Quick Banner for a site that I am doing for my Step Father, and it is Split. into 5-pieces.

Here is a link to the image(s) them self

http://www.sloanswelding.com/images/Sloans...ingService.html

 

This is how I have it in the Header.php .... And it is all messed up and out of wack.................

 

<TABLE WIDTH="510" BORDER="0" CELLPADDING="0" CELLSPACING="0">

 <tr class="header">

   <td valign="middle">

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'SloansWeldingService_01.png', 'Sloans Welding Service of Sanford, N.C.','WIDTH="84" HEIGHT="98"') . '

                                                             ' . tep_image(DIR_WS_IMAGES . 'SloansWeldingService_02.png', 'Sloans Welding Service of Sanford, N.C.','WIDTH="99" HEIGHT="98"') . '

                                                             ' . tep_image(DIR_WS_IMAGES . 'SloansWeldingService_03.png', 'Sloans Welding Service of Sanford, N.C.','WIDTH="121" HEIGHT="98"') . '

                                                      ' . tep_image(DIR_WS_IMAGES . 'SloansWeldingService_04.png', 'Sloans Welding Service of Sanford, N.C.','WIDTH="109" HEIGHT="98"') . '

                                                             ' . tep_image(DIR_WS_IMAGES . 'SloansWeldingService_05.png', 'Sloans Welding Service of Sanford, N.C.','WIDTH="97" HEIGHT="98"') . '</a>'; ?></td>

</td>

 </tr>

</table>

 

Can someone please format this for me please???

And write it up correctly. And also I need to change the Header back-color to match this, so I need to g Black with it, in the "CSS" Right?

And would like to change up the color on the "Header Navigation" As well.

Any advice on this, please assist.

But right now, I just need the header Banner done, please.

 

Thank you so kindly.

 

Wayne

Carrz-Fox-Fire Promotions

Thank You

Wayne & Carr Barron

Posted

do i understand this right, you want to put up a banner (which is cut into peices in a table) up on the top right(or left) of the store. In which case i think you need to go back to the original header.php

 

<?php

/*

 $Id: header.php,v 1.39 2003/02/13 04:23:23 hpdl Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2003 osCommerce



 Released under the GNU General Public License

*/

// check if the 'install' directory exists, and warn of its existence

 if (WARN_INSTALL_EXISTENCE == 'true') {

   if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {

     tep_output_warning(WARNING_INSTALL_DIRECTORY_EXISTS);

   }

 }



// check if the configure.php file is writeable

 if (WARN_CONFIG_WRITEABLE == 'true') {

   if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

     tep_output_warning(WARNING_CONFIG_FILE_WRITEABLE);

   }

 }



// check if the session folder is writeable

 if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {

   if (STORE_SESSIONS == '') {

     if (!is_dir(tep_session_save_path())) {

       tep_output_warning(WARNING_SESSION_DIRECTORY_NON_EXISTENT);

     } elseif (!is_writeable(tep_session_save_path())) {

       tep_output_warning(WARNING_SESSION_DIRECTORY_NOT_WRITEABLE);

     }

   }

 }



// check session.auto_start is disabled

 if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {

   if (ini_get('session.auto_start') == '1') {

     tep_output_warning(WARNING_SESSION_AUTO_START);

   }

 }



 if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {

   if (!is_dir(DIR_FS_DOWNLOAD)) {

     tep_output_warning(WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT);

   }

 }

?>



<table border="0" width="100%" cellspacing="0" cellpadding="0">

 <tr class="header">

   <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'Oscommerce') . '</a>'; ?></td>

   <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>

 </tr>

</table>

<table border="0" width="100%" cellspacing="0" cellpadding="1">

 <tr class="headerNavigation">

   <td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

   <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

 </tr>

</table>

<?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 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 $HTTP_GET_VARS['info_message']; ?></td>

 </tr>

</table>

<?php

 }

?>

 

and then either change the line (for left)

 

 <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'Oscommerce') . '</a>'; ?></td>

 

to

 

 <td valign="middle">



<TABLE WIDTH=510 BORDER=0 CELLPADDING=0 CELLSPACING=0>

<TR>

 <TD>

	 <IMG SRC="images/SloansWeldingService_01.png" WIDTH=84 HEIGHT=98></TD>

 <TD>

	 <IMG SRC="images/SloansWeldingService_02.png" WIDTH=99 HEIGHT=98></TD>

 <TD>

	 <IMG SRC="images/SloansWeldingService_03.png" WIDTH=121 HEIGHT=98></TD>

 <TD>

	 <IMG SRC="images/SloansWeldingService_04.png" WIDTH=109 HEIGHT=98></TD>

 <TD>

	 <IMG SRC="images/SloansWeldingService_05.png" WIDTH=97 HEIGHT=98></TD>

</TR>

</TABLE>



</td>

 

 

doing it for the right hand side will be pretty much the same.

Posted

Hello [deejay];

 

Thank you for your reply,

But this is not the accurate way to do it.

It is done through an " echo " in php. If I take the basic Table structur from the HTML Source, and use it, then that is defeating the purpose of PHP. I use to have this in all my pages, but never memorized the coding of it. And when I last my Harddrive on my server a few weeks ago, I lost everything, the stores and demo's...

 

So anyway, Thank you for your response.

 

Wayne

Carrz-Fox-Fire Promotions

Thank You

Wayne & Carr Barron

Posted

I got it... Forgot my <td> </td> Tags...

 

<TABLE WIDTH="510" BORDER="0" CELLPADDING="0" CELLSPACING="0">

 <tr class="header">

   <td valign="middle">

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'SloansWeldingService_01.png', 'Sloans Welding Service of Sanford, N.C.','WIDTH="84" HEIGHT="98"') . '</td>

                                                             <td>' . tep_image(DIR_WS_IMAGES . 'SloansWeldingService_02.png', 'Sloans Welding Service of Sanford, N.C.','WIDTH="99" HEIGHT="98"') . '</td>

                                                             <td>' . tep_image(DIR_WS_IMAGES . 'SloansWeldingService_03.png', 'Sloans Welding Service of Sanford, N.C.','WIDTH="121" HEIGHT="98"') . '</td>

                                                      <td>' . tep_image(DIR_WS_IMAGES . 'SloansWeldingService_04.png', 'Sloans Welding Service of Sanford, N.C.','WIDTH="109" HEIGHT="98"') . '</td>

                                                             <td>' . tep_image(DIR_WS_IMAGES . 'SloansWeldingService_05.png', 'Sloans Welding Service of Sanford, N.C.','WIDTH="97" HEIGHT="98"') . '</a>'; ?></td>

</td>

 </tr>

</table>

 

Take Care all and thank you

Wayne

Carrz-Fox-Fire Promotions

Thank You

Wayne & Carr Barron

Archived

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

×
×
  • Create New...