ramon/auth-modals 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ramon/auth-modals

最新稳定版本:2.0.0

Composer 安装命令:

composer require ramon/auth-modals

包简介

Redesigns Flarum's login, sign-up and forgot-password modals with a side panel (image + icon) and adds Login / Sign Up pill buttons to the header.

README 文档

README

Auth Modals

Auth Modals

License Latest Stable Version Total Downloads GitHub Release Donate

Redesigns Flarum's login, sign-up and forgot-password modals with a custom side panel (background image + contextual icon), and optionally adds pill-shaped Log In / Sign Up buttons to the header for guests.

Features

  • Side panel — Injected into the Log In, Sign Up and Forgot Password modals, with a contextual Font Awesome icon (lock / user-plus / envelope).
  • Custom background image — Upload any image from the admin panel; rendered as a cover background on the right-side panel.
  • Header buttons — Optional pill-shaped Log In / Sign Up buttons in the header secondary nav for guests, with an "or" separator.
  • Colored-header aware — Buttons automatically swap to readable contrast when the forum uses a colored header.
  • Dark mode — Styles included; borders and surfaces adapt to the active theme.
  • Auto-save — Settings persist on every change; no submit button on the extension page.

Requirements

  • Flarum ^2.0.0

Installation

composer require ramon/auth-modals
php flarum cache:clear

Then enable Auth Modals under the Extensions page in the admin panel.

Updating

composer update ramon/auth-modals --with-dependencies
php flarum cache:clear

Configuration

All settings are available in the admin panel under the Auth Modals extension:

Setting Description Default
Modal background Image rendered on the right-side panel of the auth modals
Header buttons Show pill-shaped Log In / Sign Up buttons in the header for guests false

API Endpoints

Method Endpoint Description
POST /api/auth-modals/image Upload the modal background image (admin only)
DELETE /api/auth-modals/image Remove the modal background image (admin only)

Build

cd js
npm install
npm run build

Links

Authors

License

MIT

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 11
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: TypeScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固