Maynard Posted November 30, 2006 Share Posted November 30, 2006 The Download File Checker contribution This provides a button to press that will tell you whether the Filename you've just typed in for a download is for a file that actually exists. What the button looks like: When the file exists: When the file doesn't exist: Simple, but useful. Support is offered here... Enjoy. Quote I'm Maynard, and I'm happily running, maintaining, tweaking osC on Maynard's Groovy Bible Tunes (google it!) Link to comment Share on other sites More sharing options...
thomasjones2002 Posted June 29, 2007 Share Posted June 29, 2007 (edited) I tried installing this but no success all I get when I click the Products Attributes is a blank page is there a tut on installing this I did read the readme.txt I copied the "downloadfile_check.php" into the catalog/admin/includes/ this is where I think I went wrong after each occurrence (there are two) of: <td class="smallText"><?php echo, tep_draw_input_field('products_attributes_filename', $products_attributes_filename, 'size="15"); ?> </td> not for sure what that means I added it to the bottom but don't think that is where it goes can anyone tell me where to put this: <!-- Download File Checker --> <script type="text/javascript"> <!-- function downloadCheckFile() { // checks to see if the download file exists // get the value from the form input field var fileName = document.attributes.products_attributes_filename.value; // get the iFrame var iFr = document.getElementById('downloadCheckFileFrame'); // load the file check into the iFrame iFr.src = "includes/downloadfile_check.php?f=" + encodeURIComponent(fileName); } // --> </script> <td class="smallText"><input type="button" value="??" onClick='downloadCheckFile()'><iframe height="1" width="1" id='downloadCheckFileFrame' style='border:0'></iframe></td> <!-- eof Download File Checker --> Thanks Edited June 29, 2007 by thomasjones2002 Quote Link to comment Share on other sites More sharing options...
thomasjones2002 Posted June 29, 2007 Share Posted June 29, 2007 (edited) is there anyone that can help it is showing an error that my files are not uploaded and I know they are ? Edited June 29, 2007 by thomasjones2002 Quote Link to comment Share on other sites More sharing options...
Maynard Posted December 8, 2007 Author Share Posted December 8, 2007 I tried installing this but no success all I get when I click the Products Attributes is a blank page is there a tut on installing this I did read the readme.txt I copied the "downloadfile_check.php" into the catalog/admin/includes/ this is where I think I went wrong after each occurrence (there are two) of: <td class="smallText"><?php echo, tep_draw_input_field('products_attributes_filename', $products_attributes_filename, 'size="15"); ?> </td> not for sure what that means I added it to the bottom but don't think that is where it goes can anyone tell me where to put this: <!-- Download File Checker --> <script type="text/javascript"> <!-- function downloadCheckFile() { // checks to see if the download file exists // get the value from the form input field var fileName = document.attributes.products_attributes_filename.value; // get the iFrame var iFr = document.getElementById('downloadCheckFileFrame'); // load the file check into the iFrame iFr.src = "includes/downloadfile_check.php?f=" + encodeURIComponent(fileName); } // --> </script> <td class="smallText"><input type="button" value="??" onClick='downloadCheckFile()'><iframe height="1" width="1" id='downloadCheckFileFrame' style='border:0'></iframe></td> <!-- eof Download File Checker --> Thanks 1st - I'm very sorry for this late reply! 2nd - You need a little experience with editing php files to use this mod. The idea is that you look in the file catalog/admin/products_attributes.php with an editor, and where you see the code that's described, after that you add in the code I've provided. I use Aptana Studio, that's a good editor. Or HTML-kit. Google them and see what you get. Hope that's some help. BTW - always back up files and your database before making changes!!! Quote I'm Maynard, and I'm happily running, maintaining, tweaking osC on Maynard's Groovy Bible Tunes (google it!) Link to comment Share on other sites More sharing options...
Maynard Posted December 15, 2008 Author Share Posted December 15, 2008 This contribution has been updated to DOWNLOAD FILE HELPER - see contrib: http://addons.oscommerce.com/info/6410 forum: http://www.oscommerce.com/forums/index.php?sho...=323568&hl= Quote I'm Maynard, and I'm happily running, maintaining, tweaking osC on Maynard's Groovy Bible Tunes (google it!) Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.