-
Notifications
You must be signed in to change notification settings - Fork 164
Extended Mentions: Re-Extended #1097
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
SpeedyD
wants to merge
14
commits into
lk-arpg:develop
Choose a base branch
from
SpeedyD:feat/ext-mentions-v2
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c200602
Adding Uri's Item parsing
SpeedyD 2de8394
Trait thumbnail parsing (as in-use on one of my sites)
SpeedyD bae0fe9
Item thumbs
SpeedyD e74d765
Prompt thumbs + bonus idUrl attribute in the model
SpeedyD fe5d75d
Adding Prompts similar to Uri's Items
SpeedyD 01d6863
refactor: fix PHP styling
SpeedyD e1a5ff5
(Forgot I don't need this line here lol)
SpeedyD e79c74c
Setup for the new config file.
SpeedyD a78619e
refactor: fix PHP styling
SpeedyD facb39e
Updated config file up until all mentions covered in Extended Mention…
SpeedyD d5dcc70
refactor: fix PHP styling
SpeedyD 68852b0
As per @itinerare's suggestions.
SpeedyD 66aeec8
Further edits as per @itinerare's suggestions.
SpeedyD dd82a8a
Placeholder for the additional functions coming soon
SpeedyD File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,168 @@ | ||
| <?php | ||
|
|
||
| /* | ||
| |-------------------------------------------------------------------------- | ||
| | Mentions | ||
| |-------------------------------------------------------------------------- | ||
| | | ||
| | These are settings that affect, specifically, how mentions are used. | ||
| | Mentions are basically shorthand codes mainly for staff to refer | ||
| | to users, characters, gallery submissions and more in the WYSIWYG editor. | ||
| | | ||
| | Each mention has an 'enable' setting which decides if the mention | ||
| | functions and a 'show_text' setting which whether the "Mention This" | ||
| | block is displayed on-site. Use 0 to disable and 1 to enable. | ||
| | | ||
| | Please note that these settings are not retroactive, and mentions will | ||
| | only be applied to (or removed from) areas in which they are used when | ||
| | the text is next edited. | ||
| | | ||
| */ | ||
|
|
||
| return [ | ||
|
|
||
| /* | ||
| |-------------------------------------------------------------------------- | ||
| | User Mentions | ||
| |-------------------------------------------------------------------------- | ||
| | | ||
| | Links to the mentioned user, includes icon and coloration of user's rank. | ||
| | | ||
| | If the mentioned user changes usernames, mentions using this method break. | ||
| | | ||
| | Usage: | ||
| | @username | ||
| | - Replace username with the user's username. | ||
| | | ||
| | This option has been enabled by default for backwards compatibility. | ||
| | | ||
| */ | ||
| 'user_mention' => [ | ||
| 'enable' => 1, | ||
| 'show_text' => 1, | ||
| ], | ||
|
|
||
| /* | ||
| |-------------------------------------------------------------------------- | ||
| | User and Avatar Mentions | ||
| |-------------------------------------------------------------------------- | ||
| | | ||
| | Links to the mentioned user, includes user's avatar as well as the icon | ||
| | and coloration of user's rank. | ||
| | | ||
| | If the mentioned user changes usernames, mentions using this method break. | ||
| | | ||
| | Usage: | ||
| | %username | ||
| | - Replace username with the user's username. | ||
| | | ||
| | This option has been enabled by default for backwards compatibility. | ||
| | | ||
| */ | ||
| 'user_and_avatar_mention' => [ | ||
| 'enable' => 1, | ||
| 'show_text' => 1, | ||
| ], | ||
|
|
||
| /* | ||
| |-------------------------------------------------------------------------- | ||
| | User Permalinks | ||
| |-------------------------------------------------------------------------- | ||
| | | ||
| | Links to the mentioned user, includes icon and coloration of user's rank. | ||
| | | ||
| | Mentions using this method persist even if the mentioned user changes | ||
| | usernames, but will not update to the new username until edited again. | ||
| | | ||
| | Usage: | ||
| | [user=id] | ||
| | - Replace id with the user's id. | ||
| | | ||
| | This option has been enabled by default for backwards compatibility. | ||
| | | ||
| */ | ||
| 'user_permalink' => [ | ||
| 'enable' => 1, | ||
| 'show_text' => 1, | ||
| ], | ||
|
|
||
| /* | ||
| |-------------------------------------------------------------------------- | ||
| | User Avatar Permalinks | ||
| |-------------------------------------------------------------------------- | ||
| | | ||
| | Displays the mentioned user's avatar. | ||
| | | ||
| | Mentions using this method persist even if the mentioned user changes | ||
| | usernames, but will not update to the new username until edited again. | ||
| | | ||
| | Usage: | ||
| | [userav=id] | ||
| | - Replace id with the user's id. | ||
| | | ||
| | This option has been enabled by default for backwards compatibility. | ||
| | | ||
| */ | ||
| 'user_avatar_permalink' => [ | ||
| 'enable' => 1, | ||
| 'show_text' => 1, | ||
| ], | ||
|
|
||
| /* | ||
| |-------------------------------------------------------------------------- | ||
| | Character Permalinks | ||
| |-------------------------------------------------------------------------- | ||
| | | ||
| | Links to the mentioned character. | ||
| | | ||
| | Usage: | ||
| | [character=slug] | ||
| | - Replace slug with the character's slug. | ||
| | | ||
| | This option has been enabled by default for backwards compatibility. | ||
| | | ||
| */ | ||
| 'character_permalink' => [ | ||
| 'enable' => 1, | ||
| 'show_text' => 1, | ||
| ], | ||
|
|
||
| /* | ||
| |-------------------------------------------------------------------------- | ||
| | Character Thumbnail Permalinks | ||
| |-------------------------------------------------------------------------- | ||
| | | ||
| | Displays the mentioned character's thumbnail. | ||
| | | ||
| | Usage: | ||
| | [charthumb=slug] | ||
| | - Replace slug with the character's slug. | ||
| | | ||
| | This option has been enabled by default for backwards compatibility. | ||
| | | ||
| */ | ||
| 'character_thumb_permalink' => [ | ||
| 'enable' => 1, | ||
| 'show_text' => 1, | ||
| ], | ||
|
|
||
| /* | ||
| |-------------------------------------------------------------------------- | ||
| | Gallery Thumbnail Permalinks | ||
| |-------------------------------------------------------------------------- | ||
| | | ||
| | Display the mentioned gallery submission's thumbnail. | ||
| | | ||
| | Usage: | ||
| | [thumb=id] | ||
| | - Replace id with the gallery submission's id. | ||
| | | ||
| | This option has been enabled by default for backwards compatibility. | ||
| | | ||
| */ | ||
| 'gallery_thumb_permalink' => [ | ||
| 'enable' => 1, | ||
| 'show_text' => 1, | ||
| ], | ||
|
|
||
| ]; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.