Skip to content

Commit 8242b7a

Browse files
committed
Merge branch 'master' into dev/4.0
2 parents e99702a + f1ff340 commit 8242b7a

3 files changed

Lines changed: 35 additions & 39 deletions

File tree

CHANGELOG.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## 3.3.8 - 2024-11-08
44

55
- Fixed minor issues that could occur if the Google Fonts field was left empty.
6-
- No longer using minified CSS files so it's easier to modify them for specific style tweaks.
6+
- No longer using minified CSS files, so it's easier to modify them for specific style tweaks.
77
- Moved some HTML links and icons code out of the language files and into the template files.
88
- Notifications in the ACP when arranging BBCodes now support browser dark mode.
99
- Fixes for ScaffoldBB style.
@@ -12,17 +12,17 @@
1212

1313
- Auto Video PlugIn: This optional feature enables direct links to MP3, OGG, and WEBM files to be presented in an HTML5 video player.
1414
- Google Fonts Validation: Added a validation check in the ACP to ensure that the entered font names are valid Google Fonts.
15-
- ACP settings now detects the presence of phpBB Media Embed extension and recommends its installation if it's not already installed.
15+
- ACP settings now detect the presence of phpBB Media Embed extension and recommend its installation if it's not already installed.
1616
- Updated the appearance of the toast-style notification that appears when rearranging BBCode order through drag-n-drop.
1717
- Improved compatibility with RTL languages when using the [dir] BBCode.
1818
- Resized the BBCode toolbar to properly fit with the message editor.
1919
- Optimized the behavior of the popup wizards for BBVideo, IMG, and URL in mobile devices to ensure better responsiveness.
2020
- Prevented unnecessary reparsing of text for first-time installations.
21-
- Made numerous smaller enhancements to enhance the overall functioning and efficiency.
21+
- Made many smaller enhancements to enhance the overall functioning and efficiency.
2222

2323
## 3.3.5 - 2022-09-25
2424

25-
- Google fonts will only be loaded when phpBB's CDN option allows 3rd-party content to be loaded to better comply with GDPR.
25+
- Google fonts will only be loaded when phpBB's CDN option allows third-party content to be loaded to better comply with GDPR.
2626
- Minor tweaks to the FONT BBCode drop down menu.
2727
- Added sans-serif as a fall-back font to the FONT BBCode to avoid using the browser's default font when a custom font can't be loaded.
2828

@@ -38,7 +38,7 @@
3838
- Added Google font support to the FONT BBCode; add Google fonts via the ABBC3 settings in the ACP.
3939
- Removed non-universal font styles from the FONT BBCode menu.
4040
- These changes will not break existing posts.
41-
- Switched the text scrolling BBCode (marquee effect) to an HTML-valid CSS-only method.
41+
- Switched the text-scrolling BBCode (marquee effect) to an HTML-valid CSS-only method.
4242
- Various minor code updates.
4343

4444
## 3.3.2 - 2021-01-16
@@ -50,7 +50,7 @@
5050

5151
## 3.3.1 - 2020-11-07
5252

53-
- Fixed missing IMG, URL and FLASH BBCode buttons from Quick Reply.
53+
- Fixed missing IMG, URL, and FLASH BBCode buttons from Quick Reply.
5454
- Fixed issues with duplication of BBCode button bars in Quick Reply when using Quick Reply Reloaded and other Quick Reply extensions.
5555
- Fixed the names of example sites in the BBVideo/Media Embed Wizard.
5656
- Added European Portuguese translation
@@ -59,12 +59,12 @@
5959

6060
- Replaced the antiquated, pixelated GIF BBCode icons with two new SVG and PNG icon sets.
6161
- Added BBCodes to Quick Reply.
62-
- Added an all new ACP settings section to the Extensions tab of the ACP:
62+
- Added all new ACP settings sections to the Extensions tab of the ACP:
6363
- Toggle between SVG or PNG icon sets for the ABBC3 Icon bar.
6464
- Enable or disable the ABBC3 Icon bar.
6565
- Enable or disable the Quick Reply BBCodes.
6666
- Enable or disable the Pipe Tables plugin.
67-
- Created an ABBC3 folder in phpBB's images folder. Now you can add your BBCode icons to this folder which won't be deleted when updating ABBC3.
67+
- Created an ABBC3 folder in phpBB's images folder. Now you can add your BBCode icons to this folder, which won't be deleted when updating ABBC3.
6868
- BBCodes with no associated icon image will display like a standard phpBB BBCode.
6969
- BBVideo deprecation continues:
7070
- If you have the phpBB Media Embed PlugIn installed, its `[media]` BBCode button now behaves just like the `[bbvideo]` button and opens the BBVideo wizard. You may now hide the `[bbvideo]` BBCode if you prefer to use the `[media]` BBCode (or vice versa) by turning off its display on posting page setting.
@@ -80,14 +80,14 @@
8080

8181
## 3.2.2 - 2019-04-29
8282

83-
- BBCode URL/BBVideo Wizard is now a modal/overlay, to solve some issues where it might have been obscured from view.
84-
- Ensure BBVideos are sorted alphabetically in the BBCode Wizard's examples drop down menu.
83+
- BBCode URL/BBVideo Wizard is now a modal / overlay to solve some issues where it might have been obscured from view.
84+
- Ensure BBVideos are sorted alphabetically in the BBCode Wizard's example drop-down menu.
8585
- Added Slovak translation.
8686
- Additional minor code improvements.
8787

8888
## 3.2.1 - 2018-06-07
8989

90-
- Improved BBVideo's compatibility with phpBB Media Embed PlugIn extension. For best results, install phpBB Media Embed Plugin extension to have the ability to manage which sites area allowed and to control parsing plain URLs.
90+
- Improved BBVideo's compatibility with phpBB Media Embed PlugIn extension. For best results, install phpBB Media Embed Plugin extension to be able to manage which sites area allowed and to control parsing plain URLs.
9191
- ABBC3 now has a BBCode entry in the ACP for the Pipe Tables plugin. This way you can arrange where you want the Pipe Tables BBCode to appear in the BBCode bar. You may also choose to not display the Pipe Table BBCode on the posting page, or you can delete the BBCode to remove the Pipe Tables functionality.
9292
- Fixed an issue since 3.2.0 where deleting the `[BBVideo]` and `[hidden]` BBCodes did not stop them from still being *secretly* available to continue being used. Now, if they get deleted, they are functionally gone (unless you completely reinstall ABBC3).
9393

@@ -104,10 +104,10 @@
104104
- Raw URLs for compatible media sites will automatically be converted into content even without being wrapped in the BBVideo tag.
105105
- The original URLs will no longer display if they can be converted to embedded content.
106106
- All Posts and PM's will be reparsed after updating, over time using CRON jobs to fix broken posts with BBVideos.
107-
- Incompatible BBVideos will remain broken (sorry 'bout that, but moving on usually means leaving old stuff behind).
107+
- Incompatible BBVideos will remain broken (sorry about that, but moving on usually means leaving old stuff behind).
108108
- Improved align BBCode when used on non-text like images, videos, etc.
109109
- Show AJAX loading indicators while loading BBCode wizards
110-
- Improved ABBC3 deletion. Now if you delete ABBC3, all the BBCodes it installed will no longer be displayed on the posting pages, returning the BBCodes toolbar to the default appearance. You may then choose to manually display or delete each of the BBCodes in the ACP Posting page.
110+
- Improved ABBC3 deletion. Now if you delete ABBC3, all the BBCodes it installed will no longer be displayed on the posting pages, returning the BBCodes toolbar to the default appearance. You may then choose to manually display or delete each of the BBCodes on the ACP Posting page.
111111
- Internal improvements for phpBB 3.2 and 3.3
112112
- End of compatibility for phpBB 3.1
113113
- Added Vietnamese translation
@@ -136,16 +136,16 @@
136136
## 3.1.2 - 2015-12-01
137137

138138
- Includes compatibility with phpBB 3.2.0-a1
139-
- Updated soundcloud.com BBcode
139+
- Updated soundcloud.com BBCode
140140
- Updated facebook.com BBVideo
141141
- Updated gamespot.com BBVideo
142142
- Updated veoh.com BBVideo
143143
- Removed gametrailers.com BBVideo
144-
- Added the URL BBcode wizard to subsilver2
144+
- Added the URL BBCode wizard to subsilver2
145145
- Complete conversion to TWIG syntax
146146
- Template events added to the ABBC3's bbcode button bars
147147
- Improve CSS for drop down menus (Font Name and Font Size select menus)
148-
- Installer removes BBcodes with negative IDs from the database (leftover from ABBC3.0)
148+
- Installer removes BBCodes with negative IDs from the database (leftover from ABBC3.0)
149149
- Added Estonian language
150150
- Added Swedish language
151151
- Added Turkish language
@@ -177,8 +177,8 @@
177177
- BBVideos are all mobile device friendly
178178
- Updated several BBVideos
179179
- Added new BBVideos: Instagram, tu.tv, revision3.com, testtube.com, kickstarter.com
180-
- Arabic and Dutch translations added
181-
- Better backwards compatibility - most BBCodes will continue to work even after disabling or uninstalling ABBC3
180+
- Arabic and Dutch translations are added
181+
- Better backwards compatibilitymost BBCodes will continue to work even after disabling or uninstalling ABBC3
182182

183183
## 3.1.0-b2 - 2014-07-12
184184

styles/all/template/abbc3_posting_script.html

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,21 @@
88
* Strip all BBCodes from the selected text
99
*/
1010
function bbcodeToPlain(data) {
11-
if (data.indexOf('[') < 0) {
11+
if (!data || data.indexOf('[') < 0) {
1212
return data;
1313
}
1414

15-
function bbcodeToPlainSimpleReplace(str) {
16-
return str.replace(basicBBcodeMatch, bbcodeToPlainPattern);
17-
}
18-
19-
function bbcodeToPlainPattern(match_0, match_1, match_2, match_3) {
20-
if (match_3 && match_3.indexOf('[') > -1) {
21-
match_3 = bbcodeToPlainSimpleReplace(match_3);
22-
}
23-
return match_3;
24-
}
15+
const bbcodePattern = /\[([a-z][a-z0-9]*?)(?:=[^\]]*)?]([\s\S]*?)\[\/\1]/gi;
16+
let result = data;
17+
let prevResult;
2518

26-
var basicBBcodeMatch = new RegExp('\\[([a-z][a-z0-9]*)(?:=([^\\]]+))?]((?:.|[\r\n])*?)\\[/\\1]', 'gim');
19+
// Keep removing BBCodes until no more are found (handles nested tags)
20+
do {
21+
prevResult = result;
22+
result = result.replace(bbcodePattern, '$2');
23+
} while (result !== prevResult);
2724

28-
return bbcodeToPlainSimpleReplace(data);
25+
return result;
2926
}
3027

3128
/**

styles/all/theme/abbc3_common.css

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,6 @@
8989
content: "\1F512"; /* lock glyph */
9090
}
9191

92-
/* Dark mode tweak */
93-
@media (prefers-color-scheme: dark) {
94-
.hc-box {
95-
background: rgba(255, 255, 255, 0.05);
96-
border-color: rgba(255, 255, 255, 0.12);
97-
}
98-
}
99-
10092
/* [spoil] spoiler BBCode */
10193
.spoilbtn:hover {
10294
color: #d31141 !important;
@@ -187,3 +179,10 @@
187179
transform: translateY(-100%);
188180
}
189181
}
182+
183+
/* Stoker Dark mode tweaks */
184+
.phpbb-dark-mode .hc-box,
185+
.phpbb-dark-mode .abbc3-spoiler {
186+
background: rgba(255, 255, 255, 0.05) !important;
187+
border-color: rgba(255, 255, 255, 0.12) !important;
188+
}

0 commit comments

Comments
 (0)