+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 20 of 20

Thread: New reCAPTCHA plugin

  1. #11
    hosenhans is offline Registered User
    Join Date
    Nov 2008
    Posts
    28
    Downloads
    0
    Uploads
    0

    Default

    Thank you very much for this wonderful plugin :-)

  2. #12
    lacri's Avatar
    lacri is offline Registered User
    Join Date
    Jan 2009
    Location
    Lutherstadt Wittenberg, Germany
    Posts
    179
    Downloads
    5
    Uploads
    0

    Default patch for rcguard

    Hi dennylin93,

    i have implement a little optimization to rcguard
    this delete after successful login the mysql entry of this user from rcguard table.

    see attachment
    Attached Files

  3. #13
    dennylin93 is offline Registered User
    Join Date
    Dec 2009
    Posts
    17
    Downloads
    0
    Uploads
    0

    Default

    Thanks for the feedback.

    I actually added this feature previously, but took it out later. If someone successfully hacks into an account, then the entry is deleted and he can skip the reCAPTCHA verification.

    I think I'll add this as a tunable feature with on and off in the config file. I've been really busy recently, so I'll have to find some time to do this.

  4. #14
    ontnugtering is offline Registered User
    Join Date
    May 2010
    Posts
    25
    Downloads
    0
    Uploads
    0

    Default

    I have a problem: Recaptcha does simply not appear.

    What I did: Created SQL tables, installed and activated the plugin, registered at recaptcha service, copied and configured config.inc.php with the pub and private keys... Hmmm.

    EDIT: What's wrong? With phpmyadmin (I'm on a web hoster) I can see the MYsql rcguard table has NO entries...

    EDIT2: SOLVED, I was stupid. I added the 'rcguard' entry to an outcommented plugins line (//) OMG So, the plugin WORKS NICELY. THANKS!
    Last edited by ontnugtering; 05-31-2010 at 09:25 AM. Reason: SOLVED

  5. #15
    lumen is offline Roundcube Newcomer
    Join Date
    Sep 2009
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default

    I have problem: recaptcha not work.
    Created SQL tables, installed and activated the plugin, registered at recaptcha service, copied and configured config.inc.php with the pub and private keys.
    Attached Images

  6. #16
    dennylin93 is offline Registered User
    Join Date
    Dec 2009
    Posts
    17
    Downloads
    0
    Uploads
    0

    Default

    Hmm, looks like there's a problem with the method I'm using to insert the reCAPTCHA code.

    Can you post the plugins you're using (in the order listed in the config) as well as a copy of the HTML code from your browser?
    Last edited by dennylin93; 07-06-2010 at 08:46 AM.

  7. #17
    lumen is offline Roundcube Newcomer
    Join Date
    Sep 2009
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default

    Incidentally record if I enter wrong username and password, then it is fixed in the sql database.

    my plugins
    Code:
    $rcmail_config['plugins'] = array('password','rcguard','remember_me');
    html code - login page
    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Zhigulinet Webmail :: Добро пожаловать в Zhigulinet Webmail!</title>
    <meta name="Robots" content="noindex,nofollow" />
    <link rel="index" href="./?_task=mail" />
    <link rel="shortcut icon" href="skins/default/images/favicon.ico"/>
    <link rel="stylesheet" type="text/css" href="skins/default/common.css?s=1252060944" />
    
    
    
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <script type="text/javascript" src="program/js/jquery-1.3.min.js?s=1240222531"></script>
    <script type="text/javascript" src="program/js/common.js?s=1252062319"></script>
    <script type="text/javascript" src="program/js/app.js?s=1252062318"></script>
    <script type="text/javascript">
    /* <![CDATA[ */
    
    var rcmail = new rcube_webmail();
    rcmail.set_env({task:'login',request_token:'1c15b3a005e497e883d6626fa0461b84',keep_alive:60,action:'',comm_path:'./?_task=mail'});
    rcmail.add_label('loading','Загрузка...');
    rcmail.add_label('servererror','Ошибка сервера!');
    rcmail.gui_object('message', 'message');
    rcmail.gui_object('loginform', 'form');
    /* ]]> */
    </script>
    <link rel="stylesheet" type="text/css" href="plugins/remember_me/skins/default/remember_me.css?s=1274262830" />
    </head>
    <body>
    
    <img src="skins/default/images/roundcube_logo.png" border="0" alt="Zhigulinet Webmail" style="margin:0 11px" />
    
    <div id="message"></div>
    
    <div id="login-form">
    <div class="boxtitle">Добро пожаловать в Zhigulinet Webmail!</div>
    <div class="boxcontent">
    
    <form name="form" action="./" method="post">
    <input type="hidden" name="_token" value="1c15b3a005e497e883d6626fa0461b84" />
    
    <input type="hidden" name="_action" value="login" /><input type="hidden" name="_timezone" id="rcmlogintz" value="_default_" /><input type="hidden" name="_url" id="rcmloginurl" value="" /><table summary="" border="0"><tbody><tr><td class="title"><label for="rcmloginuser">Имя пользователя</label>
    </td>
    <td><input name="_user" id="rcmloginuser" size="30" autocomplete="off" type="text" /></td>
    </tr>
    <tr><td class="title"><label for="rcmloginpwd">Пароль</label>
    </td>
    <td><input name="_pass" id="rcmloginpwd" size="30" autocomplete="off" type="password" /></td>
    </tr>
    <tr><td class="title"><label for="rcmrememberme">Запомнить меня</label></td><td><input id="rcmrememberme"  name="_rememberme" value="1" type="checkbox" /></td>
          </tr></tbody>
    </table>
    
    
    <p style="text-align:center;"><input type="submit" class="button mainaction" value="Войти" /></p>
    <p style="text-align:center;"><a href="http://mail.zhigulinet.ru/manual/">FAQ по использованию почтовой системы. Прочтите перед регистрацией!!!</a></p>
    <p style="text-align:center;"><a href="http://mail.zhigulinet.ru/reg/">Регистрация почтового ящика</a></p>
    
    </form>
    </div>
    </div>
    
    <script type="text/javascript">
    /* <![CDATA[ */
    
    $(document).ready(function(){ rcmail.init(); });
    /* ]]> */
    </script>
    </body>
    </html>
    Do you have any ideas?
    Last edited by lumen; 07-08-2010 at 11:58 AM.

  8. #18
    Makc666's Avatar
    Makc666 is offline Registered User
    Join Date
    Jun 2008
    Location
    MSK-RU
    Posts
    22
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by lumen View Post
    Do you have any ideas?
    In this code:

    HTML Code:
    <tr><td class="title"><label for="rcmrememberme">Запомнить меня</label></td><td><input id="rcmrememberme"  name="_rememberme" value="1" type="checkbox" /></td>
          </tr></tbody>
    </table>
    You have these two HTML tags at one line:
    HTML Code:
    </tr></tbody>
    In rcguard.php the code:
    PHP Code:
        $tmp str_ireplace('</tbody>',
          
    '<tr><td class="title"><div id="rcguard"><div id="recaptcha">' $script '</div></div>
    </td>
    </tr>
    </tbody>'
    $tmp); 
    searches for single HTML tag:
    HTML Code:
    </tbody>
    You have two ways:
    1. Edit plugin's files rcguard.php
    2. Edit your index.php file

    Why this happened?
    I think because you had made incorrect changes in your file:
    skins/default/templates/login.html
    Last edited by Makc666; 01-12-2012 at 02:30 PM.
    ...... ...... "А стукачков мы не любим!"

  9. #19
    Makc666's Avatar
    Makc666 is offline Registered User
    Join Date
    Jun 2008
    Location
    MSK-RU
    Posts
    22
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by lacri View Post
    to change language in capchta
    edit rcguard.js

    and replace
    PHP Code:
    var RecaptchaOptions = {
      
    theme 'white'
    }; 
    with
    PHP Code:
    var RecaptchaOptions = {
      
    theme 'white',
      
    lang 'de'
    }; 
    de for German

    see here for more options
    reCAPTCHA API Documentation
    There is another magic method to do this one.
    And it has to be included in the plugin by default.
    1. Open file:
      rcguard.php
    2. Find line:
      PHP Code:
      $this->include_script('rcguard.js'); 
    3. Replace with:
      PHP Code:
          if($_SESSION['language']){
              if(
      is_readable('localization/' $_SESSION['language'] . '.js')){
                  
      $this->include_script('localization/' $_SESSION['language'] . '.js');
              }else{
                  
      $this->include_script('rcguard.js');
              }
          }else{
              
      $this->include_script('rcguard.js');
          } 
    4. Open plugins localization folder and add *.js files for your languages.

      For example:
      • ru_RU.js
        Code:
        var RecaptchaOptions = {
          theme : 'white',
          lang : 'ru'
        };
      • de_DE.js
        Code:
        var RecaptchaOptions = {
          theme : 'white',
          lang : 'de'
        };
    Last edited by Makc666; 01-12-2012 at 02:31 PM.
    ...... ...... "А стукачков мы не любим!"

  10. #20
    mattfox27 is offline Registered User
    Join Date
    Sep 2010
    Posts
    53
    Downloads
    0
    Uploads
    0

    Default

    this plugin kills my ability to show inline html images and attachments??

    I think i got it to work i downloaded and reinstalled it from the above link and it worked the files from the repository didn't work right...weird
    Last edited by mattfox27; 09-26-2010 at 07:12 AM.

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts