Extensions:Trade Listings

From Lorekeeper Wiki
Revision as of 09:38, 5 August 2020 by Mercury (talk | contribs)
Jump to navigation Jump to search
Trade Listings
Description Adds creation and display of trade listings.
Author(s) Mercury
Status Testing
Github trade-listings
LK Version Unspecified
Contains a Migration






This builds upon Extensions:Stacked Inventories! Not only is much credit due there, it also bears mention that the changes made there are necessarily included in this extension.

Adds a trade listing system. Users can enter in comments, preferred method(s) of contact (required), and attach both requested items/currencies/other (not handled by Lorekeeper) goods/services and offered items/characters/currencies/other goods/services. Listings are then displayed for a set duration or until manually marked expired by a user or admin. Listings, both past and present, may be linked and viewed via their id. Expired listings are displayed for the user that created them in a page for reference, but otherwise hidden. Note that this system only displays the information entered and does not directly interface with the trade system; it is only a means for users to communicate, more or less.

This also adds a field for an optional-but-recommended proof-of-terms link to trades themselves, but does not make any other changes to the trade system.

Installation

Pull; run

php artisan migrate

and

php artisan add-site-settings

Configuration

Add a link to /trades/listings to your navbar; it is not done automatically to account for the wide variance in navbars across sites.

The duration that trade listings are displayed for can be configured in the site settings admin panel; the default is 14 days/2 weeks.

Usage

Troubleshooting

I can be found in the Lorekeeper discord if any issues arise!

See Also