WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • template local visble
  • Print
Pages: [1]   Go Down

Author Topic: template local visble  (Read 3948 times)

Offline smitty

  • Posts: 20
template local visble
« on: October 05, 2009, 05:02:55 PM »
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>
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: template local visble
« Reply #1 on: October 05, 2009, 05:13:15 PM »
Hello.

I don't know at the first glance, but what is this line?
Code: [Select]
<?xml-stylesheet type="text/css" href="file:///D|/eric/fields/style.css"?>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




Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

LordDarkman

  • Guest
Re: template local visble
« Reply #2 on: October 05, 2009, 05:23:52 PM »
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: [Select]
<!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>
Logged

Offline smitty

  • Posts: 20
Re: template local visble
« Reply #3 on: October 06, 2009, 08:46:45 AM »
The problem is solved. There was something wrong in the css
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • template local visble
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2