reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login - Page 5 reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login - Page 5
 

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

Main Menu

reCAPTCHA - Anti Spam - Comments, Registration, ecards, Report and Login

Started by Joe Carver, July 15, 2009, 06:43:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cimona

Quote from: Joe Carver on December 02, 2009, 10:58:03 PM

Find around line 323:
      </tr></table>
EOT;

Replace with:
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.

Joachim Müller

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.

jobbie007

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:

QuoteWhile 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.

Joachim Müller

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.

jobbie007

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.

Joachim Müller

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.

Joe Carver

@ 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

    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.

    Joe Carver

    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

    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.  :)

    ady1503

    Hello I am ady1503. Here Moldavian; Romanian translation.

    ady1503


    Joe Carver

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

    aj21

    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!

    Joe Carver

    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.

    <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

    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.

    Criss

    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

    phill104

    It is a mistake to think you can solve any major problems just with potatoes.

    Joe Carver

    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

    I did that. Both keys are correct, registration recaptcha works fine with the classic theme  :(
    http://joejonasphotos.org/index.php?theme=classic