Ok. I tried to myself add a captcha for shoutbox and i think that it works right
ADDON TO SHOUTBOX : CAPTCHA : SPAN SOLUTION
Open global.php
Search:
$captcha_enable_postcards = 1;
Add after:
$captcha_enable_shout = 1;
Open includes/shout.php
search
$shout_message = trim ($shout_message);
after add:
$captcha = (isset($HTTP_POST_VARS['captcha'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['captcha'])) : "";
search:
elseif (!$config['sh_active']) {
$errormsg = $lang['sh_e_inactive'];
}
after add:
elseif (!captcha_validate($captcha)) {
$errormsg = $lang['captcha_required'];
}
search:
"shoutmsg" => $message,
after add:
"captcha_shout" => (bool)$captcha_enable_shout,
"lang_captcha" => $lang['captcha'],
"lang_captcha_desc" => $lang['captcha_desc'],
Open shout_editor.php
Search:
$shout_message = (stripslashes(trim($HTTP_POST_VARS['shout_message'])));
After add:
$captcha = (isset($HTTP_POST_VARS['captcha'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['captcha'])) : "";
if ($captcha_enable_contact && !captcha_validate($captcha)) {
$shout_message .= (($shout_message != "") ? "<br />" : "").$lang['captcha_required'];
}
search:
"sh_message" => $shout['0']['message'],
after add:
"captcha_shout" => (bool)$captcha_enable_shout,
"lang_captcha" => $lang['captcha'],
"lang_captcha_desc" => $lang['captcha_desc'],
Open templates/default/shout_editor.html
search:
<a href="{delete_link}"><input type="button" value="{lang_delete}" class="button"></a>
</td>
</tr>
after add:
{if captcha_upload}
<tr>
<td class="row1" valign="top" ><b>{lang_captcha}</b></td>
<td class="row1">
<a href="javascript:new_captcha_image();"><img src="{url_captcha_image}" border="0" id="captcha_image" /></a> <br />
<input type="text" name="captcha" size="30" value="" class="commentinput" id="captcha_input" />
<br />
{lang_captcha_desc}
</td>
</tr>
{endif captcha_upload}
Open templates/default/shout_form.html[/b]
search:
<input type="submit" name="shout" value="shout it!" class="button">
</td>
</tr>
after add:
{if captcha_upload}
<tr>
<td class="row1" valign="top" ><b>{lang_captcha}</b></td>
<td class="row1">
<a href="javascript:new_captcha_image();"><img src="{url_captcha_image}" border="0" id="captcha_image" /></a> <br />
<input type="text" name="captcha" size="30" value="" class="commentinput" id="captcha_input" />
<br />
{lang_captcha_desc}
</td>
</tr>
{endif captcha_upload}
Is the first time that I modify php mods.. so is sure that there is any problem, please it would be great that someone help me