Archive for myfreeforum.org Before posting please check the "stickies" in the support forums.
Please ask questions in real English and not "txt". You will get a better response.
Please do not ask support questions via PMs.
 


       myfreeforum.org Forum Index -> Web page/template Editing
lsg2007

template debug error

PLEASE ENTER THE FOLLOWING>>>>


Enter your myff forum url here, if the issue is on a particular part of the forum, then give a link to where the problem actually is. Do not enter your own domain name it must be the actual myff link :


If you are asking a template related question, what is the name of the template:


Please indicate keywords you have searched on:debug errors,webpage errors


Now ask your question in clear English without "txt" speak>>>>ok guys next problem,ive got myself a wysiwyg builder and ive put a site together,i exported it to html and copied the coding into the webpage editor in my admin panel.I saved it all ok and then hit the preview button on the edit webpage page and i get this debug error

General Error




Could not read template information.

DEBUG MODE

SELECT original,macros FROM phpbb1586_web_templates WHERE template='lees1'

Line : 252
File : viewpage.php


every template ive tryed to preview after ive saved it keeps showing this error code.im now getting to the point of jumping up and down on my laptop.

any ideas????
myff admin

It sounds like no template of that name is installed.

Have you tried reinstall?

I am not very clear what you have done.
lsg2007

debug error

sorry i will try to make it a little easier to understand what i have done

ive used a little html editor program too make a basic tamplate.


i clicked on the html source tab and copied the html code


this is the code i copied

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>HOME1</title>
<meta name="GENERATOR" content="MSHTML 8.00.6001.23111">
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<style>
a.navwhite:link { text-decoration: none; color: #ffffff; font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: bold; }
a.navwhite:visited { text-decoration: none; color: #ffffff; font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: bold; }
a.navwhite:hover { text-decoration: underline; color: #ffffff; font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: bold; }
a.navblack:link { text-decoration: none; color: #000000; font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: bold; }
a.navblack:visited { text-decoration: none; color: #000000; font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: bold; }
a.navblack:hover { text-decoration: underline; color: #000000; font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: bold; }
</style>

<style>
<!--
h1 { font-family: Arial, sans-serif; font-size: 30px; color: #004080;}
h2 { font-family: Arial, sans-serif; font-size: 18px; color: #004080;}

body,p,b,i,em,dt,dd,dl,sl,caption,th,td,tr,u,blink,select,option,form,div,li { font-family: Arial, sans-serif; font-size: 12px; }

/* IE Specific */
body, textarea {
  scrollbar-3dlight-color: #808080;
  scrollbar-highlight-color: #808080;
  scrollbar-face-color: #004080;
  scrollbar-shadow-color: #808080;
  scrollbar-darkshadow-color: #805B32;
  scrollbar-arrow-color: #000000;
  scrollbar-track-color: #F8EFE2;
}
/* END IE Specific */
-->
</style>


</head>
<body bgcolor="#ffffff">
<p>
<table border="0" cellspacing="1" cellpadding="3" width="780" bgcolor="#004080"
align=center>
  <tbody>
  <tr>
    <td>
      <h1 align="center"><br><font color="#ffffff">HOME1</font></h1>
      <p>&nbsp;</p></td></tr>
  <tr>
    <td bgcolor="#c0c0c0">
      <p align="center">&nbsp; <a class="navblack" href="changethis.htm">Link to
      Page 1</a>&nbsp; |&nbsp; <a class="navblack" href="changethis.htm">Link to
      Page 2&nbsp;</a>&nbsp; |&nbsp; <a class="navblack"
      href="changethis.htm">Link to Page 3</a>&nbsp; |&nbsp; <a class="navblack"
      href="changethis.htm">Link to Page 4</a></p></td></tr>
  <tr>
    <td bgcolor="#ffffff">
      <p align="center">&nbsp;</p>
      <h2 align="left">Heading 2</h2>
      <p align="left">Text</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p></td></tr>
  <tr>
    <td></td></tr></tbody></table></ P></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p align="center"><font size="1">This Web Page Created with PageBreeze </font><a
href="http://www.pagebreeze.com" target=_blank><font size="1">Free HTML
Editor</font></a></p></body></html>


i then pasted the code into the webpage editor,and clicked on the save page button.


i then clicked on the preview button on the webpage editor and as you can see,you can see the template in the window.


then i clicked on the preview button on this page


and this is the error code that comes up



sorry for all the screen shots but it makes life alot easier to understand what im doing wrong
myff admin

I'd ask you want makes the code you are entering a template?

A template is html that follows a special format so that the system sees it as a template.

You can see that format is the web page template editor. So for example an valid index.html for a template is:

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><title>{PAGE_TITLE}</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="" />
<link rel="stylesheet" type="text/css" href="{WEBTEMPLATEPATH}/seacities.css" title="seacities" media="screen" />
</head>
<body>

<div class="header"><h1>{SITENAME}</h1></div>
<div class="spacer">&nbsp;</div>
<div class="montage">&nbsp;</div>
<div class="spacer">&nbsp;</div>
<div class="wrapper">
<div class="content">
{MYFF.COMPONENT}
</div><!-- end of content -->
</div><!-- end of wrapper -->

<div class="nav">
{MYFF.NAVBARLIST}
<img src="{WEBTEMPLATEPATH}/nimitz_sm.jpg" title="this could be a link" alt="thumbnail of USS Nimitz" />

</div><!-- end of nav -->
<div class="rt_col">
<ul>
<li><img src="{WEBTEMPLATEPATH}/ssn725_1x1.jpg" title="this could be a link" alt="submarine graphic" /></li>
<li><img src="{WEBTEMPLATEPATH}/ssn725_2x1.jpg" title="this could be a link" alt="submarine graphic" /></li>
<li><img src="{WEBTEMPLATEPATH}/sn725_3x1.jpg" title="this could be a link" alt="submarine graphic" /></li>
<li><p>Photos courtesy of US Navy Archives - in the public domain</p></li>
</ul>

</div><!-- end of rt_col -->

<div class="spacer">&nbsp;</div>
<div class="footer"><p>&copy; 2006 <a href="mailto:pilot@flyslikeabird.com?subject=Web%20Design" title="send email message">Metal Tiger Design</a> | <a href="http://validator.w3.org/check?uri=referer">XHTML</a> &amp; <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> validated | <!-- <a href="http://getfirefox.com/" title="Get Firefox - The Browser, Reloaded."><img src="http://www.mozilla.org/products/firefox/buttons/firefox_80x15.png" alt="Get Firefox" border="0" height="15" width="80" /></a> --></p>
</div><!-- end of footer -->

</body></html>


Note the macros like {WEBTEMPLATEPATH} and {MYFF.COMPONENT}.

A template normally has 3 files, an index.html file a css file and an .xml file describing the template. This is the format that can be imported and used.
lsg2007

i understand

many thanks i understand what you are saying to me.and i can see what im doing wrong i was trying to import the html file alone

       myfreeforum.org Forum Index -> Web page/template Editing
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum