No Special Characters in Usernames
Author Message
This is a fairly useless plugin.  It just disallows usernames which have characters other than a-z, 0-9 and _ in them (can allow more characters by changing the setting under "User Registration and Profile Options").
I recall someone requesting this, which is why I made it.

Otherwise, just posting it here to increase my post count.
(This post was last modified: 11-05-2015 06:42 PM by ZiNgA BuRgA.)
Find all posts by this user
Quote this message in a reply
Download: stduname.php (4.22 KB)
Plugin Version: 1.4
Last Updated: 11-05-2015, 06:42 PM

Downloads: 1,142
MyBB Compatibility: 1.2.x, 1.4.x, 1.6.x, 1.8.x
Uploader: ZiNgA BuRgA
JordanMussi Offline
Junior Member
**
Posts: 2
Joined: Oct 2012
Post: #31
RE: No Special Characters in Usernames
After (Line 3)

PHP Code:
if(!defined('IN_MYBB'))
	die('This file cannot be accessed directly.');

You could add

PHP Code:
$tableprefix = ($mybb->version_code>=1400?'':TABLE_PREFIX);

instead of using it (Line 28)

PHP Code:
	$tableprefix = ($mybb->version_code>=1400?'':TABLE_PREFIX);

and (Line 45)

PHP Code:
	$db->delete_query(($mybb->version_code>=1400?'':TABLE_PREFIX).'settings', 'name="stduname_allowedchars"');

PS great plugin thanks!

(This post was last modified: 11-10-2012 05:50 AM by JordanMussi.)
11-10-2012 05:50 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #32
RE: No Special Characters in Usernames
^ The advantage of that being...?

My Blog
11-10-2012 10:37 AM
Find all posts by this user Quote this message in a reply
JordanMussi Offline
Junior Member
**
Posts: 2
Joined: Oct 2012
Post: #33
RE: No Special Characters in Usernames
No idea Wink
11-11-2012 04:30 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #34
RE: No Special Characters in Usernames
Riiiight...

My Blog
11-11-2012 09:22 AM
Find all posts by this user Quote this message in a reply
jeffdaryl Offline
Junior Member
**
Posts: 6
Joined: Nov 2012
Post: #35
RE: No Special Characters in Usernames
Great plugin!  It now prevent any hackers to enter any malicious code.
11-23-2012 02:10 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #36
RE: No Special Characters in Usernames
(11-23-2012 02:10 AM)jeffdaryl Wrote:  Great plugin!  It now prevent any hackers to enter any malicious code.
Not really...

My Blog
11-23-2012 08:09 AM
Find all posts by this user Quote this message in a reply
jeffdaryl Offline
Junior Member
**
Posts: 6
Joined: Nov 2012
Post: #37
RE: No Special Characters in Usernames
Haha, I'm always wrong. But maybe it reduce the risk. right?
11-23-2012 09:05 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #38
RE: No Special Characters in Usernames
(11-23-2012 09:05 AM)jeffdaryl Wrote:  But maybe it reduce the risk. right?
No.

My Blog
11-23-2012 09:34 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #39
RE: No Special Characters in Usernames
v1.3: MyBB 1.8 compatibility fix

My Blog
11-24-2014 10:58 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,327
Joined: Mar 2010
Post: #40
RE: No Special Characters in Usernames
Yumi, is there any chances to make it works for guests too (when a guest create a newthread or full newreply)?

11-04-2015 06:57 AM
Find all posts by this user Quote this message in a reply


Forum Jump: