The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[SOLVED] Error Message in newthread form
Hello ...
I add new filed in newthread form , this field will contain only numbers i know how show filed in newthread template and save data in database PHP Code:
but i want know how i make this filed (user_contact) Necessary and show erorr massage if user not entry anything Or user entry letters, not numbers ... like Error message thread title PHP Code:
Thanks ! |
#2
|
|||
|
|||
You could try changing "REQ_NO" to "REQ_YES" and see if that does what you want.
|
#3
|
||||
|
||||
i changing it in threadfpdata_start hook
PHP Code:
I want to make sure that the user writes the content in this field, and this field accepts numbers only If the user does not fill the field number, stop the process of sending new thread OR stop editing the thread and shows him a message (There is an empty field and you must fill number) like this photo in attachment |
#4
|
||||
|
||||
OKay ... I finally found the solution
hook : newpost_process PHP Code:
Thank you , kh99 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|