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 [5] 6   Go Down

Author Topic: reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login  (Read 342894 times)

0 Members and 2 Guests are viewing this topic.

cimona

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
    • Simona Mar
Re: reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login
« Reply #80 on: December 03, 2009, 01:45:43 am »


Find around line 323:
Code: [Select]
      </tr></table>
EOT;
Replace with:
Code: [Select]
EOT;
Hi Joe, that fixed my problem, thank you very much!
I am using internet explorer and my page looked great.. but after I opened it in firefox as you suggested I got a shock .. looks all bad and like you said lots of errors in css.
I only worked a bit on this theme and my css is very messy.
Thank you again for the plugin and everything.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login
« Reply #81 on: December 06, 2009, 08:49:01 pm »

This reduces the number of validation errors from 501 to 498 on your page. Like I said in your other thread: make your theme validate in terms of HTML and CSS and you'll be good in nearly every aspect.
Logged

jobbie007

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login
« Reply #82 on: January 22, 2010, 08:34:28 am »

I need a bit of help. I am trying to install the magnificent reCapture plugin to stop the hundreds of spam login requests I am getting and I have hit a brick wall. I think my SQL entries are screwed but not sure. This is the debug error I get:

Quote
While executing query "INSERT INTO cpg_config VALUES('new_recaptcha_pubkey', '[key removed]'), ('new_recaptcha_privkey', '[key removed] ')" on 0

mySQL error: Duplicate entry 'new_recaptcha_pubkey' for key 1

Anyone any ideas? Can some one walk me through fixing it?

Cheers,

Martin.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login
« Reply #83 on: January 22, 2010, 08:51:26 am »

Make sure that the table column that the error message complains about is set to auto-increment, using a tool like phpMyAdmin to look at the database directly.
Logged

jobbie007

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login
« Reply #84 on: January 22, 2010, 09:20:02 am »

Thanks for the pointer. Went into the SQL database table and the keys had been peft in from a previous install.

Removed them, clicked "i" on the "not installed plugin list", entered the keys again......

Now the plugin has disappeared!..not in the "installed list"......not in the "not installed list". A further look in the plugin table in the SQL and it is in there but not listed and not apparently working?

Any more thoughts?

Cheers,

Martin.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login
« Reply #85 on: January 22, 2010, 09:30:36 am »

Don't look at the plugins table, but at the config table. Make sure that there is no leftover duplicate key there.

@Joe Carver: your pligin should not use "INSERT INTO", but "INSERT INTO IGNORE" to avoid such duplicate error messages.
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login
« Reply #86 on: January 22, 2010, 01:52:52 pm »

@ Martin, Please in the future post a link to your Coppermine when asking for support.

@ Anyone, Always use Plugin manager as your first method of removing any plugins.

@ Joachim, The perils of copy and paste (from a similar plugin) have caught up with me. I had just been trying to count how many 100's of downloads without support requests for this plugin.......so again I have taken your suggestions. Newer version is now attached.

     +++++

Release of version 2.6

    Changelog
    • Installation - change sql query to "INSERT IGNORE INTO" for keys to db
    • Uninstall - change cpg_db_query to delete specific record of keys

    jobbie007

    • Coppermine newbie
    • Offline Offline
    • Posts: 4
    Re: reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login
    « Reply #87 on: January 22, 2010, 05:34:47 pm »

    Apologies for not linking to Coppermine: http://www.team-richmond.com/coppermine/login.php

    Deleted the keys in the config table. deleted the files in the plugins directory. Browsed and uploaded from the zip file. Disappeared. Not even a option to put in the keys this time.

    Hmmm any thoughts?

    Many thanks,

    Martin.
    Logged

    Joe Carver

    • Dev Team member
    • Coppermine addict
    • ****
    • Country: us
    • Offline Offline
    • Gender: Male
    • Posts: 1545
    • aka 'i-imagine'
      • Home Page
    Re: reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login
    « Reply #88 on: January 22, 2010, 06:00:20 pm »

    1) Have you disabled plugins?  (Admin >> Config >> Enable plugins (set Yes))

    2) Are you using the newer version 2.6?

    3) Do you see the plugin as not installed after you upload the .zip?
            - is the plugin directory writeable (and also is it still there?)
            - can you install any other plugins? Perhaps even the Sample?


    I have now just uninstalled and reinstalled v2.6 a couple of times on my cpg1.4.25 test gallery with no problems. At the moment I am stuck for a quick answer for you.

    You should see the form to enter the keys as soon as you click "i" to install. (even if you already have the keys)

    jobbie007

    • Coppermine newbie
    • Offline Offline
    • Posts: 4
    Re: reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login
    « Reply #89 on: January 23, 2010, 04:48:00 pm »

    Problem solved. It was a combination of lack of write permissions and not enabling plugins in the config file. Sorry for being a newbie and missing the obvious!

    Works like a charm now!

    Many thanks to everyone for their help!

    Martin.  :)
    Logged

    ady1503

    • Coppermine newbie
    • Offline Offline
    • Posts: 4
    Re: reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login
    « Reply #90 on: February 09, 2010, 11:10:33 pm »

    Hello I am ady1503. Here Moldavian; Romanian translation.
    Logged

    ady1503

    • Coppermine newbie
    • Offline Offline
    • Posts: 4
    Re: reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login
    « Reply #91 on: February 09, 2010, 11:12:19 pm »

    If a problem please inform me what should be changed.
    Logged

    Joe Carver

    • Dev Team member
    • Coppermine addict
    • ****
    • Country: us
    • Offline Offline
    • Gender: Male
    • Posts: 1545
    • aka 'i-imagine'
      • Home Page
    Re: reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login
    « Reply #92 on: February 09, 2010, 11:46:47 pm »

    Thank you.
    I am not sure when there will be a next release, but I will include your translation in the package.

    aj21

    • Coppermine newbie
    • Offline Offline
    • Posts: 13

    In installed the reCaptcha app, but now my page is all skewed and the login button the right hand side (which is supposed to be under the name and password field) isn't linking.

    What do I do?
    www.allhabs.net/gallery

    Thanks!
    Logged

    Joe Carver

    • Dev Team member
    • Coppermine addict
    • ****
    • Country: us
    • Offline Offline
    • Gender: Male
    • Posts: 1545
    • aka 'i-imagine'
      • Home Page

    It could be your custom theme - I had tested this only with the standard Coppermine themes.

    You could try it with the classic theme (..../login.php?theme=classic) for function. But since you might have also edited login.php I am not sure if that will work completely. Try an unedited copy of login.php to be sure.

    For appearances to fit into your custom theme you could edit plugins/recaptcha/codebase.php. (back it up first)

    The section around lines 298-299 and 319-323 is where the html output for login is created.

    Code: [Select]
    <tr><td class="tableb_compact" align ="center" colspan="3">
    <div></div>
    JAVASCRIPT - JAVASCRIPT - JAVASCRIPT
      <form method="post" action="">
      <input type="button" class="comment_button"  value="$lang_plugin_captcha_login_click" {$lang_login_php['login']}" onclick="showRecaptcha('dynamic_recaptcha_1', 'submit_button_1',   'red');"></input>
      <div id="dynamic_recaptcha_1"></div> <input name="submitted"  style="visibility: hidden"  type="submit" class="button" value="{$lang_login_php['login']}" tabindex="4" id="submit_button_1" /></input>  <div></div>       <input type="button" class="comment_button" value="$lang_plugin_captcha_hide"  onclick="destroyRecaptchaWidget();"></input>
    </form>
           </td>
           </tr></table>
    EOT;

    Edit (with caution) as you see fit. See this link. http://www.i-imagine.net/artists/login.php
    for an example of how it would look unedited. (although it was made differently)



    Joachim Müller

    • Dev Team member
    • Coppermine addict
    • ****
    • Offline Offline
    • Gender: Male
    • Posts: 47843
    • aka "GauGau"
      • gaugau.de

    http://www.allhabs.net/gallery?theme=classic looks customized to me as well. Provide a non-admin test user account if you want supporters to look into login issues.
    Logged

    Criss

    • Coppermine novice
    • *
    • Offline Offline
    • Posts: 36

    Hello,

    I have installed your plugin but when I click on the 'Click here..' button, nothing happens. Any idea why? :(

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

    phill104

    • Administrator
    • Coppermine addict
    • *****
    • Country: gb
    • Offline Offline
    • Gender: Male
    • Posts: 4885
      • Windsurf.me

    Start by upgrading CPG and Stramm to the latest release.
    Logged
    It is a mistake to think you can solve any major problems just with potatoes.

    Joe Carver

    • Dev Team member
    • Coppermine addict
    • ****
    • Country: us
    • Offline Offline
    • Gender: Male
    • Posts: 1545
    • aka 'i-imagine'
      • Home Page

    It looks like the Public key is not correct for the site or the form.

    Uninstall, then reinstall the plugin with the Public/Private keys for the domains in their respective fields. You can always log in to recaptcha to confirm the keys or get new ones if you think you might have the wrong ones.

    Criss

    • Coppermine novice
    • *
    • Offline Offline
    • Posts: 36

    I did that. Both keys are correct, registration recaptcha works fine with the classic theme  :(
    http://joejonasphotos.org/index.php?theme=classic
    Logged
    Pages: 1 2 3 4 [5] 6   Go Up
     

    Page created in 0.024 seconds with 20 queries.