Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Flashfiles as product pictures


Talle

Recommended Posts

Hi.

 

I´d like to have the posibility to use .swf files as product pictures but since I do not know php programing I do not know how to do it.

 

I have looked through all flash contributions I have found but I don´t get any wiser from that.

 

I suppose I should put some code in some of the product pages but I do not know what to what to write or where...

 

I still want to be able to use .gif and .jpg pictures but if posible I´d like the system to recognize itself which format to use.

If possible it would also be nice to upload these via admin panel when adding or editing products.

 

I do have more product pictures and it would be VERY NICE if this could be made for ALL pictures.

 

my site: www. babies .se (without blanks)

 

I´m most grateful for any help!!!

 

Sincerly

 

//Talle

Link to comment
Share on other sites

in index.php somewhere at the bottom fund those 2 lines and put your text where is marked.See what happen.Back-up your index file before you decided to "play" with.

The fonts and color can be change

at styleseet.css.Look for 20pt text.That where you change color and fonts

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

<td class="pageHeading" align="center">

<?php echo ; ?>Put your text here</td>

Link to comment
Share on other sites

Hi.

 

I´d like to have the posibility to use .swf files as product pictures but since I do not know php programing I do not know how to do it.

 

I have looked through all flash contributions I have found but I don´t get any wiser from that.

 

I suppose I should put some code in some of the product pages but I do not know what to what to write or where...

 

I still want to be able to use .gif and .jpg pictures but if posible I´d like the system to recognize itself which format to use.

If possible it would also be nice to upload these via admin panel when adding or editing products.

 

I do have more product pictures and it would be VERY NICE if this could be made for ALL pictures.

 

my site: www. babies .se (without blanks)

 

I´m most grateful for any help!!!

 

Sincerly

 

//Talle

 

 

to use this my friend you need to go ahead of yourself very much :)

 

first of all you need to edit index.php and product_info.php and instead of tep_image functions where your pictures would be displayed you need to put them in an if-clause so if the product image is a swf file and if it exists in a specific dir should be displayed in embed tags. furthermore if you want to do it "oscommerce way" you should go and wrte your own flash display function to html_output.php and of course to your admin page needs some "fixing" :)

 

anyway I wish you good luck.

 

BTW this thread isn't the wish list thread!!

Link to comment
Share on other sites

to use this my friend you need to go ahead of yourself very much :)

 

first of all you need to edit index.php and product_info.php and instead of tep_image functions where your pictures would be displayed you need to put them in an if-clause so if the product image is a swf file and if it exists in a specific dir should be displayed in embed tags. furthermore if you want to do it "oscommerce way" you should go and wrte your own flash display function to html_output.php and of course to your admin page needs some "fixing" :)

 

anyway I wish you good luck.

 

BTW this thread isn't the wish list thread!!

 

Hi.

 

Thank you for your reply.

 

First of all:

I do appologize if this is not the wishlist thread. I was not aware that I posted a wishlist, I thought of it more as a feature that might have been done by someone.

 

Second in line:

I do understand that I need an If statement since the .swf file shall only be displayed in lack of .gif or .jpg (or the other way around)

My problem though is that I do not know where and how to put this command that is the reason for my question.

 

 

Regarding writing my own flash statement I wish I could. :blush:

 

Thank you!

Link to comment
Share on other sites

if you haven't changed it for oscommerce 2.2 Rc1 at product_info.php below is where you need to make the changes. for product listing refer to index.php and search for 'products_image'..

 

<?php
if (tep_not_null($product_info['products_image'])) {
?>
	  <table border="0" cellspacing="0" cellpadding="2" align="right">
		<tr>
		  <td align="center" class="smallText">
<script language="javascript"><!--
document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>
		  </td>
		</tr>
	  </table>
<?php
}
?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...