I'm having a problem where the page featured in the code below fails to load.
I've ascertained that its something in the head section of the html - basically something to do with one of the smarty tags.
I can't narrow it down to any particular one - if I remove them one at a time, i still have the issue - if I remove them all the page loads no problem every time I try.
I've tried everything between the {stylesheet} and tag in both the metadata for the page, and directly in the template, with caching on and off - and the issues the same.
Any ideas suggestions or solutions out there??
Many thanks!
Code: Select all
{process_pagedata}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml">
<head>
{metadata}
<title>{sitename} - {title}</title>
{stylesheet}
{$feu_smarty->get_user_properties($customcontent_loggedin,'userprops')}
{literal}
<link href="/facebox/facebox.css" media="screen" rel="stylesheet" type="text/css"/>
<__script__ src="/facebox/facebox.js" type="text/javascript"></__script>
<__script__ type="text/javascript" src="/modules/FORMfields/src/FORMfields.js"></__script>
<__script__ type="text/javascript">
if($.cookie('album_info_done')){
//window.location = '/create-new-release/upload.html';
}
function restrict(){return false;}
var theBarcode;
var selectLN = {/literal}{is_this_product_in_cart product = $actionparams.product}{if $exists}true;{else}false;{/if}{literal}
var doneLabel = false;
function arm_form(){
if(ownLabelName){
$('#label').append('<option value="'+ownLabelName+'" selected="selected">'+ownLabelName+'</option>');
}
$("#release_date_start_calendar_link img").attr("width","128px");
$("#release_date_start_calendar_link img").attr("height","128px");
$("a[href*='http://www.formfields.com']").parent().hide();
$('#customer_id').val({/literal}'{$customcontent_loggedin}'{literal});
$('#audio_folder').val('');
$('#your_label_name').attr('readonly',true);
if(selectLN == true){
$('#label option[value="name-reg-label"]').attr('selected', 'selected');
$('#your_label_name').removeAttr('readonly');
$('#your_label_name').val('');
}
$('.quantity').parents('form').ajaxForm({success:updateCart,url:'/'});
$('#barcode_UPC').parent().append('<a href="javascript:void(0);" id="gen_upc" class="btn">Generate this for me (free)</a>');
$('#label').change(function(){//START LABEL CHANGE
if($(this).val() == 'name-reg-label'){
//alert('update cart +/- name label');
//alert('reg label');
$.cookie('name-reg-label','false');
$.cookie('name-own-label','false');
doCart(1,true);
//return false;
}else if($(this).val() == 'use-own-label'){
//alert('use own');
$.cookie('name-reg-label','false');
$.cookie('name-own-label','true');
$('#your_label_name').removeAttr('readonly').val('').focus();
doCart(0,true);
//return false;
}else{
//alert('use-ditto');
$.cookie('name-reg-label','false');
$.cookie('name-own-label','false');
doCart(0,false);
//return false;
}
$('.quantity').parents('form').submit();
//alert('tried to submit');
});//END LABEL CHANGE
$('#gen_upc').click(function(){
$(this).html('Generating please wait...');
$.ajax({url:'/create-new-release/generate-barcode.html',success:function(data){
$('#barcode_UPC').val(data.substr(2,13));
$('#gen_upc').hide();
}});
});
$('.ffForm form').ajaxForm({url:'/modules/FORMfields/forms/generated/album_details.php',beforeSubmit: preloader,
success:function(data){
$response = $(data);
$('.ffForm').html($response.filter('.ffForm').html());
$('.ffForm').show();
if($('.ffConfirmation').length != 0){
$.cookie('album_info_done', theBarcode, { path: '/'});
$('.ffConfirmation').html('Thanks for your submission, you\'ll now be taken to upload your tracks!');
$('.ffRedirectNote').hide();
$('#besure').hide();
$('#gototracks').effect("pulsate", { times:3 }, 1000);
//alert($('#gototracks a').attr("href")+'?r='+theBarcode);
$('#gototracks a').attr("href", $('#gototracks a').attr("href")+'?r='+theBarcode);
$('#loading').remove();
alert("Thanks for your submission, you'll now be taken to upload your tracks!");
window.location = '/create-new-release/upload.html';
}else{
$('#loading').remove();
arm_form();
}
}});
}
function preloader(){
if($('#barcode_UPC').length !=0){
theBarcode = $('#barcode_UPC').val();
}
$('.ffForm').hide();
$('.big_tab').append('<div id="loading" style="text-align:center;"><img src="/images/ajax-loader.gif" style="display:inline;align:center;"><br/><strong>Processing...please wait...don\'t touch your keyboard...</strong></div>');
}
function setFocus(){return false;}
function doCart(myval,allowlabel){
//alert('docart-'+myval);
if(allowlabel){
$('#your_label_name').removeAttr('readonly');
$('#your_label_name').val('').focus();
}else{
$('#your_label_name').val('Select the appropriate option above to use this.');
$('#your_label_name').attr('readonly',true);
}
var quantityBox = $('#name-lebel-form form .quantity');
quantityBox.val(myval);
$('#cart').html('updating your cart...');
}
function updateCart(){
$.ajax({url:'/index.php?page=view-cart',success:function(data){
$('#cart').html(data);
$('a[rel*=facebox]').facebox();
}});
}
var ownLabelName = '{/literal}{$userprops.your_label_name}{literal}';
$(document).ready(function() {
$.cookie('name-own-label',null,{ path: '/', expires: 10 });
$('#cart').html('Getting cart...')
$.ajax({url:'/index.php?page=view-cart',success:function(data){
$('#cart').html(data);
$('a[rel*=facebox]').facebox();
}});
$('a[rel*=facebox]').facebox();
$('.big_tab').load('/modules/FORMfields/forms/generated/album_details.php .ffForm', function(){
arm_form();
}
);
});
</__script>
<style>
.FORMfields{background-color:#D9D2D2;}
select{background-color:#fff!important;display:inline!important;}
#release_date_start_calendar_link img{width:128px;height:128px;}
.display a img{width:200px;height:200px;}
</style>
{/literal}
</head>
</__body>
<!--Wrapper-->
<div id="wrapper">
<div class="round_big_top">
<ul>
<li><a href="javascript:void(0);"class="active">RELEASE INFO</a><span>//</span></li>
<li><a href="javascript:void(0);" >UPLOAD CONTENT</a><span>//</span></li>
<li><a href="javascript:void(0);">TRACK INFO</a><span>//</span></li>
<li><a href="javascript:void(0);">RETAILERS</a><span>//</span></li>
<li><a href="javascript:void(0);">PAY</a></li>
</ul>
</div>
<div id="country-picker">
<div id="set_us"></div> <div id="set_uk"></div>
<p>Select your currency:</p>
</div>
<!--Full round -->
<div class="fullround_box">
<!--Full round Nav-->
<div class="fullround_box_nav" id="floatMenu">
{global_content name='sub_menu'}
<div class="right" id="cart">{*Cart action='mycart'*}</div>
<!--End Full round Nav-->
</div>
<!--Full round box container-->
<div class="fullround_box_container" style="padding-top:40px;">
<div class="left" style="width:500px;">
<h3 class="margin_none">Your Release Info</h3>
{content}
</div>
<div class="right btn" id="gototracks">
<a href="/create-new-release/upload.html"><img src="images/arrow.png" alt="arrow" class="left" /> <h3>UPLOAD TRACKS</h3></a>
</div>
<div class="clear"></div><BR/>
<div class="big_tab" style="text-align:center;">
<img src="/images/ajax-loader.gif">
</div>
<div class="clear"></div><br/>
<div style="text-align:center" id="besure">Once you submit this data, it cannot be amended!</div>
<div class="clear"></div>
<br/>
<!--End Full round box container-->
</div>
<!--End Full round-->
</div>
<!--End Wrapper-->
</div>
<div id="name-lebel-form" style="display:none;">
{Products action='details' productid='21'}
</div>
<__body>
</__html>