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

From Lorekeeper Wiki
Jump to navigation Jump to search
(credit added)
Tag: 2017 source edit
m (format whoopsie)
Tag: 2017 source edit
Line 17: Line 17:
 
== 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. -->
Big thank you to github={{Github|user=lumephobia|branch=user-link-addon}}|migration=yes|package=no}} for essentially serving as a reference for how to do this :)
+
Big thank you to github={{Github|user=lumephobia|branch=user-link-addon}} for essentially serving as a reference for how to do this :)

Revision as of 18:31, 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

Big thank you to github=user-link-addon

for essentially serving as a reference for how to do this :)