Topic: a wrong message after modified main.tpl

hi there, I hv tried to insert my website logo (a gif image) in the main.tpl. I insert the html code into the main.tpl by using dreamweaver MX. After I do it the image have been inserted. But when I click to the "registration" page or "post topic" page, there is a strage code appears just below my logo. The strange code is "onLoad="document.getElementById('post').req_subject.focus()". I hv no idea what it is and how to delete it. Any anyone help me? Thanks a lot!!

Re: a wrong message after modified main.tpl

This has happened before. Dreamweaver does something strange to the file. Could you perhaps show us the modified main.tpl?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: a wrong message after modified main.tpl

yes, the modified main.tpl is as follows:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<pun_head>
<style type="text/css">
<!--
body {
    background-color: #FF6600; margin-left:0; margin-top:0;
}
-->
</style></head>
<img src="../../../date/images/index.gif">
<pun_body>

<table class="punmain" cellspacing="1" cellpadding="4">
    <tr class="punhead">
        <td class="punhead">
            <span class="puntitle"><pun_title></span><br>
            <pun_desc>
        </td>
    </tr>
    <tr>
        <td class="puncon1">
            <pun_navlinks><br><br>
            <pun_status>
        </td>
    </tr>
</table>

<pun_announcement>

<pun_main>

<pun_footer>

</body>
</html>

Anything wrong??

Re: a wrong message after modified main.tpl

try moving the img stuff after <pun_body>

Re: a wrong message after modified main.tpl

mmm...img stuff after <pun_body>?? do u mean the blank line just after <pun_body>??

Re: a wrong message after modified main.tpl

ooo...u mean to move the img after <pun_body>! i got it, let me try~ thx!

Re: a wrong message after modified main.tpl

tried, and this time the strange code shows above the image! hahaha....how can I delete it??

Re: a wrong message after modified main.tpl

Yeah! I've solve the problem! I've change the <pub_body> back to <body<pun_body>> and everything just perfect now! thx for yr guys' help!

Re: a wrong message after modified main.tpl

The lesson learned is: Don't use Dreamweaver to edit PunBB templates :)

"Programming is like sex: one mistake and you have to support it for the rest of your life."