Jump to content
Latest News: (loading..)

star3am

Members
  • Content count

    34
  • Joined

  • Last visited

About star3am

  • Birthday 03/14/1980

Profile Information

  1. [Contribution] STS v4

    Hi to everyone, sorry if this question has been answered already, please point me in the right direction :thumbsup: I am trying to get a list of folders in DIR_FS_CATALOG . MODULE_STS_TEMPLATES_FOLDER . MODULE_STS_TEMPLATE_FOLDER and display it instead of the database value of the current template folder, I need some help, I think it will be great if it can be added to the existing contribution, as I think many people will find it useful so far I have //// // Construct a drop down list of templates (MODULE_STS_TEMPLATE_FOLDER) in folder (MODULE_STS_TEMPLATES_FOLDER) function get_sts_templates() { $basedir = DIR_FS_CATALOG . MODULE_STS_TEMPLATES_FOLDER . MODULE_STS_TEMPLATE_FOLDER; $ret_str = '<select>'; if ($handle = opendir( $basedir )) { while (false !== ($file = readdir($handle))) { if ( $file != "." && $file != ".." && is_dir( "$basedir/$file" ) ) { $ret_str .= "<option>$file</option>\n"; } } closedir($handle); } $ret_str .= '</select>'; return $ret_str; } Can anyone tell me how i can accomplish this? and possibly help me? Many thanks, you guys rock! Riaan
  2. [contribution] Simple Template System (sts)

    Sorry :-" moved my question to STS Version 4.xx thread
×