mortal Posted February 26, 2006 Share Posted February 26, 2006 Hi all. im trying to make the storelogo selection from admin more friendly, as it is from the contribution you can only write the filename in a textfield, and i would like to make it browsable/uploadable as it is now in the code below i have only made it possible to choose the files located in a specific folder via dropdown. could someone please help ? function tep_cfg_pull_down_installed_logos($logo_name) { if ($root=@opendir(DIR_FS_DOCUMENT_ROOT.'images/logos')){ while ($file=readdir($root)){ if($file=="." || $file==".." || is_dir($dir."/".$file)) continue; $files[]= array('id' => $file, 'text' => $file); } } return tep_draw_pull_down_menu('configuration_value', $files, $logo_name); // return tep_draw_file_field('configuration_value', $files, $logo_name); } Quote 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.
Note: Your post will require moderator approval before it will be visible.