Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

popup window for streaming media


j158y

Recommended Posts

Hello,

I wish my customers can see the pay e-learning media, but I don't want my customers know my url of streaming media. If user uses save as will show url, I think there is only way to use popup. Just click to play and popup media. But the reason is I don't know how to add java script in this part(red font) as below, can somebody help me out?

I put some php in article_info of article mod.

<?php

 

$result=mysql_query("Select sum(buy_points) from buy_points where customers_id=".$customer_id);

$row6=mysql_fetch_array($result);

 

$result=mysql_query("Select sum(articles_points) from articles_points where customers_id=".$customer_id);

$row7=mysql_fetch_array($result);

 

$articles_points = tep_db_query("select articles_id, articles_price from " . TABLE_ARTICLES . " where articles_id = '" . $articles_id. "'");

$articles_points_values = tep_db_fetch_array($articles_points);

 

if ($row6[0]-$row7[0]>=$articles_points_values['articles_price']) {

echo sprintf(TEXT_MORE_INFORMATION,tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($article_info_values['articles_url']), 'NONSSL', true, false)); //how to add java script then can click here to popup

} else {

echo "您的點數不足,無法開啟影音播放。";//You do't have enough points, can not play.

 

}

?>

I have spent many days to think about this. It doesn't work out. I really appreciate that if you can give me a hand. thanks a lot.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...