Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need Help please


webbsy

Recommended Posts

Posted

i am currently building a webpage and am using STS but for the life of me i cannot figure out this problem, on the frontpage i have taken out the welcome user message but when i add a picture to the frontpage it shows up below where the greeting would be even though it is gone i cannot reclaim the space.

 

So can anyone help i have added a pic to try and demonstrate what i mean.

 

pic.png

Posted

Hi looks like you are trying to add a picture after the $content part of your page.

 

If you want the picture to appear in every page then add it to the template before the $content tag.

 

If you want it to just appear in specific pages you are better of defining the image in the language file of that page eg index.php

 

Does this help?

Posted

hi,

 

i only want it to appear on the index page but i want the picture to be up the top more where the greetings would normally be. when i add a image it ends up where it is in the image above, but i want it up higher.

Posted

mail me or post your index.php.............. includes/languages/english/index.php............. and your sts_temlate.html

Posted
<?php

/*

 $Id: index.php 1739 2007-12-20 00:52:16Z hpdl $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2007 osCommerce



 Released under the GNU General Public License

*/



define('TEXT_MAIN', ' 

Welcome to the PGI online store



<p align="center">

<a href="index.php?cPath=1_21_35_64&osCsid=c811163aa09955d90ff2821a04bfea7a">

<img border="0" src="pcbanner.png" width="540" height="113"></a>

</p>





























');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');



if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

 define('HEADING_TITLE', 'Our Products');

 define('TABLE_HEADING_IMAGE', '');

 define('TABLE_HEADING_MODEL', 'Model');

 define('TABLE_HEADING_PRODUCTS', 'Product Name');

 define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

 define('TABLE_HEADING_QUANTITY', 'Quantity');

 define('TABLE_HEADING_PRICE', 'Price');

 define('TABLE_HEADING_WEIGHT', 'Weight');

 define('TABLE_HEADING_BUY_NOW', 'Buy Now');

 define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

 define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

 define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

 define('TEXT_SHOW', '<b>Show:</b>');

 define('TEXT_BUY', 'Buy 1 \'');

 define('TEXT_NOW', '\' now');

 define('TEXT_ALL_CATEGORIES', 'All Categories');

 define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

 define('HEADING_TITLE', '');

} elseif ($category_depth == 'nested') {

 define('HEADING_TITLE', 'Menu');

}

?>

Posted

I am struggling to work out exactly what you want.

 

If you place the image above the word in your includes/languages/english/index.php like

 

define('TEXT_MAIN', ' 

<p align="center">

<a href="index.php?cPath=1_21_35_64&osCsid=c811163aa09955d90ff2821a04bfea7a">

<img border="0" src="pcbanner.png" width="540" height="113"></a>

Welcome to the PGI online store

</p>


 

Do you still get the white space at the top.

 

If so I think you may have removed the greeting from the language file but not from the index.php in your root (so although nothing is there to be put in the space there is still a space there).

 

Did this help?

Posted

hwere would i removie it from the index file? if i add the image above the banner there is still a space.

Posted

ok i sorted it out with your help i had a few tables still there which i deleted out.

 

Thanks really appreciate it.

Archived

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

×
×
  • Create New...