Popup Manager - Update Notes
Middleware Stability Improvements
Improved middleware stability for popup injection.
Removed duplicate middleware registration that could cause request flow issues.
Improved handling around popup injection behavior for safer operation.
Recommended Commands After Update
Run the following commands after applying the updated files:
If the extension does not include a new migration in your current update package, you may only need:Bash:php artisan migrate --force php artisan optimize:clear
Bash:php artisan optimize:clear
Popup Manager Update Notes
Updated Features
1. Text / HTML popup rendering fix
Fixed an issue where popups did not appear when text content was entered.
Added compatibility handling for olderpopup_typevalues.
Improved text rendering so line breaks are preserved correctly.
2. Rich editor support for Text / HTML Content
Replaced the plain textarea with a rich editor in the admin panel.
Supports formatted content such as headings, bold, italic, underline, lists, quotes, and links.
HTML created in the editor is rendered directly inside the popup.
3. YouTube embed support improvements
Added automatic conversion of YouTube links into embed URLs.
Supports standard YouTube URLs such as:
watch?v=
youtu.be/
embed/
Preserves start time parameters such ast=andstart=.
4. YouTube autoplay setting
Added an admin toggle to enable or disable YouTube autoplay per popup.
Default value is enabled.
Autoplay is now applied only when the popup is actually visible.
5. YouTube loop playback
Added loop playback support for YouTube videos.
Uses the requiredloop=1andplaylist=<video_id>combination for reliable looping.
6. Stop YouTube when popup closes
Fixed an issue where YouTube audio/video continued playing after closing the popup.
On popup close, the iframe is fully stopped and unloaded.
The original source is restored only when the popup is opened again.
7. Stop YouTube when "Do not show for 1 day(s)" is clicked
Fixed an issue where YouTube continued playing when the user selected the hide-for-1-day option.
The video is now stopped immediately in that flow as well.
8. Prevent hidden autoplay
Fixed an issue where YouTube autoplay started even when the popup was not visible.
The iframe now starts with a blank source.
The real YouTube source is injected only when the popup becomes visible.
Recommended commands after upload
NotesBash:php artisan migrate --force php artisan optimize:clear php artisan migrate:refresh --path=/var/www/paymenter/extensions/Others/PopupManager/database/migrations --force
Due to browser autoplay policies, autoplay with sound may still be blocked in some browsers.
In that case, the popup will open normally, but the user may need to click play manually.
Loop playback will still work after playback starts.
