Skip to content

Commit

Permalink
v4.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndresCortes committed Jul 1, 2024
1 parent 8700fa4 commit 378e41f
Show file tree
Hide file tree
Showing 9 changed files with 129 additions and 54 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [smftricks]
custom: ["https://www.paypal.me/smftricks"]
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
contact_links:
- name: SMF Support Topic
url: https://www.simplemachines.org/community/index.php?topic=536401.0
about: This is the main support topic from the official SMF community.
- name: SMF Tricks Support
url: https://smftricks.com/index.php?topic=778.0
about: This is the support topic from the SMF Tricks support boards.
53 changes: 53 additions & 0 deletions .github/ISSUE_TEMPLATE/standard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Bug Report
description: Create a regular bug report
labels: ["Pending Review"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report, please describe the issue and provide as much information as possible.
- type: textarea
id: basic
attributes:
label: Basic Information
description: What is the issue?
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to reproduce
description: Describe all steps needed to recreate the issue.
value: |
1.
- type: textarea
id: expected
attributes:
label: Expected result
description: What should be the result of following those steps?
- type: textarea
id: actual
attributes:
label: Actual result
description: What actually happens when you follow those steps?
- type: input
id: version
attributes:
label: Version/Git revision
description: What is the MOD version you are using? (You can find this info in the Package Manager)
validations:
required: true
- type: input
id: phpversion
attributes:
label: PHP Version
description: Your PHP version
placeholder: '8.0.0'
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs
description: Add any additional logs that may be useful, such as PHP error logs, SMF error logs, Database logs, Web Server logs
render: shell
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_Store*
ehthumbs.db
Thumbs.db
*.lnk
._*
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

### 4.3.4 - 30 June 2024
- ![Bug Fix](https://smftricks.com/assets/changelog/bug--minus.png) Fixed wrong query when getting the list of messages.

### 4.3.3 - 12 November 2023
- ![New Feature](https://smftricks.com/assets/changelog/tag--plus.png) Pre-select filtered prefixes when posting a new poll in boards.

Expand Down
34 changes: 20 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
![SMF Tricks - Free & Premium Mods and Themes for SMF](https://smftricks.com/logos/logo.png)
![SMF Tricks - Free & Premium Mods and Themes for SMF](https://smftricks.com/logos/logo.png) *Free & Premium MODs for SMF*

# SMF Post Prefix
![License](https://img.shields.io/badge/License-MPL%202.0-248049) ![Hooks Only](https://img.shields.io/badge/Hooks%20Only-Yes-6041a3) ![SMF 2.1](https://img.shields.io/badge/SMF-2.1-3f73a0)
> Allows you to set prefixes for topics and easily customize them with colors and icons.
Developed by [Diego Andrés](https://github.com/DiegoAndresCortes)

## Introduction
SMF Post Prefix mod allows you to set prefixes for your topics and easily customize them with colors and icons.

### Features
![Latest Release](https://img.shields.io/github/v/release/SMFTricks/SMF-Post-Prefix.svg?style=flat&logo=github&color=green) ![License](https://img.shields.io/badge/License-MIT-248049) ![License](https://img.shields.io/badge/License-MPL%202.0-248049) ![Hooks Only](https://img.shields.io/badge/Hooks%20Only-Yes-6041a3) ![SMF 2.1](https://img.shields.io/badge/SMF-2.1-3f73a0)
* Developed by [Diego Andrés](https://github.com/DiegoAndresCortes)
---
## ☑️ Features
- Add/Edit prefixes
- Enable/Disable prefix
- Enable/Disable prefix
- Select a color for the prefix
- Text color
- Background color
Expand All @@ -27,14 +24,23 @@ SMF Post Prefix mod allows you to set prefixes for your topics and easily custom
- Display prefixes in the boardindex and latest posts
- Display prefixes in the unread posts/replies action

### Localization
## 📦 Installation
It is installed as a traditional SMF MOD for SMF 2.1.x, just grab the latest release of the package and go to: *Admin > Main > Package Manager > Add Packages > Package to Upload > Select File > Upload*.

You can find detailed instructions and/or more documentation about the process in [Package Manager - Installing a Package](https://wiki.simplemachines.org/smf/SMF2.1:Package_manager#Installing_a_Package).

## 🌐 Localization
- ![English](https://www.simplemachines.org/site_images/lang/english.gif) English
- ![Spanish](https://www.simplemachines.org/site_images/lang/spanish_es.gif) Spanish
- ![Russian](https://www.simplemachines.org/site_images/lang/russian.gif) Russian
- ![Turkish](https://www.simplemachines.org/site_images/lang/turkish.gif) Turkish
- ![French](https://www.simplemachines.org/site_images/lang/french.gif) French
- ![Italian](https://www.simplemachines.org/site_images/lang/italian.gif) Italian
---
### [Crowdin](https://crowdin.com/project/smf-post-prefix-mod)
### [Changelog](https://github.com/SMFTricks/SMF-Post-Prefix/blob/master/CHANGELOG.md)
### [GitHub](https://github.com/SMFTricks/SMF-Post-Prefix)

You can contribute with your translation on the [Crowdin Project](https://crowdin.com/project/smf-post-prefix-mod).

## 🔨 Changelog
Review the changes and patches from the different releases/versions of the package in the [Changelog](https://github.com/SMFTricks/SMF-Post-Prefix/blob/master/CHANGELOG.md).

## ❓ Support
Please create a [New Issue](https://github.com/SMFTricks/SMF-Post-Prefix/issues/new/choose) and select the appropriate option or link for bugs, issues, or requesting new features. Use the provided links for support.
2 changes: 1 addition & 1 deletion Sources/PostPrefix/Integration/Boards.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ private function get_last_messages() : void
['t.id_first_msg', 't.id_last_msg', 't.id_prefix', 't.id_topic'],
Database::$_prefix_columns
),
'WHERE ' . (empty($modSettings['PostPrefix_prefix_all_msgs']) ? 't.id_first_msg IN ({array_int:messages})' : 'm.id_topic IN ({array_int:topics})') . '
'WHERE ' . (empty($modSettings['PostPrefix_prefix_all_msgs']) ? 't.id_first_msg IN ({array_int:messages})' : 'm.id_msg IN ({array_int:messages})') . '
AND t.id_prefix > {int:prefix_zero}
AND pp.status = {int:status}', false, (!empty($modSettings['PostPrefix_prefix_all_msgs']) ?
'LEFT JOIN {db_prefix}topics AS t ON (t.id_topic = m.id_topic)' : '') .
Expand Down
2 changes: 1 addition & 1 deletion package-info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<id>smftricks:postprefix</id>
<name>SMF Post Prefix</name>
<version>4.3.3</version>
<version>4.3.4</version>
<type>modification</type>
<install for="2.1 - 2.1.99">
<!-- Throw error if PHP version too old -->
Expand Down
75 changes: 37 additions & 38 deletions readme/readme.english.txt
Original file line number Diff line number Diff line change
@@ -1,61 +1,60 @@
[center][url="https://smftricks.com/"][img]https://smftricks.com/logos/logo.png[/img][/url][/center]

[img]https://img.shields.io/badge/License-MPL%202.0-248049[/img] [img]https://img.shields.io/badge/Hooks%20Only-Yes-6041a3[/img] [img]https://img.shields.io/badge/SMF-2.1-3f73a0[/img]
[center]
[url="https://smftricks.com/"][img]https://smftricks.com/logos/logo.png[/img][/url]
[i]Free & Premium MODs for SMF[/i]
[/center]

[b][size=5]SMF Post Prefix[/size][/b]
[size=0.8em]Developed by [url="https://smftricks.com/index.php?action=profile;u=1"]Diego Andrés[/url][/size]

[hr]
[size=3]Allows you to set prefixes for topics and easily customize them with colors and icons.[/size]
[size=2]Developed by [url="https://smftricks.com/index.php?action=profile;u=1"]Diego Andrés[/url][/size]

[size=4][color=#bf307a]Introduction[/color][/size]
[size=1em]SMF Post Prefix mod allows you to set prefixes for your topics and easily customize them with colors and icons.[/size]
[img]https://img.shields.io/github/v/release/SMFTricks/SMF-Post-Prefix.svg?style=flat&logo=github&color=green[/img] [img]https://img.shields.io/badge/License-MPL%202.0-248049[/img] [img]https://img.shields.io/badge/Hooks%20Only-Yes-6041a3[/img] [img]https://img.shields.io/badge/SMF-2.1-3f73a0[/img]

[size=3][color=#1f4882]Features[/color][/size]
[list]
[li][size=0.9em]Add/Edit prefixes[/size]
[color=#2346CD][size=4]☑️ Features[/size][/color]
[list]
[li][size=0.8em]Enable/Disable prefix[/size]
[list]
[li][size=0.8em]Enable/Disable prefix[/size][/li]
[li][font=Sans-serif]Add/Edit prefixes[/font]
[list type=circle]
[li][font=Sans-serif]Enable/Disable prefix[/font][/li]
[li][font=Sans-serif]Select a color for the prefix[/font]
[list type=circle]
[li][font=Sans-serif]Text color[/font][/li]
[li][font=Sans-serif]Background color[/font][/li]
[/list]
[/li]
[li][size=0.8em]Select a color for the prefix[/size]
[list]
[li][size=0.8em]Text color[/size][/li]
[li][size=0.8em]Background color[/size][/li]
[li][font=Sans-serif]Add a class for an icon[/font][/li]
[li][font=Sans-serif]Select allowed groups to use specific prefix[/font][/li]
[li][font=Sans-serif]Select boards where the prefix can be used[/font][/li]
[/list]
[/li]
[li][size=0.8em]Add a class for an icon[/size][/li]
[li][size=0.8em]Select allowed groups to use specific prefix[/size][/li]
[li][size=0.8em]Select boards where the prefix can be used[/size][/li]
[li][font=Sans-serif]Select boards where the prefix will be required (forced)[/font][/li]
[li][font=Sans-serif]Permissions[/font]
[list type=circle]
[li][font=Sans-serif]Manage prefixes[/font][/li]
[li][font=Sans-serif]Use prefixes (Global permission)[/font][/li]
[/list]
[/li]
[li][size=0.9em]Select boards where the prefix will be required (forced)[/size][/li]
[li][size=0.9em]Permissions[/size]
[list]
[li][size=0.8em]Manage prefixes[/size][/li]
[li][size=0.8em]Use prefixes (Global permission)[/size][/li]
[li][font=Sans-serif]Filter Topics by prefix[/font]
[list type=circle]
[li][font=Sans-serif]Enable the filter box on selected boards[/font][/li]
[/list]
[/li]
[li][size=0.9em]Filter Topics by prefix[/size]
[list]
[li][size=0.8em]Enable the filter box on selected boards[/size][/li]
[/list]
[/li]
[li][size=0.9em]Display prefixes in the boardindex and latest posts[/size][/li]
[li][size=0.9em]Display prefixes in the unread posts/replies action[/size][/li]
[li][font=Sans-serif]Display prefixes in the boardindex and latest posts[/font][/li]
[li][font=Sans-serif]Display prefixes in the unread posts/replies action[/font][/li]
[/list]

[size=3][color=#358234]Localization[/color][/size]
[size=4][color=#bf307a]📦 Installation[/color][/size]
It is installed as a traditional SMF MOD for SMF 2.1.x, just grab the latest release of the package and go to: [i]Admin > Main > Package Manager > Add Packages > Package to Upload > Select File > Upload[/i].

You can find detailed instructions and/or more documentation about the process in [url="https://wiki.simplemachines.org/smf/SMF2.1:Package_manager#Installing_a_Package"]Package Manager - Installing a Package[/url].

[size=4][color=#315CFB]🌐 Localization[/color][/size]
[img]https://www.simplemachines.org/site_images/lang/english.gif[/img] English
[img]https://www.simplemachines.org/site_images/lang/spanish_es.gif[/img] Spanish
[img]https://www.simplemachines.org/site_images/lang/russian.gif[/img] Russian
[img]https://www.simplemachines.org/site_images/lang/turkish.gif[/img] Turkish
[img]https://www.simplemachines.org/site_images/lang/french.gif[/img] French
[img]https://www.simplemachines.org/site_images/lang/italian.gif[/img] Italian

[hr]
You can contribute with your translation on the [url=https://crowdin.com/project/smf-post-prefix-mod]Crowdin Project[/url].

[size=3][url="https://crowdin.com/project/smf-post-prefix-mod"][color=#495475]Crowdin[/color][/url][/size]
[size=3][url="https://github.com/SMFTricks/SMF-Post-Prefix/blob/master/CHANGELOG.md"][color=#cc5d31]Changelog[/color][/url][/size]
[size=3][url="https://github.com/SMFTricks/SMF-Post-Prefix"][color=#5e2b82]GitHub[/color][/url][/size]
[size=4][color=#cc5d31]🔨 Changelog[/color][/size]
Review the changes and patches from the different releases/versions of the package in the [url="https://github.com/SMFTricks/SMF-Post-Prefix/blob/master/CHANGELOG.md"]Changelog[/url].

0 comments on commit 378e41f

Please sign in to comment.