Difference between revisions of "Extensions:Sales Image"

From Lorekeeper Wiki
Jump to navigation Jump to search
Tag: 2017 source edit
Tag: 2017 source edit
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
  
 
Image file type supported for the focal image is PNG.
 
Image file type supported for the focal image is PNG.
 +
 +
There is a version of this extension that integrates it with [[Extension: Sales Widget]] so that the sales widget may display focal images if set. You can find this extension on Github on the branch https://github.com/liwoyadan/lorekeeper/tree/extension/sales-image-widget and a preview of the widget displaying a focal image in the images section below.
 
== Installation ==
 
== Installation ==
 
Pull the branch and resolve any merge conflicts. Afterwards, you can run the following commands:
 
Pull the branch and resolve any merge conflicts. Afterwards, you can run the following commands:
Line 20: Line 22:
 
<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.
 +
File:Sales Image Three.png|alt=A default sales widget displaying one sales post on top with a character thumbnail and another sales post beneath it with a focal image instead|The sales image and sales widget extension integrated together, showing the sales widget displaying one sales post with an attached character and no focal image and another sales post showing a focal image instead.
 
</gallery>
 
</gallery>
  
 
== Troubleshooting ==
 
== Troubleshooting ==
 
You can ask for help in the Lorekeeper Discord.
 
You can ask for help in the Lorekeeper Discord.

Latest revision as of 15:54, 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.

There is a version of this extension that integrates it with Extension: Sales Widget so that the sales widget may display focal images if set. You can find this extension on Github on the branch https://github.com/liwoyadan/lorekeeper/tree/extension/sales-image-widget and a preview of the widget displaying a focal image in the images section below.

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.