paolorox/ti-ext-customalert
Composer 安装命令:
composer require paolorox/ti-ext-customalert
包简介
Full-screen customizable alert and announcement popup with blurred background, action buttons, and customer view logs.
README 文档
README
A premium, highly-customizable fullscreen announcement and alert popup extension for TastyIgniter. Perfect for cookie consents, marketing announcements, policy updates, or critical site notices.
Authored by Paolo Rossini.
Features
- Premium Glassmorphic Design: Modern aesthetics featuring responsive full-screen overlays with adjustable slate/pearl glass themes, backdrop blur strengths, and entrance animations.
- Drag-and-Drop Button Configurator: Add multiple action buttons in the backoffice. Each button is customizable with its own action (Close and Accept, or Redirect to URL), style (Primary solid, Elegant glass, Danger accent, Outline), and text.
- View & Interaction Analytics: Logs when a user sees the popup and records which button they clicked (Dismissed vs redirect buttons).
- Performance Optimized (Hybrid Seen Checking): Prevents database bottlenecks on page load by checking client cookies first. For registered customers, it syncs with the database to prevent the popup from reappearing if they log in from another device.
- Auto-Reset on Update: Automatically hashes the popup content (title, message, buttons). If you update the message in the backend, the hash changes, resetting the cookies and database view logs so all users are shown the new message.
- Dedicated Logs Dashboard: A detailed table under Tools > Custom Alert Logs that is fully searchable and filterable.
Requirements
- TastyIgniter version
^4.0 - PHP
^8.1
Installation
- Create a directory named
extensions/igniter/customalertin your TastyIgniter installation. - Extract or copy the contents of this repository into that folder.
- Run the database migrations to register the extension and create the logs table:
php artisan igniter:up
- Clear the Laravel and TastyIgniter caches to register the routes and controllers:
php artisan optimize:clear
Configuration
- Log in to your TastyIgniter Admin Panel.
- Navigate to System > Settings > Custom Alert Settings.
- Enable the alert, write your notice using the Rich Text editor, choose your preferred design theme, and configure your action buttons.
- Click Save.
View Logs
Go to Tools > Custom Alert Logs in the admin sidebar. Here you can search, view IP addresses, sessions, status, and track which button each customer clicked.
License
This project is licensed under the MIT License.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-01