Difference between revisions of "Extensions:Sales Image"

From Lorekeeper Wiki
Jump to navigation Jump to search
Tag: 2017 source edit
Tag: 2017 source edit
Line 20: Line 20:
 
<gallery>
 
<gallery>
 
File:Sales Image One.png|alt=A Lorekeeper sales post with a focal image displaying three different cats and no attached characters|The default setting of the extension showing a single focal image on the top of a sales post, beneath the title, with no attached characters visible.
 
File:Sales Image One.png|alt=A Lorekeeper sales post with a focal image displaying three different cats and no attached characters|The default setting of the extension showing a single focal image on the top of a sales post, beneath the title, with no attached characters visible.
 +
File:Sales Image Two.png|alt=A Lorekeeper sales post with a focal image displaying three different cats and two attached character thumbnails|The alternate setting of the extension showing a single focal image on the top of a sales post, beneath the title, with attached characters visible.
 
</gallery>
 
</gallery>
  
 
== Troubleshooting ==
 
== Troubleshooting ==
 
You can ask for help in the Lorekeeper Discord.
 
You can ask for help in the Lorekeeper Discord.

Revision as of 14:22, 23 October 2024

Sales Image
Description Allows the uploading of a single focal image to sales posts
Author(s) Min
Status stable
Github extension/sales-image
LK Version 3.0.0
Contains a Migration






Allows staff to upload a single focal image to sales post that will be displayed on top of the sales's text in it's own box. Handy if you wanted to display a big batch image as a focus rather than multiple character thumbnails and/or having the image be within the sales's body text.

Comes with an additional site setting that allows you to choose if only the focal image (if set) is displayed or if the focal image is displayed along with all attached characters.

Image file type supported for the focal image is PNG.

Installation

Pull the branch and resolve any merge conflicts. Afterwards, you can run the following commands:

php artisan migrate

php artisan add-site-settings

php artisan optimize (x2)

Configuration

There is a sales_image_display site setting. Setting it to 0 (default) will only show the focal image if it is uploaded. Setting it to 1 will show the focal image along with all attached characters. If no focal image is uploaded or it is removed, then it will simply display attached characters (if any).

Images

Troubleshooting

You can ask for help in the Lorekeeper Discord.