Releases: gioxx/YOURLS-AlternativeIndex
Releases · gioxx/YOURLS-AlternativeIndex
Release list
1.0.4 – Full i18n, complete Italian translation
What's changed
- Full i18n: all visible admin panel strings are now wrapped in `yourls__()` — panel headings, field labels, hints, toggle labels, button text, flash messages, error messages
- Complete Italian locale: `languages/yourls-alternative-index-it_IT.po` + `.mo` with 70 translated strings covering the entire admin UI
- Italian menu label: the plugin link in YOURLS admin reads Pagina profilo alternativa (the plugin name YOURLS Alternative Index is unchanged everywhere else)
- Update notice: banner strings (New version available, View details on GitHub) are now also translatable
- Boot function: single `yai_boot()` on `plugins_loaded` guarantees the textdomain is loaded before any `yourls__()` call
- Update check: simplified per-request static cache (no persistent DB layer)
1.0.3
What's changed
- Footer redesigned to match plugin template: left-aligned with flex layout
- Left side: plugin page link (yourls.gioxx.org) and GitHub repository link
- Right side: "↑ Back to top" scroll button
- Removed
text-align:centerfrom footer — consistent left alignment
1.0.2
What's changed
Security
- Filter output for the plugin page title is now HTML-escaped; the update badge is rendered from trusted template code instead of an unescaped filter return value
html_urlfrom the GitHub API response is now guarded withisset()+ fallback toYAI_GITHUB_RELEASES_URL- Version string in the update notice uses
htmlspecialchars()(HTML content context) instead ofyourls_esc_attr()
Bug fixes
- Avatar URL preview
<img>now only setssrcwhen$avatar_mode === 'url', preventing a spurious external HTTP request on every page load after switching to a different avatar mode - Clearing the avatar/background URL field no longer triggers a GET to the admin page (
removeAttribute('src')instead ofsrc = '') - Removed redundant nonce creation for the htaccess-remove form (reuses the existing
$nonce_config)
New features
- Image URL preview with size warning: entering a URL in the Avatar URL or Background Image URL fields now shows a live preview; if the image exceeds 600×600 px a warning is displayed suggesting to reduce dimensions before saving
Code quality
- All
style="display:none"inline attributes in PHP replaced with a.yai-panel--hiddenCSS utility class - Textarea Custom CSS moved from inline
style="..."to a.yai-custom-css-fieldCSS rule - Panel toggles in JS use
classListinstead ofstyle.display yai_page_title_with_badge()refactored: badge rendering moved to the template; filter remains available for third-party title overrides viaplugin_page_title_alternative_index- New
yai_has_update()helper centralises the update-check logic
1.0.0 — Initial Release
🌐 YOURLS Alternative Index — First Release
Transform the unused YOURLS root URL into a Linktree-style profile page.
Features
- Linktree-style profile page served at your YOURLS root URL (
/) - Profile section: display name, tagline/bio, avatar (URL, upload, or Gravatar)
- Social icons row: X/Twitter, Instagram, Facebook, LinkedIn, GitHub, YouTube, TikTok, Mastodon, Bluesky, Threads, Pinterest, Twitch, Discord, Telegram, WhatsApp, and more
- Featured link buttons: full-width cards with optional emoji, title, and URL
- Custom colors: background, accent, and text colors with live preview
- Background image: external URL or upload, with frosted-glass card effect and adjustable transparency
- Custom CSS: inject your own styles for full control
- Enable/disable toggle: turn the page on or off without deactivating the plugin
- Update notifications: checks GitHub for new releases and shows a badge in the admin panel
Installation
- Download the zip below
- Unzip into
user/plugins/alternative-index/ - Activate in the YOURLS admin panel under Plugins
- Go to Plugins → Alternative Index and configure your page
Requires YOURLS 1.9+ and PHP 7.4+