Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.6] User option - Disable word filter
#11
Great job. You could just add a new setting for "Allowed Groups" and the accepted values would be the group id's separated by a comma (each gid).

Then just explode() the settings and check if the user belongs to any of those groups.

You can use my "check permissions" function if you want:
http://community.mybboard.net/thread-557...#pid396538

You don't need to explode the settings if you use my function since it will do it for you.
It checks if the _current_ user belongs to any of the groups set in the settings.
Returns true if yes else returns false.
All my plugins are available for free at MyBB Extend and on my GitHub. MyBB-Plugins.com has been closed and none of my plugins are officially maintained or supported.
Reply


Messages In This Thread
User option - Disable word filter - by pavemen - 2009-10-21, 12:13 AM
RE: [RELEASE 1.4.x] User option - Disable word filter - by Diogo Parrinha - 2010-04-16, 07:50 PM

Forum Jump:


Users browsing this thread: 18 Guest(s)