Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

display category image filename only with url


supraturbo

Recommended Posts

Posted

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

 

does anyone know how to change it so i can just get a output of the image file. Basically i just want it to echo site.com/images/catimage.jpg and thats it no image tags etc.

 

if someone that knows php could post the code to do it.... that would be awesome

Posted
anyone?

your question is not very specific - but - if i understand you correctly (with the small amount of detail you have provided, you can simply get rid of the line preceeding the one you quoted - i would suggest commenting it out (for testing) before going as far as to delete it:

		<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
<!--	<td class="pageHeading"><?php echo $category['categories_name'] ?></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>

note because the line is outside of the php code you have to use html comment tags...

Posted

yah i just want to pretty much cutt out the IMG Tag alt tags etc...

 

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

 

so it only outputs ex: /images/cat.jpg

Posted

like this (????):

 

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

 

????????????????????????

Archived

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

×
×
  • Create New...