Quote:
Originally Posted by ejbreeze
Reverting back to the default style shows the upload box. Using my purchased custom style it won't show. Any ideas? Everything else seems to work good. Thanks.
|
In this case, seems that your customized style uses javascript which conflists with the upload box. What I mean. In the upload box there is a javasctipt script which checks the file extension of the file that you're trying to upload in client-side (before send it to server). Most probably this is the issue. To correct it you need to edit the template: ratemyphoto_addedit_photo
Find:
Code:
<input type="file" name="logo" id="logo" onblur="return CheckImageExt(this)" size="25">
Replace it with:
Code:
<input type="file" name="logo" id="logo" size="25">
On the same template (at the top) you must remove all the code below:
Code:
<script type="text/javascript">
function CheckImageExt(fld)
{
if (fld.value != '')
{
var image_ext = getFileExtension(fld.value);
var valid_images = new Array("jpg","jpeg","gif","png","JPG","JPEG","GIF","PNG");
if (valid_images.indexOf(image_ext) > -1)
{
return true;
}
else
{
alert('You can upload only .gif, .jpg, .jpeg, .png files.');
fld.value = '';
fld.select();
fld.focus();
return false;
}
}
else
{
return true;
}
}
</script>
<script type="text/javascript">
function getFileExtension(filename)
{
return filename.split('.').pop();
}
</script>
Christos