2013-05-28 56 views
0

我一直在编辑我的MyBB portal.php,直到最近它显示正常。我在最近的帖子上面添加了一个自定义欢迎屏幕,并且显示正常。MyBB {}标签显示而不是口译

今天我进行整理代码,添加新行(输入)和缩进以使代码更清晰。现在,做完这件事后,发生了严重的错误。它没有显示完整的MyBB页面样式,而是显示了{$ header}这样的标签。下面的代码:

<html> 
<head> 
<title>{$mybb->settings['bbname']}</title> 
{$headerinclude} 
</head> 
<body> 
{$header} 
<table width="100%" cellspacing="0" cellpadding="{$theme['tablespace']}" border="0" align="center"> 
<tr><td valign="top" width="200"> 
{$welcome} 
{$pms} 
{$search} 
{$stats} 
{$whosonline} 
{$latestthreads} 
</td> 
<td>&nbsp;</td> 
<td valign="top"> 
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"> 
    <tr> 
     <td class="trow1"> 
      <span class="smalltext"> 
<!--Main Welcome Panel--> 
     <p style="text-align: center;"> 
      <img alt="" src="http://axelcraft.net/images/welcome.png" style="width: 1024px;" /></p> 
     <p style="text-align: center;"> 
      <span style="color:#696969;"><span style="font-size: 24px;"><em><span style="font-family: hutrmold;">Get ready for a whole new minecraft experience.</span></em></span></span></p> 
<!--Slideshow--> 
<center> 
    <iframe src="http://axelcraft.net/images/slides/slideshow.html" width="800" height="320" scrolling="no" frameBorder="0" style="overflow:hidden;"></iframe> 
</center> 
<!--End Slideshow--> 
     <p style="text-align: center;"> 
      <span style="font-size:20px;"> 
       <span style="font-family: 'trebuchet ms', helvetica, sans-serif;"> 
        Thanks for visiting AxelCraft! Start by <a href="http://axelcraft.net/member.php?action=register"><span style="color:#385947;"><span style="">signing up</span></span></a> to get the latest news and updates on the server as well as to register for <a href="http://axelcraft.net/forumdisplay.php?fid=9"><span style="color:#385947;">contests</span></a> and <a href="http://axelcraft.net/forumdisplay.php?fid=19"><span style="color:#385947;">events</span></a>! 
       </span> 
      </span> 
     </p> 
<!--End Welcome Panel--> 
      </span> 
     </td> 
    </tr> 
</table> 
<br /> 
{$announcements} 
</td> 
</tr> 
</table> 
{$footer} 
</body> 
</html> 

现在,当你浏览到portal.php,它只能说明{$}标签与HTML段落一起。它应该像MyBB一样显示侧边栏和标题左右。看看我的意思here.

将其与普通论坛页面here相比较。

我找不出有什么问题或为什么显示不正常。

回答

-1

我可能是错的,但是否缺少一个“>”这里

<tr><td 

<table width="100%" cellspacing="0" cellpadding="{$theme['tablespace']}" border="0" align="center"> 
<tr><td valign="top" width="200"> 
相关问题