Problem installing captcha Problem installing captcha
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Problem installing captcha

Started by bvu007, August 09, 2007, 04:50:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bvu007

Hi,
I've followed the instructions on how to install captcha plugin.

However I get an error when I run my gallery:

Parse error: parse error, unexpected T_DOUBLE_ARROW in /homepages/39/d170410665/htdocs/Photographie/themes/classic/theme.php on line 25

theme.php code is as follows:

<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.10
  $Source$
  $Revision: 3275 $
  $Author: gaugau $
  $Date: 2006-09-03 12:10:47 +0200 (So, 03 Sep 2006) $
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has all CORE items removed                                     //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);

'{CONFIRM}' => $lang_display_comments['confirm'],
'{COMMENT}' => $lang_display_comments['comment'],
<tr>
  <td class="tableb_compact" colspan="2">
    {CONFIRM}
  </td>
  <td class="tableb_compact" colspan="2">
    <input type="text" name="confirmCode" size="5" class="textinput"> <img src="captcha.php" align="middle">
  </td>
</tr>
<!-- END input_box_no_smilies -->
                                </td>
                                <td class="tableb_compact">
                                <input type="hidden" name="event" value="comment" />
                                <input type="hidden" name="pid" value="{PIC_ID}" />
                                <input type="submit" class="comment_button" name="submit" value="{OK}" />
                                </td></tr>

?>

Anyone knows how to troubleshoot?

Thanks
Bodo

Nibbler

Are you actually using the plugin or are you modifying code (ie. a  mod)? Either way follow the instructions more carefully, I'm sure they don't tell you to do that.

bvu007

Hi,
sorry, got it solved now.

Now that I read the instructions for captcha 1.8 it runs fine now!

Thanks Bodo