Jump to content

[SOLVED] pull problem


ccrevcypsys

Recommended Posts

this doesnt seem to be working for me. I dont understand why:

 

there are no errors it just doesnt display anything.

Even on the source it doesnt display the div right after session_true

 

here is the php code

$artist_console->assign("TITLE_CURRENT_MUSIC",$lang['front']['customerConsole']['current_music']);

$artist_console->assign("LANG_PRODUCT",$lang['front']['viewOrder']['product']);
$artist_console->assign("LANG_PRODUCT_CODE",$lang['front']['viewOrder']['product_code']);
$artist_console->assign("LANG_QUANTITY",$lang['front']['viewOrder']['quantity']);
$artist_console->assign("LANG_PRICE",$lang['front']['viewOrder']['price']);

$products = $db->select("SELECT *,".$glob['dbprefix']."StreamRush_inventory.type as type FROM ".$glob['dbprefix']."StreamRush_order_inv LEFT JOIN ".$glob['dbprefix']."StreamRush_order_sum on ".$glob['dbprefix']."StreamRush_order_inv.cart_order_id=".$glob['dbprefix']."StreamRush_order_sum.cart_order_id LEFT JOIN ".$glob['dbprefix']."StreamRush_inventory on ".$glob['dbprefix']."StreamRush_inventory.productId=".$glob['dbprefix']."StreamRush_order_inv.productId LEFT JOIN ".$glob['dbprefix']."StreamRush_customer on ".$glob['dbprefix']."StreamRush_customer.customer_id=".$glob['dbprefix']."StreamRush_inventory.customer_id WHERE deleted = 0 AND ".$glob['dbprefix']."StreamRush_order_sum.customer_id=".$ccUserData[0]['customer_id']);
if($products == TRUE){
for($i=0;$i<count($products); $i++){
	if($products[$i]['digital']==1 && ($products[$i]['status']>=2 && $products[$i]['status']<=3) ){
		// get digital info 
		$query = "SELECT * FROM ".$glob['dbprefix']."StreamRush_Downloads INNER JOIN ".$glob['dbprefix']."StreamRush_inventory ON ".$glob['dbprefix']."StreamRush_Downloads.productId =  ".$glob['dbprefix']."StreamRush_inventory.productId WHERE cart_order_id = ".$db->mySQLSafe($products[$i]['cart_order_id'])." AND ".$glob['dbprefix']."StreamRush_Downloads.productId = ".$db->mySQLSafe($products[$i]['productId']);

		$download = $db->select($query);
		$artist_console->assign("VAL_DOWNLOAD_LINK",$glob['songURL']."/download.php?pid=".$download[0]['productId']."&oid=".base64_encode($products[$i]['cart_order_id'])."&ak=".$download[0]['accessKey']);
		$artist_console->assign("LANG_DOWNLOAD_LINK",$lang['front']['viewOrder']['download_here']);
		$artist_console->parse("artist_console.session_true.order_true.repeat_products.digital_link");

	}


	if(file_exists($GLOBALS['rootDir']."/images/uploads/thumbs/thumb_".$products[$i]['image'])){

	        $artist_console->assign("SRC_PROD_THUMB",$glob['songURL']."/images/uploads/thumbs/thumb_".$products[$i]['image']);
	} else {
	        $artist_console->assign("SRC_PROD_THUMB",$glob['songURL']."/skins/".$config['skinDir']."/styleImages/thumb_nophoto.gif");
	}

	if($i%2==0)	
	$artist_console->assign("TD_CLASS","class='tdEven'");
	else
	$artist_console->assign("TD_CLASS","class='tdOdd'");

	$artist_console->assign("PRODUCT_ID",$products[$i]['productId']);
	$artist_console->assign("VAL_PRODUCT",$products[$i]['name']);
	$artist_console->assign("VAL_PRODUCT_OPTS",$products[$i]['product_options']);
	$artist_console->assign("VAL_IND_QUANTITY",$products[$i]['quantity']);
	$artist_console->assign("TXT_ALBUM_NAME",$products[$i]['albumName']);
	$artist_console->assign("VAL_IND_PROD_CODE",$products[$i]['productCode']);
	$randnum=rand(100,999);
	if($products[$i]['type']=='Song')
		$artist_console->assign("TXT_DIGITAL_SAMPLE","<p id='player".$products[$i]['productId']."'><a href='http://www.macromedia.com/go/getflashplayer'>Get the Flash Player</a> to see this player.</p><script type='text/javascript'>     var s".$products[$i]['productId']." = new SWFObject('player/flvplayer.swf?.$randnum','single','17','20','7');\n      s".$products[$i]['productId'].".addVariable('file','".$products[$i]['digital_sample']."');   \n s".$products[$i]['productId'].".addVariable('image','preview.jpg');\n     s".$products[$i]['productId'].".write('player".$products[$i]['productId']."');\n</script>");
	else
		$artist_console->assign("TXT_DIGITAL_SAMPLE","<p id='player".$products[$i]['productId']."'><a href='http://www.macromedia.com/go/getflashplayer'>Get the Flash Player</a> to see this player.</p><script type='text/javascript'>     var s1 = new SWFObject('player/flvplayer.swf?.$randnum','playlist','100','50','7');      s1.addVariable('file','playlist.php?prodid=".$products[$i]['productId']."');   s1.addVariable('displayheight','0'); s1.addVariable('width','100');  s1.addVariable('backcolor','0x000000'); s1.addVariable('frontcolor','0xCCCCCC');       s1.addVariable('lightcolor','0x557722'); s1.write('player".$products[$i]['productId']."');</script>");


	$artist_console->assign("VAL_IND_PRICE",priceFormat($products[$i]['price']));
	$artist_console->assign("TXT_ARTIST",validHTML($products[$i]['firstName']." ".$products[$i]['lastName']));
	$artist_console->assign("VAL_PRODUCT_CODE",validHTML($products[$i]['productCode']));
	$artist_console->parse("artist_console.session_true.order_true.repeat_products");
}

$artist_console->parse("artist_console.session_true.order_true");

} else {
$artist_console->assign("LANG_NO_ORDERS",$lang['front']['viewOrder']['order_not_found']);
$artist_console->parse("artist_console.session_true.order_false");

}

here is the html code

<span class="customerconsolecontent">
<!-- BEGIN: session_true -->
<div>	
	<!-- BEGIN: order_true -->
 <table cellpadding=0 cellspacing=1 width='100%' bgcolor='#c8c8c8'>
                 <tr class="songTitle"><td> </td><td>Artist</td><td>Song</td><td>Price</td><td>Album</td><td>Play</td><td>Download</td><td>Item Code</td>
		 </tr>

 <!-- BEGIN: repeat_products -->
 <tr><td {TD_CLASS} style="padding-left:0px;"><img src="{SRC_PROD_THUMB}" alt="{VAL_PRODUCT}" border="0" width='30' height='30' title="{VAL_PRODUCT}" /></td>
 <td {TD_CLASS}>{TXT_ARTIST}</td>
 <td {TD_CLASS}><a href="index.php?act=viewProd&productId={PRODUCT_ID}" class="txtDefault">{VAL_PRODUCT}</a></td><td {TD_CLASS}>{TXT_PRICE} <span class="txtSale">{VAL_IND_PRICE}</span></td>
 <td {TD_CLASS}>{TXT_ALBUM_NAME}</td>
 <td {TD_CLASS}>{TXT_DIGITAL_SAMPLE}</td>
<td {TD_CLASS}>
<!-- BEGIN: digital_link -->
[<a href="{VAL_DOWNLOAD_LINK}" class="txtDefault">{LANG_DOWNLOAD_LINK}</a>]
<!-- END: digital_link -->
</td>
<td {TD_CLASS}>{VAL_PRODUCT_CODE}</td>
</tr>

  <!-- END: repeat_products -->
</table>

	<!-- END: order_true -->

	<!-- BEGIN: order_false -->
	<p>{LANG_NO_ORDERS}</p>
	<!-- END: order_false -->
</div>
<!-- END: session_true -->

<!-- BEGIN: session_false -->
<p>{LANG_LOGIN_REQUIRED}</p>
<!-- END: session_false -->

</span>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.