MyBB Community Forums

Full Version: Whitelisted Email Domains
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Information:
Ability to whitelist email domains such as gmail.com instead of having to refill the banned email list every month.

Installation:
  1. Download the Code
  2. Unzip & Drag the file to inc/plugins
  3. Go to the plugin section of the admin control panel and activate it
  4. Go to settings and add the domains you'd want to support

Download:
http://community.mybb.com/mods.php?action=view&pid=349

Source:
Github::Zalvie
Plugin is broken
(2015-01-22, 12:27 AM)Patchy the Pirate Wrote: [ -> ]Plugin is broken

Just saying its broken and not saying what part isn't working isn't going to help the author or staff assist you. We need an actual description of the problem.
Someone else used it before?

I want to know if it works or it doesn't.
This have Fatal error.

Fatal error: Can't use function return value in write context in /home/<site>/public_html/inc/plugins/whitelist_emails.php on line 56
(2016-06-06, 06:26 AM)Area Master Wrote: [ -> ]This have Fatal error.

Fatal error: Can't use function return value in write context in /home/<site>/public_html/inc/plugins/whitelist_emails.php on line 56

How did you get this error? It's working fine on my end.
^ depends on version of php

if php version is lower than 5.5 then
a small change is required in the plugin code

whitelist_emails.php#L54
if (empty(trim($settings['whitelist_emails_whitelist'])))
above code may be changed like below
$trimWhiteList = trim($settings['whitelist_emails_whitelist']);
if(empty($trimWhiteList))
I have put in the following domains:

*@*.domain.com and
*@*domain.com but
*.domain.com
*domain.com

the emailaddress [email protected] recieves a faillure.

How come?

Pit