Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Main Page Resize-----urrrrrgent


brlen

Recommended Posts

Posted

Hi, I am new to oscommerce and PHP. I spent two weeks time to fix the problem but cant help. Thats great if anyone can help me.

 

- extra column in mainpage shouldn't be show, how can I get rid of these?

- As my picture from different source with different size, how can I resize the image to fit in main page?

- since I am using oscommerce template, how can I know if a picture links to any pages or pic?

 

Brlen

Posted
Hi, I am new to oscommerce and PHP. I spent two weeks time to fix the problem but cant help. Thats great if anyone can help me.

 

- extra column in mainpage shouldn't be show, how can I get rid of these?

- As my picture from different source with different size, how can I resize the image to fit in main page?

- since I am using oscommerce template, how can I know if a picture links to any pages or pic?

 

Brlen

 

- extra column in mainpage shouldn't be show, how can I get rid of these?

you mean you want to get rid of extra columns? you can go to includes/column_left.php or includes/column_right.php

and comment out require syntax that you don't need. If you want to get rid of the whole column itself, then you need to touch lots of files. You need to open all the files at the index.php's location, including index.php and touch the code so that it would not leave a space for that column( it uses <table> to do that so you need to redesign the table) and not include the column_left or column_right.php.

You can do this easily by good text editors. I'm using UltraEdit. follow the next.

 

BACKUP ALL OF YOUR OSC FILES.

open index.php

find the code section

open all other files at the same level

replace the code section to "" using replace all in opened files option

save all

try testing.

if it works cool. if not, overwrite all with the back up and try again.

 

- As my picture from different source with different size, how can I resize the image to fit in main page?

you should get them on your computer and edit it with graphic tools for your site.

yes. you need to edit it yourself to fit in the main page. so better move~!

upload it to your host and use it from your server.

referring to different servers slows down loading up the page so much.

for an e-commerce site, slow loading is a NONONO situation.

 

- since I am using oscommerce template, how can I know if a picture links to any pages or pic?

you mean you want to know which pics are used in which pages?

if that's so, search up for the following functions in php codes.

tep_image

tep_image_button

tep_image_submit

 

the image files being used there can be found in:

includes/languages/[languages]/images/buttons/

[languages] could be any languages. i.e., english

 

Good luck.

Archived

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

×
×
  • Create New...