Difference between revisions of "Extensions:Character TH Profile Link"

From Lorekeeper Wiki
Jump to navigation Jump to search
(created page for extension)
Tag: 2017 source edit
 
(added information)
Tag: 2017 source edit
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}}|migration=yes/no|package=yes/no}}
+
{{Extensioninfobox|title=Character TH Profile Link|desc=Add a button on the ML entry for external profile pages such as ToyHouse.|auth=Junijwi|status=stable|github={{Github|user=junijwi|branch=character-THprofile-buttons}}|migration=yes|package=no}}
 
<!-- Put a short summary of your extension here! -->
 
<!-- Put a short summary of your extension here! -->
 +
This extension creates a column on the character profiles database table to save a link. This link appears next to the bookmark button when active, and is hidden when not set. The link has a house fontawesome icon, and is similar in style to the bookmark button. Both the owner of a character and an admin can change the link in the character's profile settings page. The link itself appears on all character pages that load the header (the portion responsible for the character number, name, bookmark button, etc).
 
== Installation ==
 
== Installation ==
 
<!-- Describe installation. Include any requirements (such as packages), necessary commands, etc. -->
 
<!-- Describe installation. Include any requirements (such as packages), necessary commands, etc. -->
 +
Pull the branch, push, and run <code>php artisan migrate</code>.
 +
 +
The character limit is set to 100 by default for the link field. Feel free to change it in the migration file before pushing + running the migration if you want it to be larger.
 
== Configuration ==
 
== Configuration ==
 
<!-- Is any configuration necessary? Describe it here! -->
 
<!-- Is any configuration necessary? Describe it here! -->
 +
You may want to change the wording and placement of the button. That can be done at <code>resources/views/character/_header.blade.php</code> by changing the i class icon or the text (Profile). Move the entire section (lines 13-15 starting with <code>@if($character->profile->link)</code> and ending with <code>@endif</code>) if you want to move the button elsewhere.
 
== Usage ==
 
== Usage ==
 
<!-- Is there anything users should know about using your extension? -->
 
<!-- Is there anything users should know about using your extension? -->
 
== Troubleshooting ==
 
== Troubleshooting ==
 
<!-- Are there known issues or errors that require user action? Who should they contact, and where, for support? -->
 
<!-- Are there known issues or errors that require user action? Who should they contact, and where, for support? -->
 +
Feel free to @ me in the discord (Juni#0448) for any issues.
 
== See Also ==
 
== See Also ==
 
<!-- Any relevant other pages. You may consider linking to related extensions, for instance. -->
 
<!-- Any relevant other pages. You may consider linking to related extensions, for instance. -->
 

Revision as of 17:25, 27 August 2020

Character TH Profile Link
Description Add a button on the ML entry for external profile pages such as ToyHouse.
Author(s) Junijwi
Status stable
Github character-THprofile-buttons
LK Version Unspecified
Contains a Migration






This extension creates a column on the character profiles database table to save a link. This link appears next to the bookmark button when active, and is hidden when not set. The link has a house fontawesome icon, and is similar in style to the bookmark button. Both the owner of a character and an admin can change the link in the character's profile settings page. The link itself appears on all character pages that load the header (the portion responsible for the character number, name, bookmark button, etc).

Installation

Pull the branch, push, and run php artisan migrate.

The character limit is set to 100 by default for the link field. Feel free to change it in the migration file before pushing + running the migration if you want it to be larger.

Configuration

You may want to change the wording and placement of the button. That can be done at resources/views/character/_header.blade.php by changing the i class icon or the text (Profile). Move the entire section (lines 13-15 starting with @if($character->profile->link) and ending with @endif) if you want to move the button elsewhere.

Usage

Troubleshooting

Feel free to @ me in the discord (Juni#0448) for any issues.

See Also