Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

taking out the crappy little graphics


johnnyzmodz

Recommended Posts

Posted

on my site when i go to certain categories it shows images at the top.. but i dont want it to show those bad stock images i just wanted no images so i took the image thing out for that category but now it shows a box with a red X in it.. i dont want it to show any graphic there at all how would i do this... and take out the bad graphics on the main page and stuff? heres an example:

 

RED X:

http://www.johnnyzmodz.com/index.php?cPath...12390d5faefbc79

 

where i want to take out the bad graphics:

http://www.johnnyzmodz.com/index.php?osCsi...12390d5faefbc79

 

you see where the little guy at the desk is on the top right corner? thats the one i want to remove.. thnx

Posted

you're looking for bits of code like:

 

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
           <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES .............etc etc

 

HEADING_TITLE displays the 'Lets see what we have here'

 

The next line displays the crappy image. There's 2 in index.php, one for the mainpage and one for the product listing. Comment them out or delete them whatever works best!

Posted

alright i tried commenting out those lines.. or this exact line:

 

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

 

and i just put a ' in font of the code and saved it and reuploaded it, and no luck, then i tried a " in front and still no luck on both lines.. still shows that crappy image, i was is admin/index.php

Posted

never mind i was commenting it out wrong.. i just searched google on how to comment lines out on html properly and i found the answer and now it works.. thanks!

Posted

alright.. it worked but then i had to restore my site and im trying to do it again with no luck... i commented out both parts like before but now the mainpage doesn't show the crappy image like i want but when you go into categories it still has the red x with the image thing in the top left.. heres where im trying to take the image out and heres the line im trying to change:

 

bad graphic top right corner:

http://www.johnnyzmodz.com/index.php?cPath...19377cc9f81bc9a

 

line im changing:

 

<!--td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0" \\-->

 

<tr>

 

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

 

<tr>

 

<!--td class="pageHeading"><?php echo HEADING_TITLE; ?></td \\-->

 

<!--td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td \\ -->

 

</tr>

 

</table></td>

 

</tr>

 

<tr>

Posted

To comment out php you need to use //

 

e.g.

 

<?php //echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?>

Your online success is Paramount.

Posted
To comment out php you need to use //

 

e.g.

 

<?php //echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?>

 

I think he want's to comment the whole html line e.g. <!-- //-->.

 

Jonnymodz... Remember there's two of the buggers in index.php! and get the slashes in the right direction e.g. //--> (don't actually know if that makes any difference though, never trieed them the other way!)

Posted

yea but even if i type in a graphic in that line it still goes with a red X, so i dunno why its like its coming from a different line... i found the other one at the bottom but thats for the welcome page the other one that im trying to do is for the category pages.. and yes ive tried the slashes both ways with the same thing.. so its like its coming from a different line and not that line.. but im like 99 percent sure thats the line i commented out last time to get rid of that graphic call..

Posted

Johnny, think what you are doing wrong is you are commenting out the after the table has closed(someone correct me if i am wrong but here is an example of my thinking

 

<!--td(open table)>Blahblahblah</td(close table)//-->

 

If you comment that out bit out you are not really commenting anything because nothing follows until the brackets close so to speak ( i dont know the technical terms yet)..

 

Should it be

 

<!--//td(open table)>Blahblahblah</td(close table)-->

 

Steve

Archived

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

×
×
  • Create New...