Help Center

Find answers or browse our knowledge base.

BugTrack Sngine Add-On

Let your users report bugs and get rewarded with points! Here's how to install the BugTrack add-on for Sngine:

1. πŸ“ Upload the Addon Files

Place the files exactly like this:

/modules/
  └── bugtrack/
      β”œβ”€β”€ bugtrack.php
      β”œβ”€β”€ view.php
      β”œβ”€β”€ admin.php
      β”œβ”€β”€ installer.php
      β”œβ”€β”€ init.php
      β”œβ”€β”€ bugtrack_hooks.php

/content/themes/default/templates/bugtrack/
  β”œβ”€β”€ index.tpl
  β”œβ”€β”€ view.tpl
  β”œβ”€β”€ admin.tpl
  β”œβ”€β”€ sidebar.tpl
  β”œβ”€β”€ leaderboard.tpl
  β”œβ”€β”€ installer.tpl

 

2. βš™οΈ Update Your .htaccess File

Add these lines to your root .htaccess file to enable clean URLs:

# Bugtrack URLs
RewriteRule ^bugtrack/view/([0-9]+)$ modules/bugtrack/view.php?id=$1 [L,QSA]
RewriteRule ^bugtrack/?$ modules/bugtrack/bugtrack.php [L,QSA]
RewriteRule ^bugtrack/admin?$ modules/bugtrack/admin.php [L,QSA]
RewriteRule ^bugtrack/installer?$ modules/bugtrack/installer.php [L,QSA]

3. πŸ› οΈ Run the Installer

Go to:

https://yoursite.com/bugtrack

Click the Install Bug Tracker Table button. This will:

  • Install the bug_reports table
  • Install the bugtrack_settings table
  • Insert demo bug reports

4. πŸ”§ Admin Configuration

Visit the admin panel at:

https://yoursite.com/bugtrack/admin

From there, you can:

  • Update bug statuses (open, in-progress, fixed)
  • Write admin notes on bug reports
  • Set how many points users get per report

5. πŸ‘€ Add Link to User Menu

Edit this file:

content/themes/default/templates/_usermenu.tpl

Add this snippet:


  {include file='__svg_icons.tpl' icon="media" class="main-icon mr10" width="20px" height="20px"}
  {__("Report a Bug")}

πŸŽ‰ Done!

You're all set! Users can now report bugs, view their status, and earn points for helping improve your platform.

Admin has full control, and everything is nicely integrated into Sngine without touching core files.

Was this answer helpful?
You must login to vote.
0 found this helpful, 0 did not
Thank you for your feedback!

Related Articles