Hi,
I have a small community website running and have recently started experimenting with phoca guestbook. I Like it a lot, but I would like to know if it's possible to not display the captcha once people are logged in and are Registered. I do want to have the captcha for guests, but for the people that are already logged in it is inconvenient and less usefull. Therefor I would to know if this is possible to achieve? Guests get to see captcha, Registered users not...
Greetings,
Fabian
Captcha and Registered users
-
- Phoca Newbie
- Posts: 9
- Joined: 29 Jan 2009, 16:09
Re: Captcha and Registered users
I have tried making the outcome of the $require['captcha'] tag dependent on the id of the user with this code, but it doesn't solve the issue at hand.
Am I overlooking something? I am clueless like Shaggy and Scooby before the commercial break!
Code: Select all
if ($params->get( 'enable_captcha' ) != '') {
if ( $user->id > 0 )
{
$require['captcha'] = 0;
}
else
{
$require['captcha'] = $params->get( 'enable_captcha' );}
}
else {$require['captcha'] = 1;}
Am I overlooking something? I am clueless like Shaggy and Scooby before the commercial break!
-
- Phoca Newbie
- Posts: 6
- Joined: 01 Jul 2008, 10:32
Re: Captcha and Registered users
I'm also waiting for a feature like this. Unfortunately, I don't understand a single line of PHP code, so i can't make it myself or help you. keep me updated in case you managed it to work
- Jan
- Phoca Hero
- Posts: 48706
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Captcha and Registered users
Hi, added into the feature request list, Jan
If you find Phoca extensions useful, please support the project