首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >显示MyBB {}标记,而不是解释

显示MyBB {}标记,而不是解释
EN

Stack Overflow用户
提问于 2013-05-29 00:53:50
回答 1查看 556关注 0票数 0

我一直在编辑我的MyBB portal.php,直到最近它都显示得很好。我在最近的帖子上面添加了一个自定义的欢迎区块,它显示得很好。

今天,我开始整理代码,添加了新的行(回车)和缩进,使代码更易读。现在,在这样做之后,出现了严重的错误。它显示的不是完整的MyBB页面样式,而是像{$header}这样的标签。代码如下:

代码语言:javascript
运行
复制
<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进行比较。

我不知道哪里出了问题,或者为什么它不能正确显示。

EN

回答 1

Stack Overflow用户

发布于 2013-10-15 08:37:11

我可能错了,但你是不是在这里漏掉了一个'>‘

代码语言:javascript
运行
复制
<tr><td

<table width="100%" cellspacing="0" cellpadding="{$theme['tablespace']}" border="0" align="center">
<tr><td valign="top" width="200">
票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16797472

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档