Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-13-2004, 05:41 PM
Dragonsi's Avatar
WebProWorld Veteran
 

Join Date: Dec 2003
Location: Wales (UK)
Posts: 343
Dragonsi RepRank 0
Default osCommerce site - inserting images

Hi all,

While I am fairly ok with HTML, I have very little experiance of PHP. I have an 'osCommerce' based shopping site and I am trying to insert some images in the main 'define TEXT_MAIN' area. So far, everything I have tried is just bringing up the blank image table but I'm pritty sure I'm using the wrong code. This is what I tried:

Quote:
define('TEXT_MAIN', '<big>You may pay via [img]../images/paypal_logo.gif[/img] or Cheque/Postal Order ....blar blar blar...
Can someone please tell me the correct way of inserting images into this main text field?

PS - I have already uploaded the image to the correct directory.
__________________
www.westwalesweb.com
Website development & ICT solutions.
Reply With Quote
  #2 (permalink)  
Old 01-13-2004, 07:09 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default Re: PHP HELP - inserting images

Quote:
Originally Posted by Dragonsi
Can someone please tell me the correct way of inserting images into this main text field?

PS - I have already uploaded the image to the correct directory.
Hi Dragonsi,

A couple of things... could you supply a link for the site? and have you tried entering the absolute URL to the image?

Paul
Reply With Quote
  #3 (permalink)  
Old 01-13-2004, 07:40 PM
Dragonsi's Avatar
WebProWorld Veteran
 

Join Date: Dec 2003
Location: Wales (UK)
Posts: 343
Dragonsi RepRank 0
Default

Hi Paul,

When I tried 'img src' yesterday nothing worked, I tried it again just now and the images have appeared... bizarre..

The site ( www.pembdirectory.co.uk/mall/catalog ) now displays the images I want. Next is to get some images at the bottom of the left column... mmmmm ...

I think that is something about tep_image (WS_IMAGES) or something...? What doc holds this code, I still have to figure out.. :-/
__________________
www.westwalesweb.com
Website development & ICT solutions.
Reply With Quote
  #4 (permalink)  
Old 01-13-2004, 10:21 PM
WebProWorld New Member
 

Join Date: Jan 2004
Location: New Zealand
Posts: 4
attitudenz RepRank 0
Default

hey,

tep_image is a function in
/includes/functions/html_output.php

you will need to make changes to column_left.php - note there is a table tag before the column - anything you add to column_left.php should be in a table row.

regards,
Geoff
__________________
osCommerce Watch - News and Views on the open source shopping cart system
osCommerce Installation, Customization and Support
Reply With Quote
  #5 (permalink)  
Old 01-14-2004, 12:24 PM
Dragonsi's Avatar
WebProWorld Veteran
 

Join Date: Dec 2003
Location: Wales (UK)
Posts: 343
Dragonsi RepRank 0
Default

Cheers Geoff,

I'll play around later when I have a bit more time.

Another question would be:
How to display product images with the product list when you click on the category link (retailers for me) - at present, only product name and price are displayed, it would be nice to display image thumbnail also. Can anyone let me know how to do this?
__________________
www.westwalesweb.com
Website development & ICT solutions.
Reply With Quote
  #6 (permalink)  
Old 01-19-2004, 03:36 AM
WebProWorld New Member
 

Join Date: Jan 2004
Location: New Zealand
Posts: 4
attitudenz RepRank 0
Default

Go to admin -> configuration -> product listing

On this screen you can turn on the ability to display images when products are listed for category browsing or searches.
__________________
osCommerce Watch - News and Views on the open source shopping cart system
osCommerce Installation, Customization and Support
Reply With Quote
  #7 (permalink)  
Old 01-19-2004, 03:30 PM
Dragonsi's Avatar
WebProWorld Veteran
 

Join Date: Dec 2003
Location: Wales (UK)
Posts: 343
Dragonsi RepRank 0
Default

Ta very much - that's sorted it.. :)
__________________
www.westwalesweb.com
Website development & ICT solutions.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0