Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
b1b14b2
Test and Icon fixes
iMattPro Oct 15, 2021
cb82a01
Update phpunit config
iMattPro Oct 15, 2021
efa2f71
Update github actions to test on master branch
iMattPro Oct 15, 2021
135fc11
Some hacks for unit testing
iMattPro Oct 18, 2021
88181e9
Fix migration files
iMattPro Oct 18, 2021
0db0b65
Merge branch 'master' into dev/4.0
iMattPro Nov 3, 2021
2026980
Support usage of all Iconify icons and keep BC for old FA icons
iMattPro Jan 4, 2022
e315966
Update for use with non-local iconify
iMattPro Jan 5, 2022
729ac26
Merge branch 'master' into dev/4.0
iMattPro Feb 23, 2023
ffeb07e
Fix tests
iMattPro Feb 23, 2023
5a3bad1
Merge branch 'master' into dev/4.0
iMattPro Sep 21, 2023
018baae
Merge branch 'master' into dev/4.0
iMattPro Dec 29, 2023
f1e4337
Merge branch 'master' into dev/4.0
iMattPro Dec 29, 2023
33e3a1e
Update test workflows
iMattPro Dec 29, 2023
ff00a58
phpBB 4 updated changes
iMattPro Jan 5, 2024
18e716e
Merge branch 'master' into dev/4.0
iMattPro Feb 13, 2024
3d57b1c
Revert "phpBB 4 updated changes" Iconify stuff
iMattPro Feb 13, 2024
bfda761
Remove iconify
iMattPro Feb 14, 2024
9e96c15
Remove jquery
iMattPro Feb 18, 2024
e68f8a1
Style updates
iMattPro Feb 19, 2024
5a2fae1
Update tests with coverage
iMattPro Feb 22, 2024
87611b0
Update ACP icons
iMattPro Feb 24, 2024
3e25be5
Merge branch 'master' into dev/4.0
iMattPro Mar 20, 2024
cfc36e2
Merge branch 'master' into dev/4.0
iMattPro Jun 12, 2024
fe0fb5c
Update phpBB4 version constraints
iMattPro Jun 12, 2024
4bba423
Merge branch 'master' into dev/4.0
iMattPro Aug 25, 2024
9029df0
Merge branch 'master' into dev/4.0
iMattPro Apr 11, 2025
cd2d2bb
Fix tests
iMattPro Apr 11, 2025
c7d9bfb
Use centralized test framework
iMattPro Apr 16, 2025
23d8477
Merge branch 'master' into dev/4.0
iMattPro Apr 19, 2025
f78689f
Add codecov stuff
iMattPro Apr 19, 2025
66d2c75
Merge branch 'master' into dev/4.0
iMattPro May 6, 2025
36d3051
Remove XHTML
iMattPro May 28, 2025
a2ee123
Merge branch 'master' into dev/4.0
iMattPro May 30, 2025
c96cd4b
Remove deprecated code
iMattPro Jul 17, 2025
db45d5a
Merge branch 'master' into dev/4.0
iMattPro Sep 13, 2025
6b301ec
Update composer.json
iMattPro Sep 13, 2025
fb647cb
Fix tests
iMattPro Sep 13, 2025
7a0858f
Fix deprecations
iMattPro Sep 16, 2025
fdfcc66
Ignore vendor deprecations and noise [ci skip]
iMattPro Sep 17, 2025
7ca7d09
Index replaces app as controller
iMattPro Feb 8, 2026
d230b53
Fix test warnings
iMattPro Feb 8, 2026
b671ada
Merge commit 'fd04cc890fbbe56dfd4cfecff6b6a0642b320de2' into develop
github-actions[bot] Apr 16, 2026
85fc9c3
Improve viewonline tests
iMattPro Apr 16, 2026
0ffe08c
Handle merge conflicts in workflow script
iMattPro Apr 16, 2026
e7f57a5
Merge branch 'master' into dev/4.0
iMattPro Apr 16, 2026
03ea484
Fix test regressions
iMattPro Apr 17, 2026
67d37f0
Merge branch 'master' into dev/4.0
iMattPro Aug 18, 2026
9465b38
Fix tests
iMattPro Aug 18, 2026
dfae7c0
Merge branch 'master' into dev/4.0
iMattPro Aug 18, 2026
37488f4
Merge branch 'master' into dev/4.0
iMattPro Aug 20, 2026
f28efc7
Merge branch 'master' into dev/4.0
iMattPro Aug 20, 2026
d15d9de
Merge fixes
iMattPro Aug 20, 2026
9ed7ea4
Merge branch 'master' into dev/4.0
iMattPro Aug 21, 2026
fca1dcf
Merge branch 'master' into dev/4.0
iMattPro Aug 21, 2026
a0c3080
Fix tests
iMattPro Aug 21, 2026
242bca8
CSS tweaks for new prosilver
iMattPro Aug 22, 2026
d33515d
Merge branch 'master' into dev/4.0
iMattPro Aug 22, 2026
aa8713f
Merge commit '2841aed4024b949ccfecd4c1c90c7c81190b1cfc' into develop
github-actions[bot] Aug 22, 2026
ecf5bc1
Fix tests
iMattPro Aug 22, 2026
14ef6f4
Merge branch 'master' into dev/4.0
iMattPro Aug 23, 2026
04fb17b
Fix Tests
iMattPro Aug 23, 2026
107e89e
Merge commit '382a96f0b180663f71f958959704387e9266909c' into develop
github-actions[bot] Sep 2, 2026
c608fe9
Merge commit 'e6501c3d35d7c5f75e836c41aa5c7c6ec8204a9c' into develop
github-actions[bot] Sep 3, 2026
0ee072b
Merge branch 'master' into dev/4.0
iMattPro Sep 16, 2026
85bb28f
Fix tests
iMattPro Sep 16, 2026
af88387
Fix tests
iMattPro Sep 16, 2026
99f89d5
Merge branch 'master' into dev/4.0
iMattPro Sep 17, 2026
3428dbe
refactor(entities)!: move persistence to operators
iMattPro Sep 17, 2026
b32784b
Merge pull request #382 from iMattPro/dev/4.0-refactor-entities
iMattPro Sep 24, 2026
a8faada
Merge branch 'master' into dev/4.0
iMattPro Nov 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
jobs:
call-tests:
name: Extension tests
uses: phpbb-extensions/test-framework/.github/workflows/tests.yml@3.3.x
uses: phpbb-extensions/test-framework/.github/workflows/tests.yml@master
with:
EXTNAME: phpbb/boardrules # Your extension vendor/package name
CODECOV: 1 # Run code coverage via codecov? 1 or 0
Expand Down
26 changes: 14 additions & 12 deletions adm/style/boardrules.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
(function($) { // Avoid conflicts with other libraries

document.addEventListener('DOMContentLoaded', () => {
'use strict';

$('#boardrules_font_icon').on('keyup blur', function() {
var input = $(this).val();
var $icon = $(this).next('i');
if (input.length > 0) {
$icon.attr('class', 'icon fa-' + input);
} else {
$icon.attr('class', '');
}
});
const boardRulesFontIcon = document.getElementById('boardrules_font_icon');

boardRulesFontIcon.addEventListener('keyup', () => updateIcon());
boardRulesFontIcon.addEventListener('blur', () => updateIcon());

})(jQuery);
const updateIcon = () => {
const input = boardRulesFontIcon.value;
const icon = boardRulesFontIcon.nextElementSibling; // Assuming the <i> element is the next sibling

if (icon && icon.tagName.toLowerCase() === 'i') {
icon.setAttribute('class', 'o-icon o-icon-font acp-icon fa-' + input);
}
};
});
26 changes: 10 additions & 16 deletions adm/style/boardrules_manage_rules.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ <h1>{{ lang('ACP_BOARDRULES_MANAGE') }}</h1>

{% if S_CAN_COPY_RULESET or S_RULESET_DRAFT or S_RULESET_PUBLISHED %}
<p class="boardrules-action-bar">
{% if S_CAN_COPY_RULESET %}<a href="{{ U_COPY_RULESET }}" class="button2 boardrules-button"><i class="icon fa-copy fa-fw" aria-hidden="true"></i> {{ lang('ACP_BOARDRULES_COPY_ACTION') }}</a>{% endif %}
{% if S_RULESET_DRAFT %}<a href="{{ U_PUBLISH_RULESET }}" class="button2 boardrules-button"><i class="icon fa-eye fa-fw" aria-hidden="true"></i> {{ lang('ACP_BOARDRULES_PUBLISH') }}</a>{% endif %}
{% if S_RULESET_PUBLISHED %}<a href="{{ U_DRAFT_RULESET }}" class="button2 boardrules-button"><i class="icon fa-eye-slash fa-fw" aria-hidden="true"></i> {{ lang('ACP_BOARDRULES_SET_DRAFT') }}</a>{% endif %}
{% if S_CAN_COPY_RULESET %}<a href="{{ U_COPY_RULESET }}" class="button2 boardrules-button">{{ Icon('font', 'copy', lang('ACP_BOARDRULES_COPY_ACTION'), false, 'fas') }}</a>{% endif %}
{% if S_RULESET_DRAFT %}<a href="{{ U_PUBLISH_RULESET }}" class="button2 boardrules-button">{{ Icon('font', 'eye', lang('ACP_BOARDRULES_PUBLISH'), false, 'fas') }}</a>{% endif %}
{% if S_RULESET_PUBLISHED %}<a href="{{ U_DRAFT_RULESET }}" class="button2 boardrules-button">{{ Icon('font', 'eye-slash', lang('ACP_BOARDRULES_SET_DRAFT'), false, 'fas') }}</a>{% endif %}
</p>
{% endif %}

Expand Down Expand Up @@ -87,19 +87,13 @@ <h3>{{ lang(S_DEFAULT_LANGUAGE or not S_FALLBACK_AVAILABLE ? 'ACP_BOARDRULES_STA
{% for rules in loops.rules %}
<tr>
<td class="folder">
{% if rules.S_IS_CATEGORY %}
<span class="fa-stack fa-2x" aria-hidden="true">
<i class="fa fa-fw fa-circle fa-stack-2x"></i>
<i class="fa fa-fw fa-folder fa-inverse fa-stack-1x"></i>
</span>
<span class="sr-only">{{ lang('ACP_BOARDRULES_CATEGORY') }}</span>
{% else %}
<span class="fa-stack fa-2x" aria-hidden="true">
<i class="fa fa-fw fa-circle fa-stack-2x"></i>
<i class="fa fa-fw fa-file-text fa-inverse fa-stack-1x"></i>
</span>
<span class="sr-only">{{ lang('ACP_BOARDRULES_RULE') }}</span>
{% endif %}
<span class="fa-stack fa-2x">
{{ Icon('font', 'circle', '', true, 'fas fa-stack-2x') }}
{{ Icon('font', {
'folder' : rules.S_IS_CATEGORY,
'file-lines' : true,
}, '', true, 'fas fa-inverse fa-stack-1x') }}
</span>
</td>
<td class="forum-desc">
<strong><a href="{{ rules.U_RULE }}">{{ rules.RULE_TITLE }}</a></strong>
Expand Down
4 changes: 2 additions & 2 deletions adm/style/boardrules_settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ <h3>{{ lang('WARNING') }}</h3>
<label><input type="radio" class="radio" name="boardrules_header_link" value="0"{% if not S_BOARDRULES_HEADER_LINK %} checked="checked"{% endif %}> {{ lang('NO') }}</label></dd>
</dl>
<dl>
<dt><label for="boardrules_font_icon">{{ lang('ACP_BOARDRULES_FONT_ICON') ~ lang('COLON') }}</label><br><span>{{ lang('ACP_BOARDRULES_FONT_ICON_EXPLAIN', 'https://fontawesome.com/v4.7.0/icons/') }}</span></dt>
<dd><input name="boardrules_font_icon" id="boardrules_font_icon" placeholder="book" type="text" size="15" maxlength="255" value="{{ BOARDRULES_FONT_ICON }}"> <i style="font-size:14px" class="icon fa-{{ BOARDRULES_FONT_ICON }}"></i></dd>
<dt><label for="boardrules_font_icon">{{ lang('ACP_BOARDRULES_FONT_ICON') ~ lang('COLON') }}</label><br><span>{{ lang('ACP_BOARDRULES_FONT_ICON_EXPLAIN', 'https://fontawesome.com/v6/search?o=r&m=free') }}</span></dt>
<dd><input name="boardrules_font_icon" id="boardrules_font_icon" placeholder="book" type="text" size="15" maxlength="255" value="{{ BOARDRULES_FONT_ICON }}"> {{ Icon('font', BOARDRULES_FONT_ICON, '', true, 'acp-icon') }}</dd>
</dl>
<dl>
<dt><label for="boardrules_list_style">{{ lang('ACP_BOARDRULES_LIST_STYLE') ~ lang('COLON') }}</label><br><span>{{ lang('ACP_BOARDRULES_LIST_STYLE_EXPLAIN') }}</span></dt>
Expand Down
11 changes: 7 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "phpbb-extension",
"description": "An extension which allows you to create a set of rules for your phpBB forum",
"homepage": "https://www.phpbb.com/customise/db/extension/boardrules/",
"version": "3.1.0",
"version": "3.2.0-dev",
"keywords": ["phpbb", "extension", "rules"],
"license": "GPL-2.0-only",
"authors": [
Expand All @@ -29,22 +29,25 @@
}
],
"require": {
"php": ">=7.1.3",
"composer/installers": "~1.0"
"php": ">=8.1",
"composer/installers": "^1.0 || ^2.0"
},
"require-dev": {
"phing/phing": "~2.4"
},
"extra": {
"display-name": "Board Rules",
"soft-require": {
"phpbb/phpbb": ">=3.3.2,<4.0.0@dev"
"phpbb/phpbb": ">=4.0.0@dev"
},
"version-check": {
"host": "www.phpbb.com",
"directory": "/customise/db/extension/boardrules",
"filename": "version_check",
"ssl": true
},
"branch-alias": {
"dev-develop": "3.1.x-dev"
}
}
}
9 changes: 6 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ services:
class: phpbb\boardrules\controller\admin_controller
arguments:
- '@config'
- '@service_container'
- '@controller.helper'
- '@language'
- '@language.loader'
Expand All @@ -44,20 +43,21 @@ services:
- '%core.root_path%'
- '%core.php_ext%'

phpbb.boardrules.entity:
class: phpbb\boardrules\entity\rule
shared: false # service MUST not be shared for this to work!
phpbb.boardrules.entity_factory:
class: phpbb\boardrules\entity\factory
arguments:
- '@dbal.conn'
- '%phpbb.boardrules.tables.boardrules%'

phpbb.boardrules.operator:
class: phpbb\boardrules\operators\rule
arguments:
- '@service_container'
- '@phpbb.boardrules.entity_factory'
- '@dbal.conn'
- '@phpbb.boardrules.nestedset_rules'
- '@phpbb.boardrules.ruleset_operator'
- '@phpbb.boardrules.table_lock'
- '%phpbb.boardrules.tables.boardrules%'

phpbb.boardrules.ruleset_operator:
class: phpbb\boardrules\operators\ruleset
Expand Down
Loading
Loading