Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ckami35759

Archived
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Real Name
    Corey Kaminski

ckami35759's Achievements

  1. Sorry about that it seems as if it does work if I export using EP into the temp dir. http://www.XXXXXX.com/admin/easypopulate.p...amp;dltype=full Put if I have a txt file in the temp directory it is not showing that file so I can upload it? filename is notebookexport.txt and is TAB delimited.
  2. I love the updated Contribution and this is my first post so bear with me if I do something wrong. On EP Basic which I know is not supported here there was a drop down in order to pull in a file that was uploaded to the temp directory. I have tried to re-create in this contribution but can't seem to get it to work. What I did is commented out this: <?PHP //<INPUT TYPE="text" name="localfile" size="50"> //$the_array = Array(); //if (is_readable(EP_TEMP_DIRECTORY)) { // $handle = opendir(EP_TEMP_DIRECTORY); // while (false!== ($file = readdir($handle))) { // if ($file!= "." && $file!= ".." &&!is_dir($file)) { // $namearr = split('\.',$file); // if ($namearr[count($namearr)-1] == ((EP_EXCEL_SAFE_OUTPUT==true)?'csv':'txt')) $the_array[] = $file; // } // } // closedir($handle); //} // //$array_size = count($the_array); //if($array_size == 0){ // echo (' <INPUT TYPE="text" name="localfile" size="50">' . "\n"); //} else { // echo (' <select name="localfile" size="1">' . "\n"); // foreach ($the_array as $list){ // echo (' <option value="' . $list . '">' . $list . '</option>' . "\n"); // } // echo (' </select>' . "\n"); //} //?> And then replaced it with this code. As I do not have much of a clue on what exactly everything does I do not know where I went wrong. ?php $dir = dir(EP_TEMP_DIRECTORY); $contents = array(array('id' => '', 'text' => TEXT_SELECT_ONE)); while ($file = $dir->read()) { if ( ($file != '.') && ($file != 'CVS') && ($file != '..') ) { //$file_size = filesize(DIR_FS_CATALOG . $tempdir . $file); $contents[] = array('id' => $file, 'text' => $file); } } echo tep_draw_pull_down_menu('localfile', $contents, $localfile); ?> I am running the newest version: Easy Populate 2.76f-MS2 (with attributes) r1 Settings: EP vers: 2.76f-MS2 r1 Temp Dir: /home/wholesal/public_html/temp/ Temp Dir is Writable Magic Quotes is: off register_globals is: on Split files on: 300 records Model Num Size: 12 Price with tax: false Calc Precision: 2 Replace quotes: false Field seperator: comma Excel safe output: true Preserve tab/cr/lf: false Category depth: 7 Enable attributes: true SEF Froogle URLS: false More Pics: false Unknown Pics: false HTC: false SPPC: false Extra Fields: false Can someone please help me on this small project. Thanks
×
×
  • Create New...