Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I place images on any page?


Guest

Recommended Posts

I am not sure what I need to type in the ecommerce/os/catalog/includes/languages/english/index.php to place pics wherever I want them.

 

 

Thanks for your help.

Link to comment
Share on other sites

You want to place pics wherever you want them :D What does that mean? If you place a picture into english/index.php it is only on the startpage, e.g.

 

define('TEXT_MAIN', 'tep_image(DIR_WS_IMAGES . 'default/1.gif') . "Some blind text..."');

 

But you can also do it the standard way using the image tag.

 

define('TEXT_MAIN', '<img src="pic.jpg" />Some blind text...');

Link to comment
Share on other sites

Thank you for the help. I am very new to this. When either of the above in with a link to my picture I want displayed, I just get TEXT_MAIN at the top of the page.

 

 

Thanks for your help again.

Link to comment
Share on other sites

Thank you for the help. I am very new to this. When either of the above in with a link to my picture I want displayed, I just get TEXT_MAIN at the top of the page.

Thanks for your help again.

 

Post the exact code you are using for the text main define

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

Post the exact code you are using for the text main define

 

<?php

/*

$Id: index.php,v 1.1 2004/08/25 23:11:33 akhan Exp $

 

osCommerce, Open

 

Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003

 

osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN',

 

'<b>Welcome to iseehd.com,<font color="#F0000"> FREE SHIPPING ON EVERYTHING,

 

EVERYDAY!</font></b><br>

We are trained to help you design your perfect Audio/Visual environment. If you have

 

any questions, feel free to ask. This site is secure, so you can feel comfortable

 

shopping here and have the peace of mind to know that we care about your security and

 

privacy. We will offer the best prices and the best service available. Let us show you

 

what the future of vision looks like.')

 

 

 

 

;

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

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', 'FREE SHIPPING ON ALL TVS');

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', 'Welcome To The Future Of Vision');

} elseif

 

($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

Link to comment
Share on other sites

Thank you for the help. I am very new to this. When either of the above in with a link to my picture I want displayed, I just get TEXT_MAIN at the top of the page.

Thanks for your help again.

Most likely you have inadvertently removed a control character when editing that file. Seeing TEXT_MAIN like that is usually the result. As far as placing images where you want, it depends on where you want them. If you want them in the body of your index page, then youcan add them to the laguages/english/index.php page. If you want them in your header, like your logo, then place them in includes/header.php. If you want them in the left or right columns, then edit includes/column_left.php and/or includes/column_right.php.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Most likely you have inadvertently removed a control character when editing that file.  Seeing TEXT_MAIN like that is usually the result.  As far as placing images where you want, it depends on where you want them.  If you want them in the body of your index page, then youcan add them to the laguages/english/index.php page. If you want them in your header, like your logo, then place them in includes/header.php.  If you want them in the left or right columns, then edit includes/column_left.php and/or includes/column_right.php.

 

Jack

 

So where should I type the code above? Underneath the text main that already exists and if so, do I need any seperators, etc..

 

Thanks again...

Link to comment
Share on other sites

The above method will work, although it is not complete, and it is not the way youwill usually see it. Not that that is wrong, but it may confuse you. The problem is that what code you use will somewhat depend on where you want to insert an image. Let's say you want to insert an image into your header. Open the includes/header.php file and find this code

<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>

Then right underneath that place this code

 <table width="100%">
<tr>
<td>
<?php echo '<img border="0" src="images/some_image.jpg" width="120" height="172" alt="Some Text">'; ?>
</td>
</tr>
</table>[CODE]Hopefully this will get you started.

Jack
 
   </td>

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...