4.2 KiB
4.2 KiB
TeaSpeak WHMCS Module - Quick Installation Guide
📋 Requirements
- WHMCS: 8.0 or higher
- PHP: 8.0 or higher
- MySQL/MariaDB: 5.7+ / 10.2+
- PHP Extensions: curl, json, pdo_mysql, mbstring
🚀 Quick Installation
Step 1: Upload Files
Upload the module files to your WHMCS installation:
/path/to/whmcs/modules/servers/teamspeak/
/path/to/whmcs/modules/addons/teamspeak/
Step 2: Activate Addon Module
- Login to WHMCS Admin Area
- Navigate to: Setup > Addon Modules
- Find "TeaSpeak Provisioning"
- Click Activate
- Configure module settings:
- License Key
- Server Name
- Port Range (Min/Max)
- TSDNS Settings (if applicable)
- Branding options
Step 3: Add Server
- Go to: Setup > Products/Services > Servers
- Click Add New Server
- Fill in details:
- Name: Your server name
- Hostname/IP: Your TeamSpeak server IP
- Type: Select TeaSpeak Provisioning Server
- ServerQuery Port: 10101 (default)
- Username: ServerQuery username
- Password: ServerQuery password
- Click Test Connection to verify
- Save
Step 4: Create Product
- Go to: Setup > Products/Services > Products/Services
- Create a new product or edit existing
- Module Settings:
- Module: TeaSpeak Provisioning Server
- Select your server from dropdown
Step 5: Add Custom Fields
Add these custom fields to your product:
Required:
-
Token
- Field Name:
Token - Field Type: Text Box
- Description: Admin Token
- Show on Order Form: No
- Field Name:
-
Port
- Field Name:
Port - Field Type: Text Box
- Description: Server Port
- Show on Order Form: No
- Field Name:
-
Subdomain (only if using TSDNS)
- Field Name:
Subdomain - Field Type: Text Box
- Description: TSDNS Subdomain
- Show on Order Form: Yes
- Required: Yes
- Field Name:
Step 6: Add Configurable Options
Create a configurable options group with:
-
Slots
- Option Name:
Slots - Option Type: Quantity
- Description: Number of voice slots
- Option Name:
-
MBots
- Option Name:
MBots - Option Type: Quantity
- Description: Music bot limit
- Option Name:
Step 7: Test
- Create a test order
- Check if server is provisioned correctly
- Test all functions in client area:
- Start/Stop
- Reinstall
- Settings
- Backups
- Tokens
- Bans
🎨 Enable Modern Design (Optional)
To use the Bootstrap 5 template:
- Open
modules/servers/teamspeak/teamspeak.php - Find the
teamspeak_ClientAreafunction - Change template file:
// From: 'tabOverviewReplacementTemplate' => 'templates/overview.tpl', // To: 'tabOverviewReplacementTemplate' => 'templates/overview_modern.tpl',
🔄 Upgrading from Old Version
-
Backup everything:
cp -r modules/servers/teamspeak /backup/ cp -r modules/addons/teamspeak /backup/ mysqldump -u username -p database_name > backup.sql -
Replace files:
- Upload new module files
- Overwrite existing files
-
Clear cache:
- WHMCS Admin > Utilities > System > Clear Cache
-
Test:
- Test existing services
- Create new test service
- Verify all functions work
⚠️ Important Notes
- Custom field names are case-sensitive (
Token,Port,Subdomain) - Configurable option names are case-sensitive (
Slots,MBots) - Make sure ServerQuery port (10101) is accessible
- TSDNS is optional - only configure if needed
- Database structure is compatible with old version
🆘 Troubleshooting
"Port does not exist in custom fields"
- Check custom field "Port" exists
- Field name must be exactly:
Port - Assigned to correct product
"Slots parameter not found"
- Check configurable option "Slots" exists
- Option name must be exactly:
Slots
"Could not connect to TeamSpeak server"
- Verify IP address and port
- Check firewall rules
- Verify ServerQuery credentials
- Test connection from WHMCS server:
telnet YOUR_IP 10101
TSDNS not working
- Enable TSDNS in addon module settings
- Verify TSDNS API URL and key
- Check custom field "Subdomain" exists
📚 More Information
See README.md for detailed documentation.
Version: 3.0.0
Updated by: Kevin Feiler / AVVGO
Original: planetteaspeak.de