Difference between revisions of "Extensions:Forums"
m (→Configuration) Tag: 2017 source edit |
(→Usage) Tag: 2017 source edit |
||
Line 31: | Line 31: | ||
'''Optional:''' Include this widget in any page (homepage suggested) to include the most recent 5 posts: <pre>@include('widgets._recent_forum_posts')</pre> | '''Optional:''' Include this widget in any page (homepage suggested) to include the most recent 5 posts: <pre>@include('widgets._recent_forum_posts')</pre> | ||
+ | '''Note:''' Deleting a comment that has had direct replies to it will transfer "parentage" of the comment to the the comment's parent. To hinder this, consider adjusting the delete Gate or wrap the delete button in an If statement to check if the user is staff. | ||
+ | |||
+ | '''Note:''' Deleting a thread will delete comments within it. | ||
== Troubleshooting == | == Troubleshooting == |
Revision as of 21:36, 7 March 2021
Description | Forums for your Lorekeeper site. |
---|---|
Author(s) | Preimpression |
Status | Testing |
Github | extension/forums |
LK Version | Unspecified |
Contains a Migration | |
This extension was built using Develop and therefore requires Laravel 8 and PHP &.4.
Forums for your site, utilizing the Comments extension by Uri and Newt.
This extension is still in testing and may have bugs. Strongly advise to test on local first.
Installation
- Pull the branch and merge it into your main branch
- Run
php artisan migrate
- Run
php artisan update-extension-tracker
Configuration
Permissions may be set at the forum level and may overflow to the grandchild level - but to be safe, you should set permissions per forum.
Usage
Create Forums in the Admin Panel.
Users' post page from their profile will be visible to logged in users but not guests, due to the permission-checking code.
Forums with no parent forum will be considered Categories and will not show the form to create threads, nor will any threads created in them be visible without the url or in the widget.
Optional: Include this widget in any page (homepage suggested) to include the most recent 5 posts:
@include('widgets._recent_forum_posts')
Note: Deleting a comment that has had direct replies to it will transfer "parentage" of the comment to the the comment's parent. To hinder this, consider adjusting the delete Gate or wrap the delete button in an If statement to check if the user is staff.
Note: Deleting a thread will delete comments within it.
Troubleshooting
Permissions are a bit janky. If anyone has any suggestions, please let me know.
Planned
- v.1.1.0 - Allow for locking of individual threads.
- ??? - Revise permissions.
See Also
Discord: Uri#2154