[BETA] Restrict Username

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
^Andy^
Registered User
Posts: 28
Joined: Tue Oct 19, 2004 6:29 am

Post by ^Andy^ » Fri May 05, 2006 6:00 am

Wo1f wrote: Would you pm me your web site addy, as I'd like to test it out with a few "special character combinations" I use to verify the accuracy of the validation.


I have PM'd you the URL Wo1f, many thanks for taking the time to assist.

User avatar
Saeru
Registered User
Posts: 622
Joined: Sun Feb 19, 2006 5:44 am
Location: Under a pile of PHP code.
Contact:

Post by Saeru » Fri May 05, 2006 8:10 am

Wont this cause some issues though? Most of the characters are not suported cause it could conflict with some of the forum's codding. Like on one forum I viset. Adding a ' in your name would keep you from being able to reply to messages.
"Naku ga yousuru ichidanto tsuyosa kyaku ga icchuu wo yusuru."[/size]

Wo1f
Registered User
Posts: 2039
Joined: Fri Jan 28, 2005 3:20 am

Post by Wo1f » Sat May 06, 2006 4:10 pm

Hi Saeru,
Saeru wrote: Wont this cause some issues though? Most of the characters are not suported cause it could conflict with some of the forum's codding. Like on one forum I viset. Adding a ' in your name would keep you from being able to reply to messages.


It's not easy to work with some of them, I'll give you that, and great care is needed when you do. Also, the example you're referring to, is not the case when dealing with a default install of phpBB2. The source of that quirky behavior is something else.

Image

Regards,
Wolf

bugfixed
Registered User
Posts: 101
Joined: Sun Apr 04, 2004 2:57 am
Location: Turkey
Name: Murat
Contact:

Post by bugfixed » Wed May 17, 2006 10:18 am

thanks thanks thanks :D nice mod.
Image

Wo1f
Registered User
Posts: 2039
Joined: Fri Jan 28, 2005 3:20 am

Post by Wo1f » Wed May 17, 2006 8:41 pm

Hi bugfixed,

Let me know how it fares once you're done trying it out.

... and your very welcome mate! :wink:

Regards,
Wolf

bugfixed
Registered User
Posts: 101
Joined: Sun Apr 04, 2004 2:57 am
Location: Turkey
Name: Murat
Contact:

Post by bugfixed » Fri May 19, 2006 11:12 am

I searched for a long time. I found it and I was very happy :wink:
Image

bugfixed
Registered User
Posts: 101
Joined: Sun Apr 04, 2004 2:57 am
Location: Turkey
Name: Murat
Contact:

Post by bugfixed » Fri May 19, 2006 11:19 am

hello Wolf.

thank you. :wink:

updated turkish translate file for restricted username:

please Click Here Download Turkish Language File (For restrict username 1.1.6 Beta)
Last edited by bugfixed on Tue May 23, 2006 9:50 am, edited 1 time in total.
Image

Wo1f
Registered User
Posts: 2039
Joined: Fri Jan 28, 2005 3:20 am

Post by Wo1f » Sat May 20, 2006 3:58 am

Many thanks for your kind words bugfixed! And also for the translation!! :wink: I'll update the package tomorrow.

Best regards,
Wolf

bugfixed
Registered User
Posts: 101
Joined: Sun Apr 04, 2004 2:57 am
Location: Turkey
Name: Murat
Contact:

Post by bugfixed » Sat May 20, 2006 6:26 am

hello Wolf.

thank you. :wink:

updated turkish translate file for restricted username:

please Click Here Download Turkish Language File (For restrict username 1.1.6 Beta)
Image

bugfixed
Registered User
Posts: 101
Joined: Sun Apr 04, 2004 2:57 am
Location: Turkey
Name: Murat
Contact:

Post by bugfixed » Tue May 23, 2006 9:45 am

hello.

this line bad style and :( not found file.

Code: Select all

<img src="templates/subsilver/images/un_arrow.gif" heigth="7" width="8" alt="" title="" border="0" />
in posting.php, admin/admin_users.php, includes/functions_post.php, includes/usercp_register.php

Code: Select all

<img src="templates/subsilver/images/un_arrow.gif" heigth="7" width="8" alt="" title="" border="0" />
correct code and style:

Code: Select all

<img style="border: 0px solid ; width: 8px; height: 7px;"  alt="" title="" src="templates/subSilver/images/un_arrow.gif" />
or change subsilver to subSilver.
Image

Wo1f
Registered User
Posts: 2039
Joined: Fri Jan 28, 2005 3:20 am

Post by Wo1f » Tue May 23, 2006 3:55 pm

bugfixed wrote: hello.

this line bad style and :( not found file.

Code: Select all

<img src="templates/subsilver/images/un_arrow.gif" heigth="7" width="8" alt="" title="" border="0" />

Eagle eyes! :wink: hmmm, you're right about the path, should be "subSilver" for accuracy, but this is not the reason the path cannot be found. Mind you, my installations up until now have been on a Windows server and since none of the beta testers so far have noticed this, I can only conclude that they have also used a Windows environment. You may have a point if using Linux for example. Good catch!!

The other thing is I'm hot and cold with this image "separator". It was necessary (or so I believed) to make sure that this separator would not be confused for an allowable character if instead I used something like the colon ( : ). So that's why I ended up doing it this way. But then, not everyone has agreed with this method (image is not popular with everyone).

So that said, I removed it from the new upcomning beta, and included it as an add-on, with proper inclusion in "subSilver.cfg" where "$current_template_images" takes care of the path.

bugfixed wrote: correct code and style:

Code: Select all

<img style="border: 0px solid ; width: 8px; height: 7px;"  alt="" title="" src="templates/subSilver/images/un_arrow.gif" />

This suggestion I cannot agree with. As one of my goals is not to use html within php files, or the least possible. Also, the following syntax does validate as XHTML transitional which follows phpBB's new requirements as far as standards are concerned.

Code: Select all

<img src="{PATH}" height="x" width="y" alt="{TEXT1}" title="{TEXT2}" border="0" />

Thanks for the heads up bugfixed. 8)

bugfixed
Registered User
Posts: 101
Joined: Sun Apr 04, 2004 2:57 am
Location: Turkey
Name: Murat
Contact:

Post by bugfixed » Tue May 23, 2006 7:00 pm

thanks. I agree with you. matter of my giving xhtml standart was I am using xhmtl on my webpages. it is seeming broke down in some browsers.

thanks very much.
Image

Wo1f
Registered User
Posts: 2039
Joined: Fri Jan 28, 2005 3:20 am

Post by Wo1f » Wed May 24, 2006 6:06 pm

Allright bugfixed,

I've edited (slightly) the translated language file to make sure that it complies with the template instructions as per the validator test here at phpBB.com (for those who may want to use EasyMOD) - which has also made me review other translations to the same format. This is also going to be useful for my upcoming v1.1.7 [BETA]. There's an item in the DIY section that needs to be translated.

Code: Select all

##############################################################
## MOD Title: [2.0.20] Restrict Username  - Turkish Language Files
## MOD Author: Wo1f < N/A > (J. C. Woof) N/A
## MOD Description: Allows the administrator to establish username character restrictions and validation based on selected options through the ACP.
## MOD Version: 1.1.6a
##
## Installation Level: Easy
## Installation Time: ~ 1 Minute
## Files To Edit: 2,
##      language/lang_turkish/lang_admin.php,
##      language/lang_turkish/lang_main.php,
## Included Files: N/A
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##      - Translated by Murat Esgin webadmin[at]lavinya[dot]net
##      - Translation author's site: http://www.lavinya.net
##############################################################
## MOD History:
##
##   2006-05-24 Version 1.1.6a
##      - Created standalone Turkish language file
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
## Eklentiyi kurmadan forumunuzun tüm dosyalarýný yedeklemeniz önerilir.
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
language/lang_turkish/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#
$lang['Abilities_settings']       = 'Kullanýcý ve Forum Genel Ayarlarý';

#
#-----[ REPLACE WITH ]------------------------------------------
#
$lang['Abilities_settings'] = 'Forum Genel Ayarlarý'; // 'User and Forum Basic Settings';

#
#-----[ FIND ]------------------------------------------
#
# near the end of file (dosyanýn sonundadýr)
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Restrict username mod - start 
$lang['Username_settings'] = 'Kullanýcýadý ayarlarý'; 
$lang['Username_hide_inac'] = 'Kullanýcý aktif olana kadar kullanýcý adýný gizle. (Hesap aktivasyonu kullanýcýya ya da yöneticiye uygulu olmalý)'; 
$lang['Username_hide_inac_xplain'] = 'Kullanýcýlarýn baþvurularýný ve profil bilgilerini yönetici onaylayana kadar gizler'; 
$lang['Username_activate'] = 'Kullanýcý adýný sýnýrla'; 
$lang['Username_activate_xplain'] = 'Kullanýcý adlarýna aþaðýda verilen karakterlere izin verir. Eðer hayýr ayarlýysa uygunluk geçerli olmayacak.'; 
$lang['Username_def_char_xplain1'] = 'Kullanýlabilir geçerli karakterler: etkilenmeyen aralýk sadece A-Z'; 
$lang['Username_def_char_xplain2'] = 'Varsayýlan kullanýlamaz karakterler: %s'; 
$lang['Username_def_char_xplain3'] = 'Varsayýlan sýnýrlanmýþ karakterler: %s'; 
$lang['Username_allow_nums'] = 'Kullanýcý adlarýna rakam girmeye izin ver'; 
$lang['Username_allow_nums_xplain'] = '0 dan 9 a'; 
$lang['Username_allow_xchars'] = 'Uzatýlan karakterlere izin ver'; 
$lang['Username_allow_xchars_xplain'] = 'Vurgusu etkilenmeyen karakterleri izin ver'; 
$lang['Username_allow_rchars'] = 'Kullanýcý adlarýnda sýnýrlama getirilen karakterleri izin ver';
$lang['Username_allow_rchars_xplain'] = 'Aþaðýya yeni eklenen sýnýrlý karakter listesini açar';
$lang['Username_current_rchars'] = 'Þimdiki kullanýcýadý %s sýnýrlý karakter'; 
$lang['Username_unlocked_rchars'] = 'aç'; 
$lang['Username_current_rchars_xplain'] = 'Bu alandan istemediðin karakterlerden ayrýl'; 
$lang['Username_min_char'] = 'Enaz kullanýcý adý uzunluðu'; 
$lang['Username_min_char_xplain'] = 'Kullanýcý adýnda izin verilen en az karakter sayýsý. (4 den büyük deðer geçerlidir ve önerilir)'; 
$lang['Username_max_char'] = 'Enfazla kullanýcý adý uzunluðu'; 
$lang['Username_max_char_xplain'] = 'Kullanýcý adýna en fazla izin verilen karakter sayýsý'; 
$lang['Username_min_char_error'] = 'Enaz karakter güncellemesi baþarýsýz.<br />Bu deðer 0dan büyük verilen deðerden küçük olmalýdýr.<br /> Veritabanýnda hiçbir deðiþiklik yapýlmadý'; 
$lang['Username_rchars_default'] = 'Varsayýlana dön'; 
$lang['Username_faq_xplain'] = 'Sýnýrlý kullanýcýadý SSS'; 
// Restrict username mod - end

#
#-----[ OPEN ]------------------------------------------
#
language/lang_turkish/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
# near the end of file (Dosyanýn sonundadýr)
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Restrict username mod - start 
$lang['Username_allowed_chars'] = 'Kullanýcý adýnýzda bu karakterleri kullanabilirsiniz %s %s etkilenmeyen karakterler A-z %s %s %s'; 
$lang['Username_length_error'] = 'Kullanýcý adýnýz en az %s karakter ve en fazla %s karakter arasýnda olmalýdýr.'; 
$lang['Username_char_error'] = 'Bu karakterler kullanýlamaz: %s %s %s %s %s %s'; 
$lang['Username_remaining_char'] = ' karakter kaldý'; 
$lang['Username_remaining_chars'] = ' karakterler kaldý'; 
$lang['Username_disallow_ext_chars'] = ' ve Türkçe harfler.'; 
$lang['Username_inactive_url_error'] = 'Bu kullanýcý ya yok ya da hesabý aktif deðil.';
$lang['Newest_user_winac'] = 'Son kaydolan aktif kayýtlý kullanýcý <b>%s%s%s</b>';
// Restrict username mod - end

#
#-----[ DIY INSTRUCTIONS ]------------------------------------------
#
# OPEN = AÇ
# FIND = BUL
# REPLACE WITH = BUNUNLA YER DEÐÝÞTÝR
# BEFORE, ADD = ÖNCESÝNE EKLE
# SAVE/CLOSE ALL FILES = KAYDEY/TÜM DOSYALARI KAPAT
# DIY INSTRUCTIONS = 
#
Turkish translation graciously offered by Murat Esgin - Thank you!

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
There's a downloadable version here:
  • language_turkish_run_v1_1_6a.txt
[/url]
or you can use the info located in the code tags above. As always, your comments and suggestions are welcome.

Thanks again bug!! :wink:

Wo1f
Registered User
Posts: 2039
Joined: Fri Jan 28, 2005 3:20 am

Post by Wo1f » Thu May 25, 2006 7:30 pm

Greetings al!

Version 1.1.6a has been released. There are no changes in the code per say, this is a "tidy-up" release in preparation for a major release in the form of Restrict Username v1.1.7 [BETA].

Thank you all for your patience,

Regards,
Wolf

bugfixed
Registered User
Posts: 101
Joined: Sun Apr 04, 2004 2:57 am
Location: Turkey
Name: Murat
Contact:

Post by bugfixed » Sat May 27, 2006 10:50 am

Wo1f wrote: Greetings al!

Version 1.1.6a has been released. There are no changes in the code per say, this is a "tidy-up" release in preparation for a major release in the form of Restrict Username v1.1.7 [BETA].

Thank you all for your patience,

Regards,
Wolf


very good news. :wink: thanks Wo1f.
Image

Post Reply

Return to “[2.0.x] MODs in Development”