Forums

CF form to control access to DOCman

Wineblue2 11 Jan, 2012
We are building a Joomla 1.7 site that includes DOCman to allow a class of ACL users on the site to upload their own content to DOCman for resale through our site. We must be able to control access to this via a Content Provider Agreement that must be agreed to before the site grants access to the user to continue on to DOCman component so the user can upload. I would prefer that this take place in a lightbox when the user arrives at the Document Upload page and any failure to agree to this Agreement would result in the user being kicked back to the previous page they started on.

I've looked through these How-To forum threads but have not yet seen anything like this and would appreciate some input from the community. If something like this can be done with Chronoforms I would be more than happy to create a video tut to share with the community.
GreyHead 11 Jan, 2012
Hi Wineblue2,

I think that you could do this with JavaScript by having the light box open when the form loads. If the lightbox has an 'accept' box you could use Ajax to send the info back to the server and maybe add a token to the session that can be checked when the lightbox is closed and again when the form is submitted.

Bob
Wineblue2 11 Jan, 2012
That sure sounds simple when you say it Bob but I am a novice when it comes to coding anything hence why I was looking for an example (recipe) to work from. Essentially, I just need to be able to display the Agreement in a scrolling lightbox for viewing with a validation checkbox and submit button that checks that the checkbox was checked before closing the lightbox and displaying the DOCman file upload page. This page has already been set with a restriction to the ACL user class we wish to grant access too.
GreyHead 16 Jan, 2012
Hi Wineblue2,

Sorry, I don't have a recipe in the files for this one :-(

Bob
Wineblue2 16 Jan, 2012
That is unfortunate! Sure would be handy to many I am sure and a great working example of a validation form to use.😟
This topic is locked and no more replies can be posted.