- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
-6ren">
我尝试搜索,但我发现的所有示例和答案都无法使用。
phpBB 有以下几行代码:
<!-- IF topicrow.S_FIRST_ROW or not topicrow.S_TOPIC_TYPE_SWITCH -->
<div class="forumbg<!-- IF topicrow.S_TOPIC_TYPE_SWITCH and (topicrow.S_POST_ANNOUNCE or topicrow.S_POST_GLOBAL) --> announcement<!-- ENDIF -->">
<div class="inner">
<ul class="topiclist">
<li class="header">
<dl class="row-item">
<dt<!-- IF S_DISPLAY_ACTIVE --> id="active_topics"<!-- ENDIF -->><div class="list-inner"><!-- IF S_DISPLAY_ACTIVE -->{L_ACTIVE_TOPICS}<!-- ELSEIF topicrow.S_TOPIC_TYPE_SWITCH and (topicrow.S_POST_ANNOUNCE or topicrow.S_POST_GLOBAL) -->{L_ANNOUNCEMENTS}<!-- ELSE -->{L_TOPICS}<!-- ENDIF --></div></dt>
<dd class="posts">{L_REPLIES}</dd>
<dd class="views">{L_VIEWS}</dd>
<dd class="lastpost"><span>{L_LAST_POST}</span></dd>
</dl>
</li>
</ul>
我正在尝试重新连接这部分(整条线)
<dt<!-- IF S_DISPLAY_ACTIVE --> id="active_topics"<!-- ENDIF -->>
<div class="list-inner">
<!-- IF S_DISPLAY_ACTIVE -->{L_ACTIVE_TOPICS}
<!-- ELSEIF topicrow.S_TOPIC_TYPE_SWITCH and (topicrow.S_POST_ANNOUNCE or topicrow.S_POST_GLOBAL) -->{L_ANNOUNCEMENTS}
<!-- ELSE -->{L_TOPICS}<!-- ENDIF -->
</div>
</dt>
作为引用,我需要将其更改为
<dt<!-- IF S_DISPLAY_ACTIVE --> id="active_topics"<!-- ENDIF -->>
<div class="list-inner">
<!-- IF S_DISPLAY_ACTIVE -->{L_ACTIVE_TOPICS}
<!-- ELSEIF topicrow.S_TOPIC_TYPE eq 3 -->{L_GLOBAL_ANNOUNCEMENTS}
<!-- ELSEIF (topicrow.S_POST_ANNOUNCE or topicrow.S_POST_GLOBAL) eq 2 -->{L_ANNOUNCEMENTS}
<!-- ELSEIF topicrow.S_TOPIC_TYPE eq 1 -->{L_STICKY}
<!-- ELSE -->{L_TOPICS}<!-- ENDIF -->
</div>
</dt>
有人可以提供我需要的完整 jquery 代码吗?谢谢。
最佳答案
phpBB仅禁止修改核心php文件。如果要修改数据,就必须使用扩展。但你不属于这种情况。
对于模板,建议使用事件模板扩展,尤其是当您必须添加一些新功能时。但您可以更改您的模板,尤其是针对您的案例!
这是好的做法:
继承prosilver创造新风格
# General Information about youstyle
name = mystyle
copyright = © phpBB Limited, 2016
style_version = 3.1.10
phpbb_version = 3.1.10
# Defining a different template bitfield
# template_bitfield = lNg=
# Parent style
# Set value to empty or to this style's name
# if this style does not have a parent style
parent = prosilver
复制/粘贴模板文件viewforum.phtml ,你想改变你的新样式目录并直接改变它。
phpBB/styles/mystyle/template/viewforum_body.html
使用您的管理面板来测试您的修改。完成后,将默认模板从 prosilver
更改为 mystyle
这里有一个关于 template Inheritance 的很好的文档
关于jquery - 用 jQuery 替换 dt 元素 (phpBB),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41120236/
我的意思是是否可以像邮件列表一样使用 phpBB:发送新电子邮件创建新论坛主题,回复现有电子邮件创建对现有论坛主题的评论。 最佳答案 这不可能开箱即用,但这里有一个适用于 phpbb 3.0 或更高版
谁能帮我更改phpbb论坛的页脚和页眉.. 最佳答案 对于 PHPBB 3.0.x 版,页眉现在位于“/styles/[stylename]/template/overall_header.html”
我有一个 prosilver 风格的 phpBB board 3。 当用户单击帖子中的链接时,浏览器将在同一选项卡中打开它。我是否可以更改它,以便浏览器在新选项卡或窗口中打开链接? 最佳答案 要完成
关闭。这个问题是off-topic .它目前不接受答案。 想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。 11 年前关闭。 Improve this
虽然我自己搜索了这个,但可能有人可以提供快速答案。非常感谢你。 所以我真的很喜欢谷歌群组以及每个成员如何收到关于群组中发生的所有新事物的通知。所有新主题、旧主题、添加的回复等。但是我们需要自己的论坛,
我正在我的网站上工作,目前有一个自定义编码的网页以及与之一起运行的 phpbb。然而我似乎无法将 phpbb 集成到主页中。我想要信息(成员(member)数量、帖子等)以及新闻部分(论坛上的最新帖子
好的,伙计们。 我准备做一个论坛,但是我的logo只显示了一半。 这是它显示的内容:http://i60.tinypic.com/5widdy.png 这是它应该显示的内容:http://i61.ti
我可以使用我的站点和 phpBB3 的集成登录系统登录。我不能 注销...我尝试破坏 session ,或使用 ->logout(); 我登录为: $phpBBusername = $_SES
我正在尝试登录 phpBB 论坛。但是,我无法弄清楚代码有什么问题。 import requests forum = "https://adblockplus.org/forum/" headers
我想知道是否可以将 phpbb 实例安装到 Google App Engine,因为我看到了这个:https://developers.google.com/cloud-sql/还有这个:http:/
我需要以编程方式在我的板上创建主题。我为此使用 Java 和 HtmlUnit。但有一个问题 - 如果程序发布一次一切都好(论坛响应是 http 200),但如果再次启动程序,那么 PhpBB 响应是
我在我的网站上安装了 phpbb 论坛。但是现在有很多垃圾邮件主题和垃圾邮件帖子。 我通过谷歌搜索发现如果我安装一个验证码模块就可以防止垃圾邮件。但是无论如何我可以删除现在已经在论坛数据库中的垃圾邮件
我正在将一个使用 PHPBB 论坛的网站迁移到一个新的微软平台,该平台不使用相同的标签标记(例如粗体、斜体、图像等)。 我刚刚在现有 PHPBB 站点的 MySql 数据库中注意到,许多标签中包含了我
我希望通过将读取查询与写入查询分离到两个独立的复制 MySQL 服务器来扩展现有的 phpBB 安装。有人成功地做到了这一点,特别是使用 phpBB 吗? 到目前为止,我最担心的是查询似乎随意地散布在
我的 phpBB 主题是 Supernova,原本没有背景图片。 WTG Forum 我使用的是与页眉相同的图像,但背景是重复的。我最初将 header 的相同 CSS 复制到 body{} 中。 b
我正在使用 phpbb3 作为我网站的论坛。我在那里添加了 custob header ,这很容易,但现在我想设置渐变。我用 this gradient generator它为我生成了以下代码: ba
如何将 phpbb 与 wordpress 站点集成。当用户在我的网站上注册时,也会自动创建一个论坛帐户。任何人都知道这个解决方案,请帮助我。 最佳答案 你查了吗WP-UNITED WP-United
早上好。我的phpBB安装存在重大问题。 我已经将其转移到计算机上以开发一些插件,所以我在本地主机上运行它,但是,我创建了一个vHost,其域名与他在线运行的域名完全相同,因此,我不需要更改cooki
我需要一些帮助来解决修改 phpBB 方面的新手问题。 我有一个用 PHP 开发的整个系统,我想集成 phpBB,以便人们可以导航到论坛并无缝发帖,而无需再次登录。 现在,不幸的是,使用 phpBB
phpBB 有许多静态资源,从与动态论坛服务器不同的服务器提供它们可能意味着显着的性能提升。我们可以将过期 header 设置到遥远的 future ,并可能在未来使用 CDN。 从目前我所做的检查来
我是一名优秀的程序员,十分优秀!