Skip to content

Update PinStickiedDiscussionsToTop.php to fix a bug. #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,29 @@ Screenshots:
- [Super Sticky Discussion in All Discussions List](https://i.imgur.com/ANKsbBG.png)
- [Super Sticky & Tag Sticky Discussion in Tag's Discussion List](https://i.imgur.com/7q52yb4.png)

# Attention! 注意!

Everything on this page, except this section and the download command, is taken from [the-turk/flarum-stickiest(3.0.0)](https://github.com/the-turk/flarum-stickiest/releases/tag/3.0.0)

此页面的所有内容,除了本节和下载命令,均来自 [the-turk/flarum-stickiest(3.0.0)](https://github.com/the-turk/flarum-stickiest/releases/tag/3.0.0)

If you are installing for the first time, just follow the original

如果你是首次安装,遵循原文即可

If you want to uninstall the-turk/flarum-stickiest and install the modified version of stickiest from this repository, you must pay attention to the following two points.

如果你想要卸载已安装的 the-turk/flarum-stickiest 并安装本仓库的修改版 stickiest ,必须注意以下两点:

- You must close and purge the-turk/flarum-stickiest before installing and opening lrysia/flarum-stickiest
- 在安装并开启 lrysia/flarum-stickiest 前,必须关闭并重置 the-turk/flarum-stickiest
- After Purging the-turk/flarum-stickiest, the database changes caused by the original plugin will be restored, so this plugin will not inherit the settings/database information of the original plugin
- 重置 the-turk/flarum-stickest 后,原插件造成的数据库变动将被还原,因此本插件不会继承原插件的设置/数据库信息

## Installation

```bash
composer require the-turk/flarum-stickiest:^3.0.0
composer require lrysia/flarum-stickiest
```

If you ever see an error like `General error: 1824 Failed to open the referenced table 'tags' ...` while activating `3.0.x`, check if the engine for the `tags` table is InnoDB or not. If not, try switching that to the InnoDB then run and try activating again:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "the-turk/flarum-stickiest",
"name": "lrysia/flarum-stickiest",
"description": "Stick, super stick or tag stick discussions to the top of the list.",
"keywords": [
"flarum",
Expand Down
2 changes: 1 addition & 1 deletion extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
->register(PinProvider::class),

(new Extend\Settings())
->default('the-turk-stickiest.badge_icon', 'fas fa-layer-group')
->default('the-turk-stickiest.badge_icon', 'fas fa-bell')
->default('the-turk-stickiest.display_tag_sticky', '1')
->serializeToForum('stickiest.badge_icon', 'the-turk-stickiest.badge_icon'),

Expand Down
148 changes: 147 additions & 1 deletion js/dist/admin.js

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

2 changes: 1 addition & 1 deletion js/dist/admin.js.map

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

Loading