Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tep_image_submit


Guest

Recommended Posts

Posted

  function tep_image_submit($image, $alt = '', $parameters = '') {
   global $language;

   $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';

   if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';

   if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;

   $image_submit .= '>';

   return $image_submit;

 

now... i want to call these buttons from another area... not in the includes/languages... but straight from store/images/'. $image

 

i try and manipulate that, but it still doesnt show up?? please help!!!

I am starting to advertise on the site ASAP! I NEED THIS DONE!

THANKS

http://thepinkpanty.com/store

 

}[/code]

Posted

Try making sure you have DIR_WS_IMAGES defined correctly in your includes/configure.php and use something along these lines:

  function tep_image_submit($image, $alt = '', $parameters = '') {
  global $language;

  $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_IMAGES  . 'buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';

  if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';

  if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;

  $image_submit .= '>';

  return $image_submit;

 

I'm not the best at php, but it seems to me like that would work.

Always BACK UP your files and your database before making any changes. Before asking questions, check out the Knowledge Base. Check out the contributions to see if your problem's solved there. Search the forums.

 

Useful threads: Store Speed Optimization How to make a horrible shop Basics for design change How to search the forums

 

Useful contributions: Easypopulate Fast, Easy Checkout Header Tag Controller

  • 2 years later...

Archived

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

×
×
  • Create New...