vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Help to control field (https://vborg.vbsupport.ru/showthread.php?t=209178)

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

Help to control field
 
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...hp-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).
Code:

^[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

1 Attachment(s)
My bad English
I'll try to explain it word by word

forum.com/register.php?do=register

Field40
Attachment 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 [DATE]1237994396[/DATE] at [TIME]1237994396[/TIME] ---------------

Quote:

Originally Posted by AdemGEN? (Post 1775364)
My bad English
I'll try to explain it word by word

forum.com/register.php?do=register

Field40
Attachment 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?


All times are GMT. The time now is 11:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01168 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete