Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 SMF 的新手。
我刚刚在我的网站上安装了 SMF。我尝试编辑 index.template.php 。保存更改后,它会在浏览器上显示原始 HTML 和 PHP。我尝试通过将页面返回到原始状态来修复问题,但无济于事。
目前,前端和后端的一切都是胡言乱语。
请问我该怎么办?
文件顶部(每个 .php 文件的顶部)至少应该有一个 open 标记。确保您没有删除此标签。a 之外的所有内容都<?php被解释为普通文本,因此如果您删除了它,它将解释您的问题。
<?php
此外,作为 SMF 的前团队成员,我可以向您保证,最好创建默认主题的副本,然后对该主题进行编辑。然后,如果您遇到错误,您可以随时在 url 中传递一个参数以重置为默认主题(以防您需要进入管理区域)。为此,请使用 index.php?theme=1 结束 url