WebsiteBaker Support (2.8.x) > Templates, Menus & Design

template local visble

(1/1)

smitty:
Hi,
I have adjust a html template to use with WebsiteBaker. But unfornately is doesn't work on the web.
I tried it on my local server with Wamp and it works fine. I have installed it on my website and .... nothing
What have I done wrong??

<?xml version="1.0" encoding="iso-8859-2"?>
<?xml-stylesheet type="text/css" href="file:///D|/eric/fields/style.css"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">   
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-2" />
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR;?>/style.css" media="    "/>

<title>SmitsSound- Drive-in disco voor al uw feesten</title>
</head>
<body>
<div class="container">
  <div id="header"></div>
    <div class="content">
<!-- define your title (links allowed) -->
      <div id="title"><a href="#nogo"><em></a></div>
<!-- end of title section -->
<!-- In this place you can define your menu (up to 5 positions in standard css config) -->
      <div class="menu">
        <ul>
         <?php show_menu(1,0,1,true,'<li>[a][menu_title][/a]</li>','','','','','class="on"'); ?>
        </ul>
      </div>
<!-- end of menu definition -->
<!-- text content section  -->
    <div id="text">
      <h4><?php echo PAGE_TITLE; ?></h4>
     <?php page_content(1);?>
     
    </div>
<!-- end of text cotent section -->
<!-- define your own gallery (picture size 65px x 65px) -->
      <div id="gallery"><ul> <?php ob_start();     // start output buffer
            show_menu(1,1,-1,true,'<li>[a][menu_title][/a]</li>','','','','','');    // call menu
            $foo=ob_get_contents();    // put outputbuffer in $foo
            ob_end_clean();             // clear outputbuffer
            if ($foo<>"") {  // some code to execute cause there is some block
              echo '<div>';
              echo '<h3 title="Sidebar">Menu</h3>';
              echo '<p>';
              echo $foo;
              echo '</p>';
              echo '</div>';                              // show the block (as saved in $foo)
              } else { // some code for no info
            }
            ?></ul>
       
    </div>
<!-- end of gallery section -->
    </div>
</div>
<!-- footer section (please leave at least partial author tag) -->
<div id="footer">Ontwerp door: <a href="http://www.smitty.nl" target="_blank">Jos Smits</a></div>
<!-- end of footer section -->
</body>
</html>

Stefek:
Hello.

I don't know at the first glance, but what is this line?

--- Code: ---<?xml-stylesheet type="text/css" href="file:///D|/eric/fields/style.css"?>
--- End code ---
It's hardcoded and points to your harddrive.

P.S.
Please use this button for code.
You will get [ code] [ /code] and place your code in between. Thanks.

Kind Regards,
Stefek




LordDarkman:
I rewrote your code a littloe bit. Please test it and if it's not work delete everything inside callery div and test again.


--- Code: ---<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>

<title><?php page_title(); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined(&#39;DEFAULT_CHARSET&#39;)) { echo DEFAULT_CHARSET; } else { echo &#39;utf-8&#39;; }?>" />
<meta name="description" content="<?php page_description(); ?>" />
<meta name="keywords" content="<?php page_keywords(); ?>" />
<meta name="COPYRIGHT" content="Copyright <?php echo date("Y"), &#39; &#39;.WEBSITE_TITLE; ?>. All rights reserved. (<?php echo WB_URL; ?>)" />
<meta name="RESOURCE-TYPE" content="DOCUMENT" />
<meta name="DISTRIBUTION" content="GLOBAL" />
<meta name="AUTHOR" content="<?php echo WEBSITE_TITLE; ?>" />
<meta name="RATING" content="GENERAL" />
<meta name="REVISIT-AFTER" content="1 DAYS" />
<meta name="ROBOTS" content="INDEX, FOLLOW" />
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR;?>/style.css" media="   "/>


</head>

<body>
<div class="container">
  <div id="header"></div>
    <div class="content">
      <div id="title"></div>
      <div class="menu">
        <ul>
         <?php show_menu(1,0,1,true,&#39;<li>[a][menu_title][/a]</li>&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;class="on"&#39;); ?>
        </ul>
      </div>
      <div id="text">
        <h4><?php echo PAGE_TITLE; ?></h4>
        <?php page_content(1);?>
      </div>
      <div id="gallery">
      <ul>
       <?php ob_start();
        show_menu(1,1,-1,true,&#39;<li>[a][menu_title][/a]</li>&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;);    // call menu
         $foo=ob_get_contents();    // put outputbuffer in $foo
         ob_end_clean();             // clear outputbuffer
         if ($foo<>"") {  // some code to execute cause there is some block
           echo "<div>";
           echo "<h3 title=\"Sidebar\">Menu</h3>"; 
           echo "<p>";
           echo $foo; 
           echo "</p>";
           echo "</div>";                              // show the block (as saved in $foo)
           } 
        ?>
      </ul>
      </div>
    </div>
</div>
<div id="footer">Ontwerp door: <a href="http://www.smitty.nl" target="_blank">Jos Smits</a></div>

</body>
</html>
--- End code ---

smitty:
The problem is solved. There was something wrong in the css

Navigation

[0] Message Index

Go to full version