Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

[CLOSED] V 2.0 jqv:custom rule not found - phone 08 Nov 2012 02:40 #5116

  • madaura
  • madaura's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 35
  • Thank you received: 3
Hello Admin,

I know there is a closed ticked about this topic, but this error is still present and I'm using the phone regex that comes with cook,

Thank You!

Please Log in or Create an account to join the conversation.

Re: V 2.0 jqv:custom rule not found - phone 09 Nov 2012 19:00 #5188

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
j-cook.pro/forum/19-new-tickets/5048-jqv...not-found-phone#5065

The native RegEx lib of Cook is only an example for very beginners. It do not handle all kinds of phones.

Do you have '_' (underscrores) in the handler ? Remove them in V2.0.
Because since soon, I decided to impose a rule : The underscores are used to distinct 2 different instances of the same rule (different parameters), as for the files. This is a good workaround to limit the quantity of rule files.
So, only the first part before the '_' is kept to call the rule php file :
ex : file_1234, will call 'rules/file.php', but in JS, the unique handler will be 'file_1234'

That's it.

Can I close ?
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: V 2.0 jqv:custom rule not found - phone 09 Nov 2012 20:23 #5197

  • madaura
  • madaura's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 35
  • Thank you received: 3
About the '_', Nop! I didn't change anything, I'm using the original handler name 'phone'.
So I just create a custom one to fix this error.
By the way, the 'domain' regex displays the same error, so I had to remove it too.

Thanks for your reply!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.087 seconds

  Excellent Tool ! This tool will save you a lot of time writing the same old structure. I've used others but this is really nice for a quick start. Makes a 3 hour task a 15 minute one. Thanks for this extension
dickrundell (JED)
         

Get Started