[BR] Credits Points System

VIP Addons [BR] Credits Points System 1.6.2a

No permission to buy ($27.00)
- Improved stability for addons;
- Upgraded the interface for the board.
v1.6.1 Comprehensive Type Fix Summary

Nov 23, 2025

  • Convert $error to a string before using it in strpos() and sprintf()
  • Automatically convert entity objects to arrays when passed to triggerEvent
Issue:
Numeric values obtained from form input (unum filter), the database, or configuration are in string format.

Affected methods:
  • calculateFee(float $amount, ...)
  • addTriggerData(..., float $amount)
  • queueTransaction(..., float $amount)
  • queueAlert(..., float $amount)
  • queueUpdateUser(..., float $amount)
  • $maxAmount, $event['amount'], balance comparisons, and similar values are all converted to float
  • Ensure all mathematical operations use the correct numeric types
Fix strategy
  • ✅ Immediately convert all amount values retrieved from form input to float
  • ✅ Convert all numeric values retrieved from arrays/configuration to float before use
  • ✅ Ensure all mathematical operations use numeric operands
  • ✅ Perform type conversion before passing values to methods that require float parameters
  • ✅ Convert database query results to float before mathematical comparisons

Results
  • ✅ User registration no longer throws TypeError
  • ✅ Credit purchases are now added correctly
  • ✅ Credit transfer functionality works properly
  • ✅ Credit exchange calculations are correct
  • ✅ Tipping and red packet features are stable
  • ✅ Daily check-in no longer causes errors
  • ✅ All event triggers are type-safe
  • ✅ Error logging works normally
  • ✅ Admin adjustment features are usable
  • ✅ Content purchase deductions are accurate
Personalization

Style editor

Settings Colours

  • Mobile users cannot use these functions.

    Alternate header

    You can easily choose the alternate header layout for a different look.

    View Mode Selection

    Switch between full screen and narrow screen modes.

    Grid View

    Browse content easily with grid mode and get a tidy look.

    Image Grid Mode

    Display your content in a tidy and visually rich way with background images.

    Close Sidebar

    Create a wider working area by hiding the sidebar.

    Sticky Sidebar

    Keep constant access by pinning the sidebar and manage your content easily.

    Box view

    You can add a box-style frame to the sides of your style or remove the existing frame. Applies to resolutions above 1300px.

    Corner Rounding Control

    Customize the look as you like by turning the corner rounding effect on and off.

  • Choose your colour

    Choose the colour that reflects your style and achieve aesthetic harmony.

Back
QR Code