-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fixes, styling tweaks, SEO tags, preload data, README
- Loading branch information
1 parent
2b97f0c
commit cda249d
Showing
17 changed files
with
525 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,70 @@ | ||
# 🗂️ Flarum Blog | ||
First Flarum blog extension. | ||
# 📰 Flarum Blog | ||
This Flarum extension will add a blog system to your forum. | ||
|
||
If you have any feedback, let us know! Do you experience issues? You can report issues on the Flarum Forum or on [GitHub](https://github.com/v17development/flarum-blog). | ||
|
||
## ⚠️ Flarum beta-13 only | ||
This extension is currently Flarum beta-13 only, beta-14 support will be added later. | ||
This extension is currently Flarum **beta-13 only**, beta-14 support will be added later. | ||
|
||
## 📥 Installation | ||
If you like to install this extension, run the following command: | ||
> **⚠️ Notice:** Flarum beta-13 only | ||
``` | ||
composer require v17development/flarum-blog | ||
``` | ||
|
||
> **⚠️ Notice:** Flarum beta-13 only | ||
## ♻ Updating | ||
Run the following command on your server to update the plugin | ||
``` | ||
composer update v17development/flarum-blog | ||
``` | ||
|
||
## 🦸 Features | ||
- Adds a 'Blog' page and article detail page to your forum | ||
- Uses the advantages of the `flarum-tags` extension | ||
- Fully integrated SEO tags using the `flarum-seo` extension | ||
- Add summary to an article | ||
- Add an image to an article | ||
- Highlight a post | ||
- Disable or allow comments by default | ||
- Blog posts could require a review (if set up) | ||
- Custom blog and review role | ||
- Friendly user interface | ||
- Set 'blog overview' as home page | ||
- Works with already existing discussions/articles | ||
- Including ghost loading | ||
|
||
## 📝 To-do: | ||
- Add RSS (possible) | ||
- Upload images (using `fof-upload`) | ||
|
||
## 🙋 Questions, feedback? | ||
If you have any questions related to this extension, don't hesistate and send us an email, or ask your question on our [V17 Development Slack workspace](https://join.slack.com/t/v17dev/shared_invite/zt-g6ky1fd3-RreB9UB~636jL~QjDGfZHg). | ||
|
||
## ❤️ Sponsored by Glowing Blue | ||
This extension is sponsored by [Glowing Blue](https://glowingblue.com/). | ||
This extension is sponsored by [Glowing Blue](https://glowingblue.com/). | ||
|
||
## 🖼️ Screenshots | ||
### Blog overview page: | ||
|
||
[](https://gyazo.com/dfbba7a46aa153d8c6905733bd9b58c0) | ||
|
||
### Blog article: | ||
[](https://gyazo.com/32e901c6aa4cc85144777d16756ec7b0) | ||
|
||
--- | ||
### Blog tools: | ||
|
||
[](https://imgur.com/a/zwClPHd) | ||
|
||
--- | ||
### Blog settings: | ||
|
||
[](https://imgur.com/a/mnxRtBh) | ||
|
||
--- | ||
### Admin settings: | ||
|
||
[](https://imgur.com/a/QMTn3Ud) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import DiscussionComposer from 'flarum/components/DiscussionComposer'; | ||
|
||
export default class BlogComposer extends DiscussionComposer { | ||
onsubmit() { | ||
this.loading = true; | ||
|
||
const data = this.data(); | ||
|
||
app.store.createRecord('discussions').save(data).then( | ||
article => { | ||
app.composer.hide(); | ||
m.route(app.route('blogArticle', { id: article.id() + '-' + article.slug() })); | ||
}, | ||
this.loaded.bind(this) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function tooltip(element) { | ||
$(element).tooltip(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.