Forums

a newbie question on ChronoForms

spektory 11 Jan, 2012
Hi,
i would like to start using ChronoForms and would like to check if they fit my needs.
i have a very basic scenario (or so i thought so far) here are the use cases i need to set up:

i have articles on my site that i would like to allow access to only to users that have subscribed to my mailing list.
1. users coming through my mailing list should be able to view the data without any interruptions
2. users coming from other links i put on the web should go through registration and then be forwarded to the correct article (preferably, a different location based on a parameter in the link and not a different form for each article).
3. users visiting my website (not from a specific link) should be able to read some of the article (for example till the "read more" and then would have to undergo the same process as usecase 2)

i am not sure if this means using the ACL in joomla or not (if so, i am guessing all users would have to register which is not what i want).
i am using mailchimp as my mailing list application.
Thanks,
GreyHead 11 Jan, 2012
Hi spektory,

The answer is Yes and No. ChronoForms is a forms component; not particularly an access control component. I'm sure that you could use if for the form part of this but it's not a very good solution for the Access Control part.

Personally I'd probably use Jumi to put a code snippet in a module to check the URL and add a token into the User session to set the permissions. I don't know how you'd limit users to just the intor-text section of the articles.

There must also be access control components that could do much of this for you.

Bob
spektory 11 Jan, 2012
Thanks GreyHead,

so here is my question. is it possible to redirect from a form to a page depending on a parameter i send in the link? something like:
<!-- w --><a class="postlink" href="http://www.mywebsite.com/mySubscribePage.php?redirctTo=myContentPage">www.mywebsite.com/mySubscribePage.php?r ... ontentPage</a><!-- w -->

BTW for the "read more function" this is how it is done (if you use Joomla ACL which i rather not):
http://www.joomlatutorials.com/joomla-tips-and-tricks/38-joomla-website-management/103-make-people-register-on-your-joomla-site-to-read-more.html

i'll be glad to hear of any other ideas (writing my own code with Jumi, though possible, is not what i want to do this weekend :->)

Thanks again
GreyHead 11 Jan, 2012
Hi spektory,

Yes, you can do that. ChronoForms will add the value of reDirectTo to the Form Data and you can heck that in the On Load event and redirect or show the page.
<?php
if ( $form->data['reDirectTo'] == 'myContentPage' ) {
  $mainframe->redirect('some_url');
}
?>

Bob

PS This doesn't handle the problem of people going directly to the article link though.





Bob
This topic is locked and no more replies can be posted.