Difference between revisions of "Extensions:Free MYOs"

From Lorekeeper Wiki
Jump to navigation Jump to search
(Create Extensions:Free MYOs Page)
Tag: 2017 source edit
m (Fix a few typos, image alignment, and missing default information)
Tag: 2017 source edit
Line 1: Line 1:
 
{{Extensioninfobox|title=Free MYOs|desc=Allow users to create free MYOs|auth=AnimatedCritter|status=stable|github={{Github|user=AnimatedCritter|branch=extension/free-myos}}|LKVer=2.0.0|migration=yes|package=no}}
 
{{Extensioninfobox|title=Free MYOs|desc=Allow users to create free MYOs|auth=AnimatedCritter|status=stable|github={{Github|user=AnimatedCritter|branch=extension/free-myos}}|LKVer=2.0.0|migration=yes|package=no}}
An alternative to the slot-box system, this extension was made in an attempt to reduce the amount of menuing required to access free MYO slots, with open/semi-open species in mind!
+
An alternative to the slot-box system, this extension was made in an attempt to reduce the amount of menuing required to access free MYO slots!
  
 
A "Create Free MYO" button is added to the navbar and /characters/myos page, redirecting users to a form and admin-select pool of species/subtypes they can select to create a free MYO slot with. Depending on how the extension is set up, users can create as many MYOs as they'd like!
 
A "Create Free MYO" button is added to the navbar and /characters/myos page, redirecting users to a form and admin-select pool of species/subtypes they can select to create a free MYO slot with. Depending on how the extension is set up, users can create as many MYOs as they'd like!
Line 28: Line 28:
 
'''Free MYO Slot Name:'''
 
'''Free MYO Slot Name:'''
  
By default, free MYO slots are named, well, "Free MYO". If you'd like to change this, go into resources\views\home\create_free_myo.blade.php, find <code>Form::hidden('name', 'Free MYO')</code> and change <code>'Free MYO'</code> to whatever you prefer (e.g. 'Example MYO').
+
By default, free MYO slots are named, well, "Free MYO". If you'd like to change this, go into resources\views\home\create_free_myo.blade.php, find <code>Form::hidden('name', 'Free MYO')</code> and change <code>'Free MYO'</code> to whatever you prefer (e.g. 'Example Slot').
  
  
Line 35: Line 35:
 
<code>free_myos_open</code>
 
<code>free_myos_open</code>
 
* Determines if users can access the free MYO page.
 
* Determines if users can access the free MYO page.
* This only prevents new slots from being created. This does not halt design submissions for pre-exsisting slots.
+
* This only prevents new slots from being created. This does not halt design submissions for pre-existing slots.
 
* Closed by default to allow time for any initial setup while the site is live.*
 
* Closed by default to allow time for any initial setup while the site is live.*
  
 
<code>free_myos_max_number</code>
 
<code>free_myos_max_number</code>
 
* This sets the limit for how many free MYOs a user can create.
 
* This sets the limit for how many free MYOs a user can create.
* When set to 0, users can make unlimied MYOs.
+
* When set to 0, users can make unlimited MYOs.
 
* You can always change this setting.
 
* You can always change this setting.
 
* When users reach this number, they can no longer access the creation form.
 
* When users reach this number, they can no longer access the creation form.
Line 60: Line 60:
 
* ...<code>is_giftable</code>
 
* ...<code>is_giftable</code>
 
* ...<code>is_resellable</code>
 
* ...<code>is_resellable</code>
** Self-explanitory, although resale values will need to be set during the design request approval process.
+
** Self-explanatory, although resale values will need to be set during the design request approval process.
 +
** By default, MYOs are tradeable and giftable, but not resellable.
  
  
<small>*If you plan on changing is_free_myo_usable values while your site is live, I highly suggest temporarily disable free_myos_open in site settings.</small>
+
<small>*If you plan on changing is_free_myo_usable values while your site is live, I highly suggest that you temporarily disable free_myos_open in site settings.</small>
 
== Troubleshooting ==
 
== Troubleshooting ==
 
If you are having any issues (or have suggestions to improve this extension) you can find me over on the Lorekeeper Discord server (AnimatedCritter#7094)!
 
If you are having any issues (or have suggestions to improve this extension) you can find me over on the Lorekeeper Discord server (AnimatedCritter#7094)!
 
== Images ==
 
== Images ==
[[File:Screenshot 2022-10-06 214731.png|thumb]][[File:Screenshot 2022-10-06 214822.png|thumb]]
+
[[File:Screenshot 2022-10-06 214731.png|none|thumb]][[File:Screenshot 2022-10-06 214822.png|none|thumb]]

Revision as of 21:10, 8 October 2022

Free MYOs
Description Allow users to create free MYOs
Author(s) AnimatedCritter
Status stable
Github extension/free-myos
LK Version 2.0.0
Contains a Migration






An alternative to the slot-box system, this extension was made in an attempt to reduce the amount of menuing required to access free MYO slots!

A "Create Free MYO" button is added to the navbar and /characters/myos page, redirecting users to a form and admin-select pool of species/subtypes they can select to create a free MYO slot with. Depending on how the extension is set up, users can create as many MYOs as they'd like!

Installation

Pull and merge the branch, making sure to address any merge issues.

Afterwards, run the following commands in your console:

php artisan migrate

php artisan add-site-settings

php artisan update-extension-tracker

Configuration

Set species to is_free_myo_usable*:

This is required for setup! If no species with this value set to true are found, the creation page will instruct users to submit a bug report, and they will not be able to create free MYOs.

To set a species as is_free_myo_usable, go into your admin menu and find your species data. When you click edit (or create) you will find a toggle next to the name field. Turn it on and submit the form. Users will now be able to select that species for their free MYO slot!


Set subtypes to is_free_myo_usable*:

The same process as species, although subtypes aren't required--even if you have free_myos_require_subtypes enabled in site settings (see below).


Free MYO Slot Name:

By default, free MYO slots are named, well, "Free MYO". If you'd like to change this, go into resources\views\home\create_free_myo.blade.php, find Form::hidden('name', 'Free MYO') and change 'Free MYO' to whatever you prefer (e.g. 'Example Slot').


This extension has seven (7) site settings:

free_myos_open

  • Determines if users can access the free MYO page.
  • This only prevents new slots from being created. This does not halt design submissions for pre-existing slots.
  • Closed by default to allow time for any initial setup while the site is live.*

free_myos_max_number

  • This sets the limit for how many free MYOs a user can create.
  • When set to 0, users can make unlimited MYOs.
  • You can always change this setting.
  • When users reach this number, they can no longer access the creation form.
  • By default, users can create unlimited MYOs.

free_myos_rarity

  • The ID of the highest rarity a user's free MYO can be.
  • Set to 0 to allow for any rarity.
  • By default, users aren't bound by any rarity.

free_myos_require_subtype

  • Requires users to choose a subtype after selecting it's correlating species.
  • This only applies if the species has a subtype marked as is_free_myo_usable!
    • If a species doesn't have a subtype available, no subtype is applied.
  • Disabled by default.

free_myos_...

  • ...is_tradeable
  • ...is_giftable
  • ...is_resellable
    • Self-explanatory, although resale values will need to be set during the design request approval process.
    • By default, MYOs are tradeable and giftable, but not resellable.


*If you plan on changing is_free_myo_usable values while your site is live, I highly suggest that you temporarily disable free_myos_open in site settings.

Troubleshooting

If you are having any issues (or have suggestions to improve this extension) you can find me over on the Lorekeeper Discord server (AnimatedCritter#7094)!

Images

Screenshot 2022-10-06 214731.png
Screenshot 2022-10-06 214822.png