Firstly let me say my attitude is not down to the Chrono product line, but that fact I am failing to create the website I promised a client.
Basically I am creating a website which will allow certain companies access to certain categories of the site (Each category has its own menu item linking to the category table view). I intend to use JUGA for the ACL, creating a group for each company, and applying the company groups to each category (I also have a problem with this right now as it appears you have to set the permissions for each article to ensure it works, if anyone knows anything about this, I would be grateful).
Now onto my hopeful use of the Form and Connectivity.
A feature of JUGA is to allow the creation of access codes, which can then be inputted by the user, when a code is successfully inputted it automatically moves the user to the group assigned to the user code (Got me so far?) Example: In JUGA create group 'company 1', then create access code '123456' linked to 'company 1' with a maximum hit count of 10. The user can now enter this access code in the frontend and automatically be moved to the JUGA group 'company 1'. They can do this 10 times.
Seems simple enough up to now..
What I would like the use the Chrono products for is to restrict registrations based on availability and existence of JUGA access codes. i.e. the user can only sign up if a valid access code exists with remaining hits. This enables me to retain an open registration form, but will only allow client with valid codes to sign up new users.
I do not actually think this will be so hard for an experienced programmer, but unfortunately while handy with Joomla and Fireworks etc, my PHP is pretty bad.
I have attached a screenshot taken from MYPHPADMIN, showing the table containing the access code details.
As you can see what I need to be able to do is create a new registration form, and add a text field where the user can input the access code. What I then need is for the field to be verified against the jos_juga_codes table, example
Does the code exist? (title) Is the code activated (published)? Does (hits) = less than (times_allowed)?
If so, let the user successfully register, if not show an error message.
I think this is just a basic database query and is possible to do using Forms and Connectivity?
If they can be solved my client will most certainly subscribe to both products.
I hope someone can help, apologise for the long winded post.
Mark