Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

osPlayer v2


man-machine

Recommended Posts

Ok now I see the player. (after uploading the osc_player.swf to the admin folder as well as the one to the catalog folder).

 

The player works in the admin section but does now not appear in the product description.

 

Has anyone run into this?

What browser are you using? I just noticed it isn't working in Internet Explorer. Works fine in Firefox 1.5. I saw an earlier post that said they got it to work in IE. I'll look it up.

Samuel Mateo, Jr.

osC 2.2 MS2

Installed Mods:

WYSIWYG HTMLArea 1.7 | Basic Template System 1.0 | osC-Affiliate | OSC-SupportTicket

Featured Products 1.3 | LoginBox 5.2 | LatestNews 1.1.3 | Extras for IE

Link to comment
Share on other sites

Propioweb

 

Thanks for your help. I had run the script included in the package which I think does the same thing. I ran the script you suggested and I got an error that there was a dulicate entry.

 

I don't know what has happened now as the admin for osplayer is now not working right. When I open a product and go into the mp3 manager it tries to create a folder and then fails.

 

I have been mucking around with the files too much. I think it is time to revert to my backup of the site and database and try again from the start.

 

The one thing that really confuses me is that I could not get it to work on a fresh install of oscommerce using the easy method install. There is not much you can screw up there.

 

I'll report back once I have done it again.

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Link to comment
Share on other sites

Well it works great with firefox . i fixed the problem that made the demo not working on IE .

But no problem at all on osCommerce i tested many browser , all is ok .

 

:-"

Here is what I was talking about and Man-Machine stated he fixed it but for some reason it doesn't work for me. I'll see if it works at home, it might just be the network here at work that is causing the problem but I don't hink so. I'll see.

Samuel Mateo, Jr.

osC 2.2 MS2

Installed Mods:

WYSIWYG HTMLArea 1.7 | Basic Template System 1.0 | osC-Affiliate | OSC-SupportTicket

Featured Products 1.3 | LoginBox 5.2 | LatestNews 1.1.3 | Extras for IE

Link to comment
Share on other sites

Ok I found what the problem is with osPlayer not showing up in IE, Flash is not installed on it for some reason, and everytime I try to install it from the Macromedia website, it doesn't. Weird.

 

Anyway,

I went to another computer to see if the player was working and it is except it just says "Loadin Datas" and it doesn't open.

 

Has anybody come across this problem?

Samuel Mateo, Jr.

osC 2.2 MS2

Installed Mods:

WYSIWYG HTMLArea 1.7 | Basic Template System 1.0 | osC-Affiliate | OSC-SupportTicket

Featured Products 1.3 | LoginBox 5.2 | LatestNews 1.1.3 | Extras for IE

Link to comment
Share on other sites

Ok. I'm stumped. Can't seem to get osplayer version 2 working.

First I backed up everything.

Next I did the advanced install.

Then I did the easy install on a fresh install of oscommerce.

Then I reinstalled my site from backup and tried again.

 

Every time I get the same results:

I get the admin working perfectly except the mp3manager button in the admin appears as a link and not as a button.

I can create folders and upload mp3s in the admin area. The player appears and can play the mp3s in the admin. But no player appears on my webpages. Nothing happens in my product_info.php pages and my product.

 

I am not sure what to try next any ideas?

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Link to comment
Share on other sites

I get the admin working perfectly except the mp3manager button in the admin appears as a link and not as a button.

That's because the button is not in the directory. Make sure you have uploaded the button into the correct button folder in the correct language

 

ie. admin/includes/languages/YOUR LANGUAGE/images/buttons/mp3manager.gif

 

The button is not in the english folder by default. You have to copy it from the french folder.

 

I can create folders and upload mp3s in the admin area. The player appears and can play the mp3s in the admin. But no player appears on my webpages. Nothing happens in my product_info.php pages and my product.

Go back and revisit the code in the product_info.php file and make sure you have done it correctly. Step by step, very carefully. You might have missed something. The more you look at the code the more you understand what it's doing and then you might be able to figure out the problem.

 

What is the link to the site so I can take a look at the code.

Samuel Mateo, Jr.

osC 2.2 MS2

Installed Mods:

WYSIWYG HTMLArea 1.7 | Basic Template System 1.0 | osC-Affiliate | OSC-SupportTicket

Featured Products 1.3 | LoginBox 5.2 | LatestNews 1.1.3 | Extras for IE

Link to comment
Share on other sites

That's because the button is not in the directory. Make sure you have uploaded the button into the correct button folder in the correct language

 

ie. admin/includes/languages/YOUR LANGUAGE/images/buttons/mp3manager.gif

 

The button is not in the english folder by default. You have to copy it from the french folder.

 

Ok button show up now.

 

Go back and revisit the code in the product_info.php file and make sure you have done it correctly. Step by step, very carefully. You might have missed something. The more you look at the code the more you understand what it's doing and then you might be able to figure out the problem.

 

Will do. Although that still does not explain why it did not work in a fresh install when I used the files included in the contribution.

 

you can see a product that has mp3s loaded and fuctioning in the admin area on my site at:

http://www.deepdownproductions.com/store/n...06c379badb4e5c3

 

The a product on my test site with an mp3 uploaded for is at:

http://deepdownproductions.netfirms.com/te...06c379badb4e5c3

 

Thanks for your help.

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Link to comment
Share on other sites

you can see a product that has mp3s loaded and fuctioning in the admin area on my site at:

http://www.deepdownproductions.com/store/n...06c379badb4e5c3

 

The a product on my test site with an mp3 uploaded for is at:

http://deepdownproductions.netfirms.com/te...06c379badb4e5c3

 

Thanks for your help.

I looked at the code and I don't see the code for the button or the player in there.

 

It starts it by saying "osPlayer v2 start" and ends by saying "osPlayer v2 end" but there is nothing in between. Where did it go? See below so you can see what I mean. This is where the button is supposed to be.

<!--osPlayer v2  start --> 
			<td valign="center"> 

			</td> 
<!--osPlayer v2 end -->
			<td class="main"><a href="http://www.deepdownproductions.com/store/nfoscomm/catalog/product_reviews.php?products_id=37&osCsid=6b90543cfb343764106c379badb4e5c3"><img src="includes/languages/english/images/buttons/button_reviews.gif" border="0" alt="Reviews" title=" Reviews " width="100" height="22"></a></td>
			<td class="main" align="right"><input type="hidden" name="products_id" value="37"><input type="image" src="includes/languages/english/images/buttons/button_in_cart.gif" border="0" alt="Add to Cart" title=" Add to Cart "></td>
			<td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>

Samuel Mateo, Jr.

osC 2.2 MS2

Installed Mods:

WYSIWYG HTMLArea 1.7 | Basic Template System 1.0 | osC-Affiliate | OSC-SupportTicket

Featured Products 1.3 | LoginBox 5.2 | LatestNews 1.1.3 | Extras for IE

Link to comment
Share on other sites

I looked at the code and I don't see the code for the button or the player in there.

 

It starts it by saying "osPlayer v2 start" and ends by saying "osPlayer v2 end" but there is nothing in between. Where did it go?

That's a good question and I think we have found the problem.

I redid the product_info.php modifications and reuploaded the file and that code once again dissappeared. The code is in php file as shown below.

<?php
/*
 $Id: product_info.php,v 1.97 2003/07/01 14:34:54 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);

 $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
 $product_check = tep_db_fetch_array($product_check_query);
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<?php
// BOF: WebMakers.com Changed: Header Tag Controller v2.5.2
// Replaced by header_tags.php
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
 require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?> 
 <title><?php echo TITLE; ?></title>
<?php
}
// EOF: WebMakers.com Changed: Header Tag Controller v2.5.2
?>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script language="javascript"><!--
function popupWindow(url) {
 window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le
ft=150')
}
// osPlayer v2 start  
 function popupWindowPlayer(url) { 
 window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=no,copyhistory=no,width=193,height=265,screenX=0,screenY=0,top=300,left=45
0')
} 
// osPlayer v2 end 
//--></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
<?php
 if ($product_check['total'] < 1) {
?>
  <tr>
	<td><?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
<?php
 } else {
$product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
$product_info = tep_db_fetch_array($product_info_query);
/// osplayer v2 start  
$product_mp3['folder'] = tep_get_mp3_folder($product_info['products_id']); 
/// osplayer v2 end
tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");

if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
  $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
} else {
  $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
}

if (tep_not_null($product_info['products_model'])) {
  $products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>';
} else {
  $products_name = $product_info['products_name'];
}
?>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading" valign="top"><?php echo $products_name; ?></td>
		<td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td>
	  </tr>
	</table></td>
  </tr>
  <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>
			<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td class="main">
	<!-- osPlayer v2 Start --> 
<?php 
if( (tep_not_null($product_mp3['folder'])) && (ENTRY_OSCP_POPUP == 'false') && (file_exists(DIR_FS_CATALOG_MP3 . $product_mp3['folder'])) && (is_dir(DIR_FS_CATALOG_MP3 . $product_mp3['folder']))) { 
?> 
 <table border="0" width="200" cellspacing="0" cellpadding="0" align="right"> 
 <tr> 
   <td><?php echo '<object type="application/x-shockwave-flash" data="osc_player.swf?mp3id=' . $HTTP_GET_VARS['products_id'] .'" width="193" height="265"><param name="scale" value="exactfit" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="movie" value="osc_player.swf?mp3id=' . $HTTP_GET_VARS['products_id'] .'"/><a href=http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash  target="blank"><img src="images/icons/noflash.gif" width="88" height="31" vspace="5" hspace="50" alt="install flash player plugin"/></a></object>';?></td> 
</tr> 
</table> 

<?php 
} 
?> 
<!-- osPlayer v2 End --> 
<?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="javascript: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
}
?>
	  <p><?php echo stripslashes($product_info['products_description']); ?></p>
<?php
$products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");
$products_attributes = tep_db_fetch_array($products_attributes_query);
if ($products_attributes['total'] > 0) {
?>
	  <table border="0" cellspacing="0" cellpadding="2">
		<tr>
		  <td class="main" colspan="2"><?php echo TEXT_PRODUCT_OPTIONS; ?></td>
		</tr>
<?php
  $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name");
  while ($products_options_name = tep_db_fetch_array($products_options_name_query)) {
	$products_options_array = array();
	$products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'");
	while ($products_options = tep_db_fetch_array($products_options_query)) {
	  $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']);
	  if ($products_options['options_values_price'] != '0') {
		$products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
	  }
	}

	if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) {
	  $selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']];
	} else {
	  $selected_attribute = false;
	}
?>
		<tr>
		  <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td>
		  <td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td>
		</tr>
<?php
  }
?>
	  </table>
<?php
}
?>
	</td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
$reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");
$reviews = tep_db_fetch_array($reviews_query);
if ($reviews['count'] > 0) {
?>
  <tr>
	<td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
}

if (tep_not_null($product_info['products_url'])) {
?>
  <tr>
	<td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
}

if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
?>
  <tr>
	<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td>
  </tr>
<?php
} else {
?>
  <tr>
	<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>
  </tr>
<?php
}
?>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<!--osPlayer v2  start --> 
			<td valign="center"> 
			<?php if( (tep_not_null($product_mp3['folder'])) && (ENTRY_OSCP_POPUP == 'true') && (file_exists(DIR_FS_CATALOG_MP3 . $product_mp3['folder'])) && (is_dir(DIR_FS_CATALOG_MP3 . $product_mp3['folder']))) { 
			echo '<a href="javascript:popupWindowPlayer(\'' . 'popup_oscplayer.php?product_id=' . $HTTP_GET_VARS['products_id'] . '\')">' . tep_image_button('button_preview_mp3.gif', IMAGE_BUTTON_MP3) . '</a>'; 
			} ?> 
			</td> 
<!--osPlayer v2 end --> 
			<td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>
			<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td>
<?php
if ((USE_CACHE == 'true') && empty($SID)) {
  echo tep_cache_also_purchased(3600);
} else {
  include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
}
 }
?>
	</td>
  </tr>
</table></form></td>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

But if you check at:

http://www.deepdownproductions.com/store/n...06c379badb4e5c3

The code does not appear in the html

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Link to comment
Share on other sites

Here is a comparison of the problem of dissapering code from the post before.

In my product_info.php file I entered the folowing code:

		<!-- osPlayer v2 Start --> 
<?php 
if( (tep_not_null($product_mp3['folder'])) && (ENTRY_OSCP_POPUP == 'false') && (file_exists(DIR_FS_CATALOG_MP3 . $product_mp3['folder'])) && (is_dir(DIR_FS_CATALOG_MP3 . $product_mp3['folder']))) { 
?> 
 <table border="0" width="200" cellspacing="0" cellpadding="0" align="right"> 
 <tr> 
   <td><?php echo '<object type="application/x-shockwave-flash" data="osc_player.swf?mp3id=' . $HTTP_GET_VARS['products_id'] .'" width="193" height="265"><param name="scale" value="exactfit" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="movie" value="osc_player.swf?mp3id=' . $HTTP_GET_VARS['products_id'] .'"/><a href=http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash  target="blank"><img src="images/icons/noflash.gif" width="88" height="31" vspace="5" hspace="50" alt="install flash player plugin"/></a></object>';?></td> 
</tr> 
</table> 

<?php 
} 
?> 
<!-- osPlayer v2 End -->

Then if I look at the page on my site the code appears like this:

 

<!-- osPlayer v2 Start --> 

<!-- osPlayer v2 End -->

 

You will notice all the nice juicy bits have dissappeared. No code = no player.

 

Anybody know where my code went?

 

Full version of my product_info.php file in the previous post and the result on my site viewable at:

http://www.deepdownproductions.com/store/n...06c379badb4e5c3

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Link to comment
Share on other sites

I ahve no idea. It could be a server issue.

Samuel Mateo, Jr.

osC 2.2 MS2

Installed Mods:

WYSIWYG HTMLArea 1.7 | Basic Template System 1.0 | osC-Affiliate | OSC-SupportTicket

Featured Products 1.3 | LoginBox 5.2 | LatestNews 1.1.3 | Extras for IE

Link to comment
Share on other sites

Very odd, but the player is working just fine here at home on IE6 and FF1.5. Don't ask me why or how.

Samuel Mateo, Jr.

osC 2.2 MS2

Installed Mods:

WYSIWYG HTMLArea 1.7 | Basic Template System 1.0 | osC-Affiliate | OSC-SupportTicket

Featured Products 1.3 | LoginBox 5.2 | LatestNews 1.1.3 | Extras for IE

Link to comment
Share on other sites

No. But I think I saw somewhere he said he was working on one that would.

Samuel Mateo, Jr.

osC 2.2 MS2

Installed Mods:

WYSIWYG HTMLArea 1.7 | Basic Template System 1.0 | osC-Affiliate | OSC-SupportTicket

Featured Products 1.3 | LoginBox 5.2 | LatestNews 1.1.3 | Extras for IE

Link to comment
Share on other sites

Here is a comparison of the problem of dissapering code from the post before.

In my product_info.php file I entered the folowing code:

		<!-- osPlayer v2 Start --> 
<?php 
if( (tep_not_null($product_mp3['folder'])) && (ENTRY_OSCP_POPUP == 'false') && (file_exists(DIR_FS_CATALOG_MP3 . $product_mp3['folder'])) && (is_dir(DIR_FS_CATALOG_MP3 . $product_mp3['folder']))) { 
?> 
 <table border="0" width="200" cellspacing="0" cellpadding="0" align="right"> 
 <tr> 
   <td><?php echo '<object type="application/x-shockwave-flash" data="osc_player.swf?mp3id=' . $HTTP_GET_VARS['products_id'] .'" width="193" height="265"><param name="scale" value="exactfit" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="movie" value="osc_player.swf?mp3id=' . $HTTP_GET_VARS['products_id'] .'"/><a href=http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash  target="blank"><img src="images/icons/noflash.gif" width="88" height="31" vspace="5" hspace="50" alt="install flash player plugin"/></a></object>';?></td> 
</tr> 
</table> 

<?php 
} 
?> 
<!-- osPlayer v2 End -->

Then if I look at the page on my site the code appears like this:

 

<!-- osPlayer v2 Start --> 

<!-- osPlayer v2 End -->

 

You will notice all the nice juicy bits have dissappeared. No code = no player.

 

Anybody know where my code went?

 

Full version of my product_info.php file in the previous post and the result on my site viewable at:

http://www.deepdownproductions.com/store/n...06c379badb4e5c3

 

 

I figured out what was wrong with the code dissapearing.

In the added line to the catlog/includes/configure.php file the path from the instructions in the manual reads:

define('DIR_FS_CATALOG_MP3', DIR_FS_CATALOG . 'data/mp3/');

define('DIR_WS_CATALOG_MP3', DIR_WS_HTTP_CATALOG . 'data/mp3/');

It should read:

define('DIR_FS_CATALOG_MP3', DIR_FS_CATALOG . '/data/mp3/');

define('DIR_WS_CATALOG_MP3', DIR_WS_HTTP_CATALOG . '/data/mp3/');

 

This will only effect the player on some servers but this small change makes the difference between it appearing and not appearing.

I noticed several other typos in the manual as well as a few missing instructions. When I get back from my holiday in Cuba I will write them up and at least post them here if not add to the contribution.

 

It takes some fiddleing but it is a really nice plugin.

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Link to comment
Share on other sites

I got the exact same problem as ELVIS does... help needed..!

 

 

If i would get this running, it would be absolutely perfect for me. But there are several problems. At first, no tracks show up in the playlist on the Admin (I included the parser into the catalog box, because i am running the admin with levels box also). The directories are all created, the files were uploaded, even the databse entry is correct. But still no playlist in the admin. I also checked the chmod of the data/mp3 directory, everything looks ok.

 

On the front side, while looking on a product page, the player will show up, it even has the correct files in the Playlist, but it doesn't play the files. The Path seemes to be OK, because the Player shows the right files. But no music to hear ...

 

Any Ideas about this? Every piece of Help is gladly apreciated.

 

And by the way, the changelog.txt says - v2.0 BETA -, so I guess, i am running the latest Version.

Link to comment
Share on other sites

I got the exact same problem as ELVIS does... help needed..!

If i would get this running, it would be absolutely perfect for me. But there are several problems. At first, no tracks show up in the playlist on the Admin (I included the parser into the catalog box, because i am running the admin with levels box also). The directories are all created, the files were uploaded, even the databse entry is correct. But still no playlist in the admin. I also checked the chmod of the data/mp3 directory, everything looks ok.

 

On the front side, while looking on a product page, the player will show up, it even has the correct files in the Playlist, but it doesn't play the files. The Path seemes to be OK, because the Player shows the right files. But no music to hear ...

 

Any Ideas about this? Every piece of Help is gladly apreciated.

 

And by the way, the changelog.txt says - v2.0 BETA -, so I guess, i am running the latest Version.

Hmm. I'm not sure.

I know this will sound like a stupid question but are you sure your sound is working. I'm having some trouble with the player too but I do have it working on some pages. Try here http://www.deepdownproductions.com/store/n...5bee67cc39a7e94

you can see if it is something in the way your computer works with osplayer.

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Link to comment
Share on other sites

Everything 'SOUNDS' OK... If you know what I mean!

 

I can ear! I even sent it in a fresh osc copy. and the problem seems to be the same. Could I have a missing file in my package or what !

 

I did follow the readme! five times now... and never had it working.

 

Any known problem with some other contrib. That is today's task to find!

 

HELPPPPPP ! I need this contrib to go live

 

You can see the result at :

 

www.xmedias.ca

Link to comment
Share on other sites

I got the exact same problem as ELVIS does... help needed..!

If i would get this running, it would be absolutely perfect for me. But there are several problems. At first, no tracks show up in the playlist on the Admin (I included the parser into the catalog box, because i am running the admin with levels box also). The directories are all created, the files were uploaded, even the databse entry is correct. But still no playlist in the admin. I also checked the chmod of the data/mp3 directory, everything looks ok.

 

On the front side, while looking on a product page, the player will show up, it even has the correct files in the Playlist, but it doesn't play the files. The Path seemes to be OK, because the Player shows the right files. But no music to hear ...

 

Any Ideas about this? Every piece of Help is gladly apreciated.

 

And by the way, the changelog.txt says - v2.0 BETA -, so I guess, i am running the latest Version.

 

Are you ftping the mp3 files or using the mp3 manager to upload?

The mpp3 manager has limits set for maximum file size.

 

Go to the folder were you are uploading to and see if the files are there catalog/data/mp3/(foldername)

 

It sounds to me like the files are not getting uploaded.

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Link to comment
Share on other sites

I have about 100+ Mp3s to add, is there any other mechanism that will allow straight FTP and insertion?

I'm not sure what you are asking about but . . .

If you want to add the files to one product it is easy via ftp. Just creat a product and scoot the files into the folder associated with that product. In theory there could be 100+ this way

 

Is this what you wanted to do?

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Link to comment
Share on other sites

Dear All,

I have installed osplayer_v2.1 into a clean version of oscommerce.

Two main problems are:-

1. In the admin section the file uploads, but in IE it doesnt add to the player, and in Firefox, it adds to the player but then doesnt play.

2. In the catalogue, no listen button appears at all.

I have trawled through the massive list of everyones problems and solutions and none seems to work for me.

Thanks in advance for the help.

Sorry If I have duplicated this post, I think I put the last one in the wrong place.

George

Link to comment
Share on other sites

1. In the admin section the file uploads, but in IE it doesn?t add to the player, and in Firefox, it adds to the player but then doesn?t play.

 

Does a little box show up in IE with something about a at missing flash plugin?

The player was not showing up in IE on my computer utill I updated the flash version. It had showed up in Firefox with no update.

2. In the catalogue, no listen button appears at all.

I have trawled through the massive list of everyones problems and solutions and none seems to work for me.

 

Check your two configure.php files (catlog/includes/configure.php and catalog/admin/includes/configure.php) that they contain these statements:

 

define('DIR_FS_CATALOG_MP3', DIR_FS_CATALOG . '/data/mp3/');

define('DIR_WS_CATALOG_MP3', DIR_WS_HTTP_CATALOG . '/data/mp3/');

 

Not

 

define('DIR_FS_CATALOG_MP3', DIR_FS_CATALOG . 'data/mp3/');

define('DIR_WS_CATALOG_MP3', DIR_WS_HTTP_CATALOG . 'data/mp3/');

You have to change the permissions on the files on the files to upload 644 and then back to 444 after.

 

Can you play the player in the admin mode?

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Link to comment
Share on other sites

Thanks for replying,

With IE theres is no missing plugin i presume, as all flash content plays from other sites, I do make flash ones myself.

The player doesnt play in Firefox even though it queues the track up in the player. The difference between that and IE is that I can see the player in IE, but it will not add uploaded files into the playlist, whereas Firefox, goes all the way up to producing sound.

My store is installed to http://www.spacecowboyonline.com/storetest/, and the mp3s are stored to /data/mp3/, I have tried the configure.php files as /data/mp3 over just data/mp3, and it didnt change anything, I'll try again.

Anymore ideas would be helpful,

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...