Jump to content

the bookworm

  • Content count

  • Joined

  • Last visited

Profile Information

  • Real Name
    Ian Wilson
  1. the bookworm

    [contribution] Simple Template System (sts)

    Things like this are usually a CSS problem which effects different versions of internet explorer in different ways the best and often most reliable solution is to use internet explorers conditional includes, to specify CSS overrides to solve the problems with each of the different versions eg <link rel="stylesheet" type="text/css" href=stylesheet.css"> <!--[if IE 5]> <link rel="stylesheet" type="text/css" href="stylesheet_ie5.css"> <!--[if IE 6]> <link rel="stylesheet" type="text/css" href="stylesheet_ie6.css"> <![endif]--> <![endif]--> <!--[if IE 7]> <link rel="stylesheet" type="text/css" href="stylesheet_ie7.css"> <!--[if IE 8]> <link rel="stylesheet" type="text/css" href="stylesheet_ie8.css"> <![endif]--> if you use this method you will need a blank CSS for each of the override files then just modify to effected style rules so the page looks consistent across the browsers For more info see the msdn article on conditional comments
  2. the bookworm

    Dynamic SiteMap

    For people that are having problems with this Dynamic Site Map and STS Templates when generating the xml sitemaps you need to modify the code of create_xml_sitemaps.php as follows just of the body tag about line 50 add <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> then just after <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> about line 54 add <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> then just above the close body tag about line 327 add CODE which then fixes both the blank output and the placeholder variables problems
  3. the bookworm

    Dynamic SiteMap

    a quick little bug fix, to the orphaned li tag (which shows as an extra bullet point) at the bottom of the pages list on the sitemap, if you have chosen to exclude all info boxes from the sitemap list in dynamic_sitemap.php about line 273 change the box files section from // Box Files for ($b = 0; $b < count($boxHeading); ++$B) { echo '<li>'.$boxHeading[$b]['heading'][$b]; $nb_elements = count($boxHeading[$b]['filename']); if($nb_elements > 0) { if (tep_not_null($boxHeading[$b]['filename'][0])) { echo '<ul>'; for ($f = 0; $f < $nb_elements ; ++$f) if (tep_not_null($boxHeading[$b]['filename'][$f])) echo '<li><a title="'. $boxHeading[$b]['boxtext'][$f] .'" href="' . tep_href_link($boxHeading[$b]['filename'][$f]) . '">' . $boxHeading[$b]['boxtext'][$f] . '</a></li>'; echo '</ul>'; } } echo '</li>'; } to // Box Files for ($b = 0; $b < count($files['name']); ++$B) { echo '<li><a title="'. $files['name'][$b] .'" href="' . tep_href_link($files['path'][$b]) . '">' . $files['name'][$b] . '</a></li>'; } // Box Files for ($b = 0; $b < count($boxHeading); ++$B) { $nb_elements = count($boxHeading[$b]['filename']); if($nb_elements > 0) { echo '<li>'.$boxHeading[$b]['heading'][$b]; if (tep_not_null($boxHeading[$b]['filename'][0])) { echo '<ul>'; for ($f = 0; $f < $nb_elements ; ++$f) if (tep_not_null($boxHeading[$b]['filename'][$f])) echo '<li><a title="'. $boxHeading[$b]['boxtext'][$f] .'" href="' . tep_href_link($boxHeading[$b]['filename'][$f]) . '">' . $boxHeading[$b]['boxtext'][$f] . '</a></li>'; echo '</ul>'; } echo '</li>'; } }