Block e-mail usernames

Started by NanoSector, June 05, 2011, 04:40:28 PM

Previous topic - Next topic

NanoSector

Link to Mod

Block e-mail usernames
If you need to report a bug, please do so on GitHub!

Settings found in:
Admin > Configuration > Modification Settings > Block e-mail usernames

How to install:
The Package Manager should work in most cases.

Languages:
- English
- English UTF8
- Dutch
- Dutch UTF8

Translations are welcome!

Features:
- Works in all themes, only modifies Source files.
- Blocks e-mail addresses from usernames when registering
- Still allows people to have @'s and .'s in their usernames when registering

Looking to do:
- Make more use of integration hooks.

Changelog:
v0.4.2:
! Fix a bug (thanks ZarPrime!)

v0.4.1:
! Code cleanup
! Bug fixes
! Admin panel is more clear now
! Fixed Dutch typo

v0.4:
+ Added hooks!
! Fixed bug which directly used $_POST instead of the appropriate value.

v0.3:
+ Added "Only allow these providers:" option in Admin panel
! Fixed a bug which probably occurred when entering the admin panel for the mod (thanks Brack1!)
! Changed package_info.XML to provide compatibility from 2.0 to 2.99.99 (thanks Reaper.CSF.!)

v0.2.1:
! Fixed Dutch-UTF8 typo.

v0.2:
+ Added Admin panel integration
+ Ability to check e-mail addresses for blocked providers added.
+ Ability to only block certain providers added.
+ Added master switch (so you don't need to uninstall the mod to disable it)
(you can upgrade from 0.1 so you don't have to uninstall first)

v0.1:
- Initial release

License:
This mod is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported license.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

TheListener

Looking good kiddo.

;D

Installs on 2.0 with no errors.

NanoSector

Thanks ;D

Marking this as 2.0 compatible then :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

TheListener

Are there no Admin settings ie tickbox?

NanoSector

Quote from: Brack1 on June 21, 2011, 03:52:39 PM
Are there no Admin settings ie tickbox?
Not yet, but I'm testing a build which does :)

It will be able to be enabled or disabled, and to be set to only block certain providers instead of all of them.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

cicka

A nice mod. Good work Yoshi2889 :)

NanoSector

My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

Almost done testing and fixing the last bugs -- Expect a new release today!
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

Version 0.2 is ready!

- Added Admin panel integration
- Ability to check e-mail addresses for blocked providers added.
- Ability to only block certain providers added.
- Added master switch (so you don't need to uninstall the mod to disable it)
(you can upgrade from 1.0 so you don't have to uninstall first)

I'm going to upload it & update the mod page :)
EDIT: Uploaded. You can perform an upgrade (That means, install it over your current installation).
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

#9
Heh, sorry, 0.2.1 released.

Only fixes a language bug in the Dutch UTF-8 language pack, though.
(if the fix cannot be applied due to an error, you can deinstall the old package and install the new one (0.2.1) which already has the fix included in it's installation files)

Again, you can upgrade.
(and now I stop double-posting here and get some work done :P)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

TheListener

Yoshi

I seem to see this error when a new member registers.

http://xxxxxxxxxxxxxxxxx/index.php?action=admin;area=modsettings;sa=blockemail;bfd27ec=aac8bb1435ce9575c17e4244cb017edf
Apply Filter: Only show the errors with the same message
8: Undefined variable: return_config
Apply Filter: Only show the errors from this file
File: /home/xxxxx/public_html/Sources/ManageSettings.php
Line: 2371

2370:
if ($return_config)
==>2371:
return $config_vars;

I don't have any email providers listed however so would that be what causes the error?

I don't want to block anyone using the forum only by using their emails like [email protected]

NanoSector

#11
Sorry for my late reply. I was pretty busy last month.

I will fix that today, I'm sorry for any more errors popping up. You can just ignore them.

Thanks for reporting :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Doburpally

Quote from: Brack1 on September 16, 2011, 07:14:12 PM
Yoshi

I seem to see this error when a new member registers.

http://xxxxxxxxxxxxxxxxx/index.php?action=admin;area=modsettings;sa=blockemail;bfd27ec=aac8bb1435ce9575c17e4244cb017edf
Apply Filter: Only show the errors with the same message
8: Undefined variable: return_config
Apply Filter: Only show the errors from this file
File: /home/xxxxx/public_html/Sources/ManageSettings.php
Line: 2371

2370:
if ($return_config)
==>2371:
return $config_vars;

I don't have any email providers listed however so would that be what causes the error?

I don't want to block anyone using the forum only by using their emails like [email protected]

That's odd ???
I have had to edit the package-info.xml to change the forum version from 2.0 to 2.0 - 2.99.99
Installed the package and it installed 100% and it works 100% added @hotmail.com and gmail.com etc to the lists and yeah it works like a treat :)

NanoSector

Post #1
Great that it works for you :D

I'm going to release 0.3 today.

Changelog:
+ Added "Only allow these providers:" option in Admin panel
! Fixed a bug which probably occurred when entering the admin panel for the mod (thanks Brack1!)
! Changed package_info.XML to provide compatibility from 2.0 to 2.99.99 (thanks Reaper.CSF.!)

Post #2
Uploading 0.3 atm :)

Post #3
Uploaded version 0.3.1 which fixes a few bugs and has it's 2.0.2 compatibility checked.

(please check the page for more info, I will not update the first post anymore)

Post #4
Mod works with 2.0.3 as-is.




Updated to use hooks and to fix a crucial bug :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

A lot of bugs have been fixed in a new version just released, v0.4.1!

Along with bug fixes, the admin panel has been made much more clear now with a new way to select what to block!

Release notes:
! Code cleanup
! Bug fixes
! Admin panel is more clear now
! Fixed Dutch typo

Have fun!
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

TheListener

Quote from: Yoshi on May 24, 2013, 02:49:26 PM
A lot of bugs have been fixed in a new version just released, v0.4.1!

Along with bug fixes, the admin panel has been made much more clear now with a new way to select what to block!

Release notes:
! Code cleanup
! Bug fixes
! Admin panel is more clear now
! Fixed Dutch typo

Have fun!

No need for the fly spray then Yosh?

:D

NanoSector

Just give it to me, I'll take care of it... ;)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

ZarPrime

Yoshi,

We address and cleanup our error logs over at CripZone quite often but, right now, ever since we installed this Mod over the weekend, 4 of the 6 pages in our error log have the following ...


   Guest

http://www.cripzone.com/index.php?action=register2
The registration failed because: You cannot use an email address as your username.


... with various ip addresses.

I know for a fact that at least one of the people who got this error, and wasn't able to register, did not try to use their EMail Address as their username because she PM'ed me here and told me about it.

Can you tell me what the problem might be?  Currently, "Enable blocker" and "both" is the only thing we are using.  We aren't using "Block by provider" or "Allow by provider".

BTW, we are using version 0.4.1 on a 2.06 Forum.

ZarPrime

NanoSector

Hi ZarPrime,

Can you tell me which username she tried to register with?
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Advertisement: