File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Sources/PostPrefix/Integration Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ### 4.3.3 - 12 November 2023
4
+ - ![ New Feature] ( https://smftricks.com/assets/changelog/tag--plus.png ) Pre-select filtered prefixes when posting a new poll in boards.
5
+
3
6
### 4.3.2 - 05 July 2023
4
7
- ![ Bug Fix] ( https://smftricks.com/assets/changelog/bug--minus.png ) Fixed modifying 'New Topic' url when it's not set.
5
8
Original file line number Diff line number Diff line change @@ -236,6 +236,10 @@ public function topics_prefixes() : void
236
236
if (isset ($ _REQUEST ['prefix ' ]) && !empty ($ _REQUEST ['prefix ' ]) && $ context ['can_post_new ' ])
237
237
$ context ['normal_buttons ' ]['new_topic ' ]['url ' ] .= ';prefix= ' . $ _REQUEST ['prefix ' ];
238
238
239
+ // Do the same for polls
240
+ if (isset ($ _REQUEST ['prefix ' ]) && !empty ($ _REQUEST ['prefix ' ]) && $ context ['can_post_poll ' ])
241
+ $ context ['normal_buttons ' ]['post_poll ' ]['url ' ] .= ';prefix= ' . $ _REQUEST ['prefix ' ];
242
+
239
243
// Okay, search the prefixes
240
244
if (($ context ['prefixes ' ]['filter ' ] = cache_get_data ('prefix_filter_b ' . $ board , 3600 )) === null )
241
245
{
Original file line number Diff line number Diff line change 3
3
<package-info xmlns =" http://www.simplemachines.org/xml/package-info" xmlns : smf =" http://www.simplemachines.org/" >
4
4
<id >smftricks:postprefix</id >
5
5
<name >SMF Post Prefix</name >
6
- <version >4.3.2 </version >
6
+ <version >4.3.3 </version >
7
7
<type >modification</type >
8
8
<install for =" 2.1 - 2.1.99" >
9
9
<!-- Throw error if PHP version too old -->
You can’t perform that action at this time.
0 commit comments