Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://pastebin.com/aTrQxBEC
- ==== Installation ====
- 1. Go to Admin CP » Appearance » Search Templates.
- 2. Search for and create a backup of the style_chooser template. Paste the new template in its place.
- 3. Enable Debug Mode.
- 3-1. Open your forum directory in the FTP server.
- 3-2. Open /library/config.php
- 3-3. Find "$config['debug']". If it exists, replace that line with "$config['debug'] = true;". If it does not exist, then add it on a new line at the bottom of the file.
- 3-4. Press Save. If you edited this file on your computer, reupload the file and overwrite the old version.
- 4. Go to Admin CP » Home » Options.
- 5. Click '+ Add Option Group'.
- 5-1. Use these values:
- Group ID: ThemeTesting
- Title: Theme Testing
- Description: Edit theme beta testing settings.
- Add-on: XenForo
- 5-2. Press 'Save Option Group'.
- 6. Click '+ Add Option'.
- 6-1. Add these values:
- Option Id: betaThemeGroup
- Add-on: XenForo
- Title: Beta Tester Group
- Description: The User Group ID for the Beta Tester group.
- Edit Format: Spin Box
- Format Paramaters (add on separate lines):
- Min=1
- Step=1
- Data Type: Integer
- Default Value: 1
- 6-2. Press 'Save Option'.
- 7. Click '+ Add Option' again.
- 7-1. Add these values:
- Option Id: betaThemeText
- Add-on: XenForo
- Title: Beta Theme Indicator
- Description: The text used to identify a theme as Beta. Compared to the text in the Theme Description. Must match exactly.
- Default Value: [Beta]
- 7-2. Press 'Save Option'.
- 8. Disable Debug Mode.
- 8-1. Open your forum directory in the FTP server.
- 8-2. Open /library/config.php.
- 8-3. Change "$config['debug'] = true;" to "$config['debug'] = false;".
- 8-3. Press Save. If you edited this file on your computer, reupload the file and overwrite the old version.
- ==== Use ====
- 1. Go to Admin CP » Users » List User Groups. Click on the desired group.
- The number at the end of the URL is the User Group ID. Remember it.
- Example: Clicking on the Registered User Group generated a url with the ending /admin.php?user-groups/registered.2/edit. The User Group ID for Registered users is 2.
- 2. Go to Admin CP » Home » Options » Theme Testing.
- 3. Set the desired User Group ID for the Beta Tester Group option.
- 4. Set the desired Indicator Text for the Beta Theme Indicator option.
- 5. Place the Beta Indicator in the Description field of your Beta theme(s).
- Using the Registered Users ID for Beta Test Group (2) and the default value for Beta Theme Indicator ([Beta]), themes with [Beta] for the Description will be hidden from all users not the Registered Users group.
Advertisement
Add Comment
Please, Sign In to add comment