Difference between revisions of "Extensions:Shop Quotes"

From Lorekeeper Wiki
Jump to navigation Jump to search
(Creation of Shop Quotes extension.)
Tag: 2017 source edit
 
m
Tag: 2017 source edit
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Extensioninfobox|title=the extension's name|desc=A short description|auth=Author(s)|status=status (such as WIP, testing, stable)|github={{Github|user=username|branch=branch}}|LKVer=What Lorekeeper version the ext is built on|migration=yes/no|package=yes/no}}
 
<!-- Put a short summary of your extension here! -->
 
== Installation ==
 
<!-- Describe installation. Include any requirements (such as packages), necessary commands, etc. -->
 
== Configuration ==
 
<!-- Is any configuration necessary? Describe it here! -->
 
== Usage ==
 
<!-- Is there anything users should know about using your extension? -->
 
== Troubleshooting ==
 
<!-- Are there known issues or errors that require user action? Who should they contact, and where, for support? -->
 
== Images ==
 
<!-- Do you have any images to show what it looks like in action? -->
 
== See Also ==
 
<!-- Any relevant other pages. You may consider linking to related extensions, for instance. -->
 
 
{{Extensioninfobox|title=Shop Quotes|desc=Allows adding dialogue-esque quotes to each shop.|auth=Min|status=Stable|github={{Github|user=liwoyadan|branch=extension/shop-quotes}}|LKVer=3.0.0|migration=yes|package=no}}
 
{{Extensioninfobox|title=Shop Quotes|desc=Allows adding dialogue-esque quotes to each shop.|auth=Min|status=Stable|github={{Github|user=liwoyadan|branch=extension/shop-quotes}}|LKVer=3.0.0|migration=yes|package=no}}
 
Lets site owners and staff able to create/edit shops to define a list of dialogue-esque quotes in the admin panel. When set, each visit to the shop's page will randomly pluck one of the available quotes and display them on the page with a typewriter-like effect.
 
Lets site owners and staff able to create/edit shops to define a list of dialogue-esque quotes in the admin panel. When set, each visit to the shop's page will randomly pluck one of the available quotes and display them on the page with a typewriter-like effect.
  
 
== Installation ==
 
== Installation ==
Pull the branch, resolve any conflicts, and run `php artisan migrate`.
+
Pull the branch, resolve any conflicts, and run <code>php artisan migrate</code>.
  
 
== Configuration ==
 
== Configuration ==
By default quotes will display in a card component that appears below the shop's overall description, if quotes are set. The Javascript responsible for initializing the typewriter effect is found in `resources/views/shops/shop.blade.php` and specifically targets an element with the class `quote` that's within a parent that has the class `quote-display`. You can either move this container around in the blade itself or you can remove it and instead format it within the shop's description HTML from the admin panel.
+
By default quotes will display in a card component that appears below the shop's overall description, if quotes are set. The Javascript responsible for initializing the typewriter effect is found in <code>resources/views/shops/shop.blade.php</code> and specifically targets an element with the class <code>quote</code> that's within a parent that has the class <code>quote-display</code>. You can either move this container around in the blade itself or you can remove it and instead format it within the shop's description HTML from the admin panel.
  
You can remove the typewriter effect by just removing the Javascript and instead sticking `{!! $shop->randomQuote !!}` wherever in the blade you want the quote to be displayed.
+
You can remove the typewriter effect by just removing the Javascript and instead sticking <code>{!! $shop->randomQuote !!}</code> wherever in the blade you want the quote to be displayed.
 
== Images ==
 
== Images ==
 
(Eventually...)
 
(Eventually...)
 
== Troubleshooting ==
 
== Troubleshooting ==
 
You can find me in, or ask for help, in the Lorekeeper Discord.
 
You can find me in, or ask for help, in the Lorekeeper Discord.

Latest revision as of 17:40, 23 August 2025

Shop Quotes
Description Allows adding dialogue-esque quotes to each shop.
Author(s) Min
Status Stable
Github extension/shop-quotes
LK Version 3.0.0
Contains a Migration






Lets site owners and staff able to create/edit shops to define a list of dialogue-esque quotes in the admin panel. When set, each visit to the shop's page will randomly pluck one of the available quotes and display them on the page with a typewriter-like effect.

Installation

Pull the branch, resolve any conflicts, and run php artisan migrate.

Configuration

By default quotes will display in a card component that appears below the shop's overall description, if quotes are set. The Javascript responsible for initializing the typewriter effect is found in resources/views/shops/shop.blade.php and specifically targets an element with the class quote that's within a parent that has the class quote-display. You can either move this container around in the blade itself or you can remove it and instead format it within the shop's description HTML from the admin panel.

You can remove the typewriter effect by just removing the Javascript and instead sticking {!! $shop->randomQuote !!} wherever in the blade you want the quote to be displayed.

Images

(Eventually...)

Troubleshooting

You can find me in, or ask for help, in the Lorekeeper Discord.