Author Topic: Captcha disable for registered users  (Read 10099 times)

0 Members and 1 Guest are viewing this topic.

Offline son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Captcha disable for registered users
« on: August 07, 2008, 02:40:37 AM »
Hello.

How can I disable captcha for registered users only?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Captcha disable for registered users
« Reply #1 on: August 07, 2008, 08:21:36 AM »
in comment_form.html template use {if user_loggedout} and {endif user_loggedout} tags to hide the capture and then in includes/capture_utils.php replace
Code: [Select]
  if (!$captcha_enable || $user_info['user_level'] == ADMIN) {

with
Code: [Select]
  if (!$captcha_enable || $user_info['user_level'] >= USER) {
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Captcha disable for registered users
« Reply #2 on: August 07, 2008, 03:21:16 PM »
Thanks for you answer.
That worked fine on recent versions of 4images.

I have a 1.7.2 version instaled too.
I add this modification http://www.4homepages.de/forum/index.php?topic=11405.0 for the comments. Secure code at comments (captcha).
How can I make this mode works only for unregistered users too?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Captcha disable for registered users
« Reply #3 on: August 07, 2008, 03:28:19 PM »
Next time with questions regarding a MOD please reply to the MOD's topic, this way not only you might get quick answer by MOD's author, but also others with the same questions might get their answers too.


Do the same thing for comment_form.html and in details.php replace
Code: [Select]
    if (($sicherheit_code == "") || ($sicherheit_code != str_replace('´|´', '=', base64_decode(base64_decode($sicherheit_dec))) ))  {

with this:
Code: [Select]
    if ($user_info['user_level'] < USER && (($sicherheit_code == "") || ($sicherheit_code != str_replace('´|´', '=', base64_decode(base64_decode($sicherheit_dec))) )))  {
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Captcha disable for registered users
« Reply #4 on: August 07, 2008, 06:47:10 PM »
You are right. I just haven't found the MOD's topic yeasterday.

Both codes you gave to me worked fine.
Now on 1.7.2 and recents versions, registered users don't have to type captcha on comments. Thanks for your help.

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Captcha disable for registered users
« Reply #5 on: August 08, 2008, 06:06:11 PM »
 disable captcha is secure  with new users?
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Captcha disable for registered users
« Reply #6 on: August 08, 2008, 07:02:58 PM »
Probably no. I am always controling all the comments (and everything else).

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Captcha disable for registered users
« Reply #7 on: August 08, 2008, 09:07:00 PM »
it would be best to control the number of uploads. I will make it to my website, like a present to active users
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more