Difference between revisions of "Extensions:Character Warnings"
m (→Configuration) Tag: 2017 source edit |
m (forgot Newt is known as ScuffedNewt nowadays) Tag: 2017 source edit |
||
(18 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Extensioninfobox|title=Character Warnings|desc=Allows users to add warnings to characters|auth=redcr0wz|status=stable|github={{Github|user=redcr0wz|branch=extension/character-warnings}}|LKVer=2.1.3|migration=yes|package=no}} | {{Extensioninfobox|title=Character Warnings|desc=Allows users to add warnings to characters|auth=redcr0wz|status=stable|github={{Github|user=redcr0wz|branch=extension/character-warnings}}|LKVer=2.1.3|migration=yes|package=no}} | ||
− | Allows users to add warnings to characters. Useful in case you have designs on your website that need warning, such as gory | + | |
+ | {| style="margin: 4px auto; width: 80%; border: 1px solid #9ADC38; background: #A1F524;" | ||
+ | |- | ||
+ | | '''<u>THIS EXTENSION IS PART OF v3.1.0</u>''' | ||
+ | |- | ||
+ | | This extension has been merged into the v3.1.0 branch as [https://github.com/corowne/lorekeeper/commit/f7987ae66db4ea3b473f557e977a53cfed88d7d8 Character Warnings]. | ||
+ | |- | ||
+ | | v3.1.0 update has been a collaboration between [https://github.com/redcr0wz/ Lexi], [https://github.com/itinerare Mercury], [https://github.com/ScuffedNewt/ ScuffedNewt] and [https://github.com/SpeedyD/ Speedy]. | ||
+ | |} | ||
+ | |||
+ | Allows users to add warnings to characters, akin to Toyhouse's warning pages. Useful in case you have designs on your website that need warning, such as gory or body horror designs. | ||
== Installation == | == Installation == | ||
* Pull the branch | * Pull the branch | ||
− | * | + | * Deal with conflicts |
− | * | + | * Run <code>php artisan migrate</code> |
+ | * Run <code>php artisan update-extension-tracker</code> | ||
+ | * Run <code>php artisan optimize</code> twice | ||
* Enjoy ^_^ | * Enjoy ^_^ | ||
Line 10: | Line 22: | ||
The warning image is the content warning thumbnail in site settings. I suggest making it 200x200 in size. | The warning image is the content warning thumbnail in site settings. I suggest making it 200x200 in size. | ||
− | Adjust the size in this line <code>profile.blade.php</code> | + | Adjust the size of the warning pop-up in this line in <code>profile.blade.php</code>. Change the percentage in "width:30%;". |
<code><img src="{ { asset('/images/content_warning.png') } }" style="width:30%;" alt="Content Warning"></img></code> | <code><img src="{ { asset('/images/content_warning.png') } }" style="width:30%;" alt="Content Warning"></img></code> | ||
== Usage == | == Usage == | ||
− | Users can | + | Warnings can be added under "Edit Profile". |
+ | |||
+ | Users can choose if censored icons and/or pop-up warnings are visible or not for them in their settings, just in case they don't need content warnings. | ||
+ | |||
+ | Please note that this extension does not affect embeds at the moment. | ||
+ | |||
== Troubleshooting == | == Troubleshooting == | ||
Contact redcrowz on Discord if you encounter any issues! This is my first extension and my coding experience is pretty limited, but I'll do my best! | Contact redcrowz on Discord if you encounter any issues! This is my first extension and my coding experience is pretty limited, but I'll do my best! | ||
Line 26: | Line 43: | ||
== See Also == | == See Also == | ||
− | Keep these extensions in mind if you plan on installing this: | + | Keep these extensions in mind if you plan on installing this, alongside anything else that involves character thumbnails on site: |
− | * | + | * [[Extensions:Featured Character|Extensions:Featured Character]] |
− | * | + | * [[Extensions:Selected Character|Extensions:Selected Character]] |
− | * | + | * [[Extensions:Random Spotlight|Extensions:Random Spotlight]] |
* https://github.com/ne-wt/lorekeeper/tree/extension/character-folders | * https://github.com/ne-wt/lorekeeper/tree/extension/character-folders |
Latest revision as of 02:56, 16 September 2024
Description | Allows users to add warnings to characters |
---|---|
Author(s) | redcr0wz |
Status | stable |
Github | extension/character-warnings |
LK Version | 2.1.3 |
Contains a Migration | |
THIS EXTENSION IS PART OF v3.1.0 |
This extension has been merged into the v3.1.0 branch as Character Warnings. |
v3.1.0 update has been a collaboration between Lexi, Mercury, ScuffedNewt and Speedy. |
Allows users to add warnings to characters, akin to Toyhouse's warning pages. Useful in case you have designs on your website that need warning, such as gory or body horror designs.
Installation
- Pull the branch
- Deal with conflicts
- Run
php artisan migrate
- Run
php artisan update-extension-tracker
- Run
php artisan optimize
twice - Enjoy ^_^
Configuration
The warning image is the content warning thumbnail in site settings. I suggest making it 200x200 in size.
Adjust the size of the warning pop-up in this line in profile.blade.php
. Change the percentage in "width:30%;".
<img src="{ { asset('/images/content_warning.png') } }" style="width:30%;" alt="Content Warning"></img>
Usage
Warnings can be added under "Edit Profile".
Users can choose if censored icons and/or pop-up warnings are visible or not for them in their settings, just in case they don't need content warnings.
Please note that this extension does not affect embeds at the moment.
Troubleshooting
Contact redcrowz on Discord if you encounter any issues! This is my first extension and my coding experience is pretty limited, but I'll do my best!
Images
See Also
Keep these extensions in mind if you plan on installing this, alongside anything else that involves character thumbnails on site: