Forums

I want only registered to see form

lovemetender 15 Apr, 2007
I want only registered to see the form. How do I do that? I don't see an option.
Max_admin 18 Apr, 2007
Hi,

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";
}
}

?>
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
lovemetender 18 Apr, 2007
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?
Max_admin 19 Apr, 2007
Through Joomla admin, find ur default template and click "Edit HTML", then paste this code out of any PHP tags insidet he
<body>


Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
beadsboy 09 Jun, 2007
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
beadsboy 09 Jun, 2007
.<br><br>Post edited by: beadsboy, at: 2007/06/10 14:56
beadsboy 09 Jun, 2007
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
Max_admin 09 Jun, 2007
not sure I understand you, did u get it working ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
vincent 27 Jun, 2007
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
vincent 27 Jun, 2007
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
Max_admin 27 Jun, 2007
Hi Vincent,

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
}
?>
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.