Difference between revisions of "Extensions:Character TH Profile Link"
m (continued) Tag: 2017 source edit |
m (Added updating to v2 link) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{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}} | + | {{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|modified-main=yes}} |
<!-- 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). | 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). | ||
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|user=lumephobia|branch=user-link-addon}} for essentially serving as a reference for how to do this :) | + | Big thank you to {{Github|user=lumephobia|branch=user-link-addon}}. for essentially serving as a reference for how to do this :) |
+ | * [[Updating:_to_2.0.0]] |
Latest revision as of 09:09, 25 March 2024
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 | |
Is part of LK v2 (modified-main) | |
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 user-link-addon . for essentially serving as a reference for how to do this :)