Author Topic: como puedo poner una Casilla de verificacion (captcha) en shoutbox??  (Read 4736 times)

0 Members and 1 Guest are viewing this topic.

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
es q el shoutbox aunq no permita postear a los usuarios no registrados tengo un monton de spam T_T
y necesitaria este shoubox porque puedo poner varios estilos... y hay enlaces a los perfiles..

alguien me podria ayudar??

http://www.4homepages.de/forum/index.php?topic=8987.msg80124#msg80124 este mod lo intefra al formulario de contacto pero nose como ponerlo para el shhoutbox T_T

gracias de antemano
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: como puedo poner una Casilla de verificacion (captcha) en shoutbox??
« Reply #1 on: March 24, 2007, 10:34:02 PM »
ok.. mirando ese post he conseguido hacerlo pero mi problema ahora es q me agranda muchisimo la columna del diseño :
VER AQUI ---> http://www.myart.es/cat22.htm ¿hay alguna forma de que la imagen sea mas pequeña o salga en un iframe?? alguien podria ayudarme por favor?

pongo las modificaciones que he hecho ^^
Abrir global.php
Buscar:
Code: [Select]
$captcha_enable_postcards    = 1;
Añadir Debajo:
Code: [Select]
$captcha_enable_shout      = 1;
Abrir includes/shout.php
buscar
Code: [Select]
  $shout_message = trim ($shout_message);
añadir debajo:
Code: [Select]
  $captcha = (isset($HTTP_POST_VARS['captcha'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['captcha'])) : "";
buscar:

Code: [Select]
  elseif (!$config['sh_active']) {
    $errormsg = $lang['sh_e_inactive'];
  }

añadir debajo:
Code: [Select]
  elseif (!captcha_validate($captcha)) {
      $errormsg = $lang['captcha_required'];
  }

Buscar:
Code: [Select]
  "shoutmsg" => $message,
Añadir Debajo:
Code: [Select]
  "captcha_shout" => (bool)$captcha_enable_shout,
  "lang_captcha" => $lang['captcha'],
  "lang_captcha_desc" => $lang['captcha_desc'],

Abrir shout_editor.php
Buscar:
Code: [Select]
  $shout_message = (stripslashes(trim($HTTP_POST_VARS['shout_message'])));

Añadir Debajo:
Code: [Select]
  $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'];
    }

Buscar:
Code: [Select]
  "sh_message" => $shout['0']['message'],
Añadir Debajo:
Code: [Select]
  "captcha_shout" => (bool)$captcha_enable_shout,
      "lang_captcha" => $lang['captcha'],
      "lang_captcha_desc" => $lang['captcha_desc'],


Abrir templates/default/shout_editor.html

Buscar:
Code: [Select]
  <a href="{delete_link}"><input type="button" value="{lang_delete}" class="button"></a>
        </td>
      </tr>

Añadir Debajo:
Code: [Select]
{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}

Abrir templates/default/shout_form.html[/b]
Buscar:
Code: [Select]
        <input type="submit" name="shout" value="shout it!" class="button">
        </td>
      </tr>
Añadir Debajo:
Code: [Select]
{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}

Es la primera vez que me atrevo a modificar php asique seguro que me falta alguna cosa , incluso es posible que algo no vaya bien. espero que alguien me pueda ayudarme a mejorar..
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline riomolin

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
Re: como puedo poner una Casilla de verificacion (captcha) en shoutbox??
« Reply #2 on: March 24, 2007, 11:46:53 PM »
aqui tienes algo del proceso inverso, por si te ayuda en algo:
http://www.4homepages.de/forum/index.php?topic=16752.0
Siempre aprendiendo

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: como puedo poner una Casilla de verificacion (captcha) en shoutbox??
« Reply #3 on: March 25, 2007, 12:40:19 PM »
si gracias, mas arriba estan los pasos q hice y parece que va bien

aunque ahora mi problema es que me desconfigura el diseño.. estaría bien meter el captcha en un iframe o algo asi.. alguien sabria como hacerlo?
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more