Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cally

Archived
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Real Name
    ben

cally's Achievements

  1. so if you want the style menu edit the 'Template folder' in admin like this 'full;test' now you can change the template folder with index.php?sts_template=0 (folder = full - also default) index.php?sts_template=1 (folder = test ) or make a style array for your template *g* simple add to sts_user_code.php: $stylearray = array ( array ( 'id' => '0', 'text' => 'OSC-Design'), array ( 'id' => '1', 'text' => 'Test-Design') ); $sts->template['stylemenu'] = tep_draw_form('changestyle', FILENAME_DEFAULT, 'get', '') . tep_draw_pull_down_menu('sts_template', $stylearray, '0', 'onChange="this.form.submit();"') . '</form>'; now add $stylemenu to your template.html file there 'was' a little typo in sts.php class on line 87 :/ just change to $this->template_folder = $template_folder_installed[$sts_template_folder]; or replace with the new once
  2. same problems here with a blank page (updating from sts v3) on php.net i found a nice example... <?php for ($i=0; $i<10; $i++) { ob_start(); echo "This is iteration $i: <br/>"; // * Don't do this! // $buf = ob_get_contents(); // ob_clean(); // * Use this instead: $buf = ob_get_clean(); echo $buf; echo memory_get_usage()."\n"; } ?> so i change some code in class 'sts.php' ( function start_capture and stop_capture ). now i also got some unwanted html code ( on top ) in my source - 'result' ... its the code right after <?php require(DIR_WS_INCLUDES . 'header.php'); ?> till <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> and also the capture between <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> and <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> looking like this <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="125" valign="top"><table border="0" width="125" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> so i add one line in column_left.php and footer.php before the 'include'. ( see update.txt ) i also need to include the 'clean_html_comments.php' to the headertags.php-module next problem: if you have different styles, you also want different buttons depending on language?! i uploaded the new sts.php class, the sts_default.php module, the headertags.php module and an instruction for the style-depending-buttons addon ;) download at contributions page sorry for this bad english happy easter *fg*
×
×
  • Create New...