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> </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과 비교하십시오.
무엇이 잘못되었거나 제대로 표시되지 않는 이유를 알아낼 수 없습니다.