Makaze

XenForo Beta Theme Group Permissions Documentation

Jul 30th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. http://pastebin.com/aTrQxBEC
  2.  
  3. ==== Installation ====
  4.  
  5. 1. Go to Admin CP » Appearance » Search Templates.
  6. 2. Search for and create a backup of the style_chooser template. Paste the new template in its place.
  7. 3. Enable Debug Mode.
  8.  
  9. 3-1. Open your forum directory in the FTP server.
  10. 3-2. Open /library/config.php
  11. 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.
  12. 3-4. Press Save. If you edited this file on your computer, reupload the file and overwrite the old version.
  13.  
  14. 4. Go to Admin CP » Home » Options.
  15. 5. Click '+ Add Option Group'.
  16.  
  17. 5-1. Use these values:
  18.  
  19. Group ID: ThemeTesting
  20. Title: Theme Testing
  21. Description: Edit theme beta testing settings.
  22. Add-on: XenForo
  23.  
  24. 5-2. Press 'Save Option Group'.
  25.  
  26. 6. Click '+ Add Option'.
  27.  
  28. 6-1. Add these values:
  29.  
  30. Option Id: betaThemeGroup
  31. Add-on: XenForo
  32. Title: Beta Tester Group
  33. Description: The User Group ID for the Beta Tester group.
  34. Edit Format: Spin Box
  35. Format Paramaters (add on separate lines):
  36. Min=1
  37. Step=1
  38. Data Type: Integer
  39. Default Value: 1
  40.  
  41. 6-2. Press 'Save Option'.
  42.  
  43. 7. Click '+ Add Option' again.
  44.  
  45. 7-1. Add these values:
  46.  
  47. Option Id: betaThemeText
  48. Add-on: XenForo
  49. Title: Beta Theme Indicator
  50. Description: The text used to identify a theme as Beta. Compared to the text in the Theme Description. Must match exactly.
  51. Default Value: [Beta]
  52.  
  53. 7-2. Press 'Save Option'.
  54.  
  55. 8. Disable Debug Mode.
  56.  
  57. 8-1. Open your forum directory in the FTP server.
  58. 8-2. Open /library/config.php.
  59. 8-3. Change "$config['debug'] = true;" to "$config['debug'] = false;".
  60. 8-3. Press Save. If you edited this file on your computer, reupload the file and overwrite the old version.
  61.  
  62. ==== Use ====
  63.  
  64. 1. Go to Admin CP » Users » List User Groups. Click on the desired group.
  65.  
  66. The number at the end of the URL is the User Group ID. Remember it.
  67.  
  68. Example: Clicking on the Registered User Group generated the a url with the ending /admin.php?user-groups/registered.2/edit. The User Group ID for Registered users is 2.
  69.  
  70. 2. Go to Admin CP » Home » Options » Theme Testing.
  71. 3. Set the desired User Group ID for the Beta Tester Group option.
  72. 4. Set the desired Indicator Text for the Beta Theme Indicator option.
  73. 5. Place the Beta Indicator in the Description field of your Beta theme(s).
  74.  
  75. 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 in the theme chooser.
Advertisement
Add Comment
Please, Sign In to add comment