Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1] 2 3 4   Go Down

Author Topic: reCAPTCHA plugin  (Read 119372 times)

0 Members and 1 Guest are viewing this topic.

SaWey

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1119
    • SaWey.be
reCAPTCHA plugin
« on: January 05, 2009, 11:28:45 pm »

reCAPTCHA plugin v0.9

This plugin replaces the built in CAPTCHA of CPG1.5
Primarily built as an example on how to create a CAPTCHA plugin (as this has some special hooks)

Just upload, install and enjoy.


[edit] I just had an idea to create a CAPTCHA plugin which uses different CAPTCHA techniques and rotates these randomly or by a specified intervall... (if someone wants to do this, be my guest)

Get the free reCaptcha keys for your site here:
reCaptcha Signup at Google
« Last Edit: May 13, 2013, 01:43:48 am by Joe Carver »
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: reCAPTCHA plugin
« Reply #1 on: March 05, 2010, 02:31:57 am »

Update - AJAX reCaptcha v0.9.5 - 2.1

I have updated this plugin with full credits to SaWey here and in the files.

This version of the plugin now uses AJAX to load the reCaptcha. The result is a cleaner look to displayimage.php page with the reCaptcha not visible until the user clicks a button to load it from the remote server. Visitors must have javascript enabled in the browser to use the reCaptcha. It also might be a little more bot resistant with the AJAX load.

There is now a configuration page where the colors/style and language can be selected. There is also an option to not use the AJAX reCaptcha on the contact page so that non-javascript visitors can contact the gallery admin using the reCaptcha <noscript> option.

   +++++++++++
   
   To Install:
   1) Upload and install via plugin manager.
   
   To Uninstall:
   1) Use plugin manager

   Questions?
   1) Read the docs
   
   +++++++++++
       
Get the free reCaptcha keys for your site here:
reCaptcha Signup at Google

   +++++++++++


  Demo Version Link

   Bug and usage reports are kindly requested.
 
   Please use the latest available version. Always.

« Last Edit: May 13, 2013, 01:46:09 am by Joe Carver »
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: reCAPTCHA plugin
« Reply #2 on: March 07, 2010, 03:14:57 am »

Release of version 1.0 - AJAX reCaptcha for Coppermine 1.5.x

This is now complete - please reply with any comments, translations for the language files, etc.

    Changelog
    • admin.php sanitize input
    • admin.php check for changes on submit
    • all text is via lang. file
    • codebase.php change captcha error response for comments
    • add inline documentation to package
    • add help (greybox pop ups) to admin.php
    • english.php additions admin - codebase - error

    Note:File Header  info. is not very descriptive.

    Many thanks to SaWey + dev. team members whose code I have used as templates.

    Joe Carver

    • Dev Team member
    • Coppermine addict
    • ****
    • Country: us
    • Offline Offline
    • Gender: Male
    • Posts: 1545
    • aka 'i-imagine'
      • Home Page
    Re: reCAPTCHA plugin
    « Reply #3 on: March 30, 2010, 09:08:55 pm »

    Release of version 1.1

      Changelog
      • Add logging for all reCaptcha errors (comment, contact, register)
      • Change error text for visitor

      New version attached to this post only.

      CFR

      • Coppermine newbie
      • Offline Offline
      • Posts: 10
      Re: reCAPTCHA plugin
      « Reply #4 on: April 26, 2010, 12:19:20 pm »

      Hi!

      Icannot instal this last plugin in my gallery :/ I have message:
      "Call to undefined function cpg_fetch_icon() in /home/tomushic/public_html/gallery/plugins/recaptcha/init.inc.php  on line 28"

      What i must do to?

      THX
      CFR
      Logged

      Joe Carver

      • Dev Team member
      • Coppermine addict
      • ****
      • Country: us
      • Offline Offline
      • Gender: Male
      • Posts: 1545
      • aka 'i-imagine'
        • Home Page
      Re: reCAPTCHA plugin
      « Reply #5 on: April 26, 2010, 01:00:19 pm »

      Posting a link to your Coppermine is required for support - please do so.

      CFR

      • Coppermine newbie
      • Offline Offline
      • Posts: 10
      Re: reCAPTCHA plugin
      « Reply #6 on: April 26, 2010, 01:28:55 pm »

      Logged

      Αndré

      • Administrator
      • Coppermine addict
      • *****
      • Country: de
      • Offline Offline
      • Gender: Male
      • Posts: 15764
      Re: reCAPTCHA plugin
      « Reply #7 on: April 26, 2010, 01:33:52 pm »

      You're using Coppermine 1.4.26. As you can see, this plugin is designed for cpg1.5.x
      Quote
      forum.coppermine-gallery.net > Support > cpg1.5.x Support > cpg1.5 plugins > cpg1.5 plugin contributions > Topic: reCAPTCHA plugin
      Logged

      CFR

      • Coppermine newbie
      • Offline Offline
      • Posts: 10
      Re: reCAPTCHA plugin
      « Reply #8 on: April 26, 2010, 01:53:08 pm »

      Oops, automatic update is going down. Ok, THX i must check my server provider.

      THX again
      Logged

      Criss

      • Coppermine novice
      • *
      • Offline Offline
      • Posts: 36
      Re: reCAPTCHA plugin
      « Reply #9 on: June 16, 2010, 08:39:07 am »

      I'm having problem with recaptcha plugin for registration. "Enter confirmation" button seems to be disabled. Any idea why?

      http://joejonasphotos.org/register.php
      Logged

      Αndré

      • Administrator
      • Coppermine addict
      • *****
      • Country: de
      • Offline Offline
      • Gender: Male
      • Posts: 15764
      Re: reCAPTCHA plugin
      « Reply #10 on: June 16, 2010, 11:36:36 am »

      Works for me as expected. I just registered the user 'test', which you can delete.
      Logged

      Criss

      • Coppermine novice
      • *
      • Offline Offline
      • Posts: 36
      Re: reCAPTCHA plugin
      « Reply #11 on: June 16, 2010, 04:14:43 pm »

      Thanks, it was my template's fault.
      Logged

      Joe Carver

      • Dev Team member
      • Coppermine addict
      • ****
      • Country: us
      • Offline Offline
      • Gender: Male
      • Posts: 1545
      • aka 'i-imagine'
        • Home Page
      Re: reCAPTCHA plugin
      « Reply #12 on: June 17, 2010, 04:15:17 pm »

      Release of Version 1.2

        Changelog
        • Hide OK (submit) button until reCaptcha is called (cleaner, more simple for visitor)
        • Add button/function "Hide/Cancel" to hide reCaptcha division
        • Change button class to "button"
        • Fix layout error in admin.php

        New version is now attached to this post.

        kyber

        • Coppermine newbie
        • Offline Offline
        • Posts: 9
        Re: reCAPTCHA plugin - error message on runnin install
        « Reply #13 on: August 16, 2010, 06:25:45 pm »

        Installation using plugin manager fails with error message:
        "Parse error: parse error, unexpected '(', expecting '}' in /home/sites/site13/otterspace/photos/plugins/recaptcha/codebase.php on line 382"

        AJAX reCaptcha (recaptcha): v1.2
        Coppermine Photo Gallery 1.5.8 running on Apache on Linux

        would welcome suggestions of what to look at.

        Everything else seems to be running fine, and other plugin installs have run fine as well.
        Logged

        Joe Carver

        • Dev Team member
        • Coppermine addict
        • ****
        • Country: us
        • Offline Offline
        • Gender: Male
        • Posts: 1545
        • aka 'i-imagine'
          • Home Page
        Re: reCAPTCHA plugin
        « Reply #14 on: August 16, 2010, 11:47:21 pm »

        Posting a link to your Coppermine is required for support - please do so.

        The file has been corrupted. Use a good set of utilities and a clean copy to try again. Unzip and upload from your local computer if your server is corrupting the files.

        kyber

        • Coppermine newbie
        • Offline Offline
        • Posts: 9
        Re: reCAPTCHA plugin
        « Reply #15 on: August 17, 2010, 03:53:48 pm »

        Same problem.

        I downloaded from the above thread, then used a remote ftp client (rather than my local ftp client) to upload and unzip the zip file to the correct place this time (having deleted the recaptcha folder on server first).

        (implementation is at otterspace.co.uk slash photos)

        note I also have a problem listed under installation covering versioncheck not working correctly, although overall coppermine appears to be working fine

        any more suggestions?
        Logged

        Αndré

        • Administrator
        • Coppermine addict
        • *****
        • Country: de
        • Offline Offline
        • Gender: Male
        • Posts: 15764
        Re: reCAPTCHA plugin
        « Reply #16 on: August 17, 2010, 04:13:49 pm »

        Which PHP version do you use?
        Logged

        kyber

        • Coppermine newbie
        • Offline Offline
        • Posts: 9
        Re: reCAPTCHA plugin
        « Reply #17 on: August 17, 2010, 05:39:42 pm »

        PHP Version 4.3.11, configured as follows:

        './configure' '--host=i386-redhat-linux' '--build=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc/httpd' '--with-config-file-scan-dir=/etc/httpd/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl=/root/software/curl-7.15.5' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-pcre-regex' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--without-oci8' '--with-pear=/usr/share/pear' '--with-kerberos=/usr/kerberos' '--with-ldap' '--with-ldap-sasl' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2filter=/usr/sbin/apxs' '--with-mcrypt' '--enable-shared
        Logged

        Αndré

        • Administrator
        • Coppermine addict
        • *****
        • Country: de
        • Offline Offline
        • Gender: Male
        • Posts: 15764
        Re: reCAPTCHA plugin
        « Reply #18 on: August 17, 2010, 06:02:56 pm »

        Afaik you cannot embed objects in echo outputs in PHP4. Please try to store them in a variable and embed that variable instead of the object.
        Logged

        kyber

        • Coppermine newbie
        • Offline Offline
        • Posts: 9
        Re: reCAPTCHA plugin
        « Reply #19 on: August 17, 2010, 06:28:00 pm »

        Afaik you cannot embed objects in echo outputs in PHP4. Please try to store them in a variable and embed that variable instead of the object.

        Αndré: Who was that intended for? It means nothing to me and does not obviously related. The reCAPTCHA plugin install routine fails for me. I am not going to hack the code to make it work on the host system I use, I would rather find out what it wrong with the setup of the host system.
        Logged
        Pages: [1] 2 3 4   Go Up
         

        Page created in 0.031 seconds with 20 queries.