Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Modifications    Mod Requests and Support  ›  more username characters Moderators: 10 Series Support Team
Users Browsing Forum
No Members and 1 Guests

more username characters  This thread currently has 499 views. Print
1 Pages 1 Recommend Thread
hwystitch
January 20, 2007, 10:11pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 5
Posts Per Day: 0.01
Time Online: 1 hours 55 minutes
ok, got a small problem, we are a gameing clan and our tag has [] in it, is there anyway to edit the register.pl to allow this? I found a line that I thought would work but didnt.
Code
error_reg($registertxt[27]) if($FORM{'username'} !~ /\A[0-9A-Za-z%+,\.†^_ ]+\Z/);
	error_reg($registertxt[27]) if($FORM{'username'} !~ /\A[0-9A-Za-z%+,\.†^_ ]+\Z/);
	error_reg($registertxt[21]) if($FORM{'email'} !~ /\A([0-9A-Za-z\._\-]{1,})@([0-9A-Za-z\._\-]{1,})+\.([0-9A-Za-z\._\-]{1,})+\Z/);


I tried numerous ways to get the [] characters to work in the username, but to no avail. also would like to add the {} characters as well, I know they are used in code so this makes it hard but I tried to use \[ and that didnt work, maybe I am even going about it the wrong way.....any suggestions?
Logged Offline
Private Message Private message
pcmantinker
January 20, 2007, 11:16pm Report to Moderator Report to Moderator

It's not what is seen that matters, it's character
Forum Support Team
Posts: 402
Gender: Male
Posts Per Day: 0.51
Reputation: 100.00%
Reputation Score: +9 / -0
Time Online: 3 days 33 minutes
Location: Covington, LA
Age: 18
I'm not a Perl expert, but those characters, no matter where you put them, tell the interpreter how to execute code. You could search Google and see if there is a solution to including your special characters in a string for Perl, but I am unsure of how to do it.



Even if your idea seems whack, stick with it and make it happen.
IGA: International Gamers' Alliance: http://www.iga-home.net/
Blah-Themes.com http://www.blah-themes.com/
A website devoted to theme development for E-Blah based forums.

For it is by grace you have been saved, through faith—and this not from yourselves, it is the gift of God—[Eph 2:8]
Logged Offline
Site Site Private Message Private message AIM AIM YIM YIM Windows Live Messenger WLM Skype Skype Reply: 1 - 12
Justin
January 20, 2007, 11:48pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,075
Gender: Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
Code
	error_reg($registertxt[27]) if($FORM{'username'} !~ /\A[0-9A-Za-z%+,\.@†\[\]^_ ]+\Z/);


Should do it.  But that's just for register.  You'll need to do something similar to ProfileEdit.pl.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 2 - 12
hwystitch
January 21, 2007, 9:10am Report to Moderator Report to Moderator
E-Blah Member
Posts: 5
Posts Per Day: 0.01
Time Online: 1 hours 55 minutes
thanks justin, works on edit profile now, but still doesnt work on the register.pl. Not a real big deal, members will just have to register without the tag then change it in profile later. heres what I changed profileedit.pl to.
Code
error($profiletxt[66]) if($FORM{'sn'} !~ /\A[0-9A-Za-z#%+,-\.@†\[\]^_ "']+\Z/ && !$disablesn);


I may try to change register.pl to
Code
!~ /\A[0-9A-Za-z#%+,-\.@†\[\]^_ "']+\Z/ && !$disablesn);


and see if that works. Also noticed that the error_reg($registertxt[27]) is repeated, that on purpose or accident? also do i need to change both of them?
Logged Offline
Private Message Private message Reply: 3 - 12
hwystitch
January 21, 2007, 9:14am Report to Moderator Report to Moderator
E-Blah Member
Posts: 5
Posts Per Day: 0.01
Time Online: 1 hours 55 minutes
nope change to register.pl didnt work.

but still works on the profileedit.pl so no big deal.

thanks justin
Logged Offline
Private Message Private message Reply: 4 - 12
Martin
January 21, 2007, 11:48am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 26 minutes
Location: UK
Age: 50
In Register.pl find:

Code
$unerror = 1 if($URL{'u'} !~ /\A[0-9A-Za-z%+,\.@†^_ ]+\Z/);


and change to:

Code
$unerror = 1 if($URL{'u'} !~ /\A[0-9A-Za-z#%+,-\.@†\[\]^_ "']+\Z/ && !$disablesn);


Find:

Code
error_reg($registertxt[27]) if($FORM{'username'} !~ /\A[0-9A-Za-z%+,\.@†^_ ]+\Z/);


and change to:

Code
error($profiletxt[66]) if($FORM{'sn'} !~ /\A[0-9A-Za-z#%+,-\.@†\[\]^_ "']+\Z/ && !$disablesn);


I think there is also a typo here, the error_reg($registertxt[27]) line is there twice so delete one of them.



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 5 - 12
Justin
January 21, 2007, 12:22pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,075
Gender: Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
Yeah, I noticed that thing was in there twice.  I'm not sure why or how it got there twice either.  lol


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 6 - 12
Dmitry
January 27, 2007, 3:00am Report to Moderator Report to Moderator

E-Blah Member
Posts: 44
Gender: Male
Posts Per Day: 0.03
Time Online: 18 hours 43 minutes
Location: Moscow, Russia
Age: 28
I wonder is it possible to make special characters available in forum messages? For example an English Pound sign: £ It converts to something but not back.


Beatles forums by E-Blah http://www.dmbeatles.com/forums/
Logged Offline
Site Site Private Message Private message Reply: 7 - 12
Martin
January 27, 2007, 3:37am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 26 minutes
Location: UK
Age: 50
You just need to do the £ sign, it needs no speciel code.

If you need to use code then you would have to enable html in posts.



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 8 - 12
Dmitry
January 27, 2007, 4:07am Report to Moderator Report to Moderator

E-Blah Member
Posts: 44
Gender: Male
Posts Per Day: 0.03
Time Online: 18 hours 43 minutes
Location: Moscow, Russia
Age: 28
Quoted from Martin
You just need to do the £ sign, it needs no speciel code.

If you need to use code then you would have to enable html in posts.


Thanks for the advise! Anyway £ doesn't work either on my forums.


Beatles forums by E-Blah http://www.dmbeatles.com/forums/
Logged Offline
Site Site Private Message Private message Reply: 9 - 12
Martin
January 27, 2007, 4:57am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 26 minutes
Location: UK
Age: 50
Try changing this in your template.html:

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

to this:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 10 - 12
Dmitry
January 27, 2007, 5:27am Report to Moderator Report to Moderator

E-Blah Member
Posts: 44
Gender: Male
Posts Per Day: 0.03
Time Online: 18 hours 43 minutes
Location: Moscow, Russia
Age: 28
Thanks, it works for my forum members. For me the problem is in Opera, which switches automatically charset to Cyrillic   I have to search through browser preferences.


Beatles forums by E-Blah http://www.dmbeatles.com/forums/
Logged Offline
Site Site Private Message Private message Reply: 11 - 12
Martin
January 27, 2007, 7:34am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 26 minutes
Location: UK
Age: 50
In Opera:

1. Choose Tools from the menu
2. Select Preferences
3. Under Language select Details
4. Change the character set to iso-8859-1



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 12 - 12
1 Pages 1 Recommend Thread
Print

E-Blah Community    Modifications    Mod Requests and Support  ›  more username characters