PDA

View Full Version : Help to control field


Adem GEN?
03-23-2009, 02:24 AM
Hello,

FOR
The citizenship number which has include 11 numbers will be required in FIELD15. When the guests complete all required information and press Complete Registration buton then the system should check all information which are entered in FIELD15 like username and email address whether it includes the same information or not, as similarly it should check the citizenship number.

For this, I'll try to write a plugin, Please help?

I will use this code
http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html

What is the variable to control field15 hook name?

TigerC10
03-23-2009, 02:50 AM
No need for a plugin, use REGEX. In your profile field manager at the bottom of the profile field data you will see it as an option

Regular Expression
You may require the input field to match a regular expression (PCRE).

^[0-9]{11}$|^$


That will match either 11 numbers all put together.... Ex.

12345678987

Or it will match nothing.

Adem GEN?
03-23-2009, 03:08 AM
No no
In other registered members,
same data for control

TigerC10
03-23-2009, 03:19 AM
Oh, you already made a thread about that before, didn't you?

Why does the value have to be unique? Do you really expect people to try to input something that's already taken?

Adem GEN?
03-23-2009, 03:38 AM
<div align="left">Plugin did not write one.
I'm trying to write it myself.

This 11 character number is unique.
This is the number of citizenship in Turkey.
</div>

puertoblack2003
03-23-2009, 03:44 AM
i use the same method for my registration but i use it as zipcode (US). That is to curb spam registration and it works very effective...

TigerC10
03-23-2009, 03:44 AM
Yes, why must it be unique? Do you think that people will try to insert someone else's number?

Adem GEN?
03-23-2009, 04:02 AM
My forum is a private forum.
To avoid double registration with the same nationality number will use
AND
Citizenship and the required number in the mandatory registration

This feature is not for spam membership.

Adem GEN?
03-23-2009, 09:55 PM
My bad English
I'll try to explain it word by word

forum.com/register.php?do=register

Field40
96899

Results to show the message
This code is placed there, may I know how? hook? "<div id="status"></div>"

I just had this problem

Would you please help?
Thank you

Adem GEN?
03-24-2009, 09:13 PM
Does no one to help in this matter?

Very important for me!

--------------- Added 1237994396 at 1237994396 ---------------

My bad English
I'll try to explain it word by word

forum.com/register.php?do=register

Field40
96899

Results to show the message
This code is placed there, may I know how? hook? "<div id="status"></div>"

I just had this problem

Would you please help?
Thank you

For register field
and
For Single-Line Text Box field15

eval('xxxxxxxxxx .= "' . fetch_template('my_template') . '";');
OR
Codes find -> replace

Would you please help?