I want only registered to see the form. How do I do that? I don't see an option.
Forums
I want only registered to see form
Hi,
Yes, this is a tricky issue, u can solve this at ur template HTML, paste this code OUTSIDE php tags.
Yes, this is a tricky issue, u can solve this at ur template HTML, paste this code OUTSIDE php tags.
<?php
global $my;
if($option == 'com_chronocontact'){
if(!$my){
echo "you are not autho... plz login";
}
}
?>
I tried but nothing happened. Am not sure it I pasted it in the right html document. Is it the one in the template folder?
Through Joomla admin, find ur default template and click "Edit HTML", then paste this code out of any PHP tags insidet he
Cheers
Max
<body>
Cheers
Max
i dont know programming ...
i linked the url to be seen only by registered users ... and put the login box on leftside top.
so after login they automatically get redirected to the form page.
Thankyou,
Devang
i linked the url to be seen only by registered users ... and put the login box on leftside top.
so after login they automatically get redirected to the form page.
Thankyou,
Devang
i dont know programming ...
i linked the url to be seen only by registered users ... and put the login box on leftside top.
so after login they automatically get redirected to the form page.
Thankyou,
Devang
i linked the url to be seen only by registered users ... and put the login box on leftside top.
so after login they automatically get redirected to the form page.
Thankyou,
Devang
not sure I understand you, did u get it working ?
The suggested code above blocks unregistered users from any Chronoform... I'd like to block them out of certain chrono forms, not all of them. Would there be an option for that too?
Maybe in a future release a public/registered/special button could be added per form..
Vincent
Maybe in a future release a public/registered/special button could be added per form..
Vincent
The suggested code above blocks unregistered users from any Chronoform... I'd like to block them out of certain chrono forms, not all of them. Would there be an option for that too?
Maybe in a future release a public/registered/special button could be added per form..
Vincent
Maybe in a future release a public/registered/special button could be added per form..
Vincent
Hi Vincent,
Your suggestion is cool, We will do that!!
But for now, you can use PHP and check for this :
Your suggestion is cool, We will do that!!
But for now, you can use PHP and check for this :
<?php
global $my;
if(($my)&&($_GET['chronoformname'] == 'your_form_name')){
//ur code goes here
}
?>
This topic is locked and no more replies can be posted.