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.062 seconds

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started