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

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started