
Social Proof Popups — Version 1.2.0 Beta
This update introduces major improvements to event tracking, admin customization, and new integrations — especially with DBTech Shop. It also includes several refinements that make social proof messaging smarter, more accurate, and more flexible.

New Features
✔ DBTech Shop Integration (Self-Tracking System)
DBTech Shop does not register activity in XenForo’s session tracker, so a custom tracking layer has been built:
Automatically logs shop browsing activity (shop_view events)
Accurately counts recent visitors to the shop
New popup messages:
“Mitch is browsing the shop.”
“X users are browsing the shop right now.” (admin-toggle soon)
Fully independent of session activity — works reliably for all shop pages
This makes the shop section a highly visible and socially engaging part of the forum.

Expanded Social Proof Event Types
The add-on now detects and displays a wide range of actions:
✔ New resource posted
✔ Resource downloaded
✔ Resource reviewed
✔ Product or shop item purchased
✔ Shop browsing session (new)
✔ Generic fallback: “Someone just did something on the site.”
Each event is turned into a naturally worded popup message, improving user engagement.

New Admin Options
A new structured options group allows full control over the add-on:
Enable / Disable Add-on
Toggle the entire system without uninstalling.
Show Usernames vs Anonymous Mode
Decide whether popups reveal usernames or display neutral “Someone…” messages.
Credit Cashout Tracking
Two settings:
Show credit cashout total
Editable total value (manually updated by the admin)
Adds a persistent message such as:
“Over 11,000 credits have been cashed out to date.”
Great for communities that reward users through points/credits.
Event Visibility Controls
Admin options allow enabling or disabling:
Resource-based events
Purchase events
Shop browsing events
Sitewide engagement fallback messages
(If you want more granular toggles, we can add them in 1.2.1.)

Improved Backend Architecture
New Event Repository Logic
The event system now includes:
logEvent() for logging any social action
getRecentEvents() for popup display
getSitewideOnlineCounts() for total visitors
countRecentShopViewers() for custom shop sessions
Each method was rebuilt for accuracy, performance, and extensibility.
New DBTech Shop Controller Extension
A lightweight extension hooks into the Shop’s ItemController:
Logs shop_view on every visit
Avoids unnecessary database load
Zero interference with DBTech code
Fully compatible with future DBTech updates

Smarter Popup Messaging System
The popup now supports:
Fallback rotation (avoids repetitive messages)
Event message priority handling
Clean display formatting
Optional inclusion of username
Integration with admin-controlled credit totals
Messages feel more authentic, dynamic, and engaging.

Bug Fixes
Fixed entity loading error (Mitch:SocialProofEvent → Mitch\SocialProof:Event)
Fixed class signature mismatch in DBTech controller extension

void)
Improved reliability of JSON API output for frontend requests
Standardized switch-case logic for all event types
Fixed namespace consistency throughout add-on files

Summary
Version 1.2.0 Beta makes the Social Proof Popup add-on significantly more powerful and more integrated:
Full custom tracking of DBTech Shop visitors
Cleaner and more intelligent popup content
New admin-configurable messaging
Better, more reliable event processing
Far more engaging real-time activity indicators across the entire site
This update lays the foundation for future enhancements, such as:
Delayed message cycles
Weight-based event prioritization
Per-event enable/disable toggles
Popup themes & animation options
Resource Manager & Shop deep-title tracking