Recordad que para pedir soporte alguno, debéis facilitar los datos de soporte oportunos por favor, mirad aquí y leer las Normas generales del foro, esto nos servirá de ayuda para dar el mejor soporte..

Gracias.

La Administración de phpBB España.

spell check

Aquí­ podrás dejar tus dudas sobre MODs o MODificaciones de tu phpBB2
  Reglas del Foro
Antes de participar en los foros, leer esto por favor.
Normas generales de phpBB-Es y las de Soporte
Cerrado
Avatar de Usuario
antuan
Usuario/a
Mensajes: 96
Registrado: 15 Jul 2005, 11:56

spell check

#1

Mensaje por antuan »

me he bajado el phpSpell Spell Checker como el que tiene esta maravilla de web

http://www.phpbbhacks.com/download/3815

Pero no sí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?© bien como instalarlo, a ver si alguien puede ayudarme ya que mi ingles es bastante malo.

he subido los archivos de la siguiente manera:
de la carpeta phpBB
phpBBroot/spellmessage.js
phpBBroot/spell_phpbb.php (creo que esta equivocado y que se trata del adecuado para los foros para phpNuke)
phpBBroot/admin/admin_spellcheck.php

todos los archivos que viene en la carpeta common los he subido a una carpeta llamada spelling:
phpBBroot/spelling/todos los archivos de la carpeta common


cuando accedo a mi [acronym="Panel de control del Administrador"]ACP[/acronym] y pincho en "ortografia" sale el siguiente error:

Código: Seleccionar todo

Warning: main(spell_phpbb.php): failed to open stream: No such file or directory in /home/bavuc/domains/cine-clasico.com/public_html/phpBB/spelling/spell_config.php on line 158

Warning: main(): Failed opening 'spell_phpbb.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/bavuc/domains/cine-clasico.com/public_html/phpBB/spelling/spell_config.php on line 158
You must choose a Database Type in the Spell Configuration file.
me he dado cuenta que el spell_phpbb.php que venia en la carpeta para los archivos de los foros para phpBB creo que esta mal, creo que en realidad se trata para los foros phpNuke. Agradeceria que se adjuntara dicho archivo para los foros phpBB.

spell_phpbb.php:

Código: Seleccionar todo

sql_query($Query)) ) {

       if (defined('IN_SPELL_DIAGS') || defined('IN_SPELL_ADMIN')) {
         echo 'Error opening smilies table.';
       } else {
         message_die(CRITICAL_ERROR,'Unable to perform spell check at this time.');
         exit;
       }
    }

    $Count = $db->sql_numrows($Query_Result);
    for ($i=0;$isql_fetchrow($Query_Result);
      $Spell_Config['Symbol_Tags'][] = $Fetched_Array['code'];
    }
  }

  function PHPNuke_User_Check()
  {
    global $cookie, $nukeuser, $db;
    $user = base64_decode($user);
    $cookie = explode(':', $user);
    $sql = 'SELECT uid, pass FROM ' . USERS_TABLE . 'WHERE uname=\'$cookie[1]\'';
    $result = $db->sql_query($sql);
    if(!$result) {
      message_die(GENERAL_ERROR, 'Could not query user account', '', __LINE__, __FILE__, $sql);
    }
    $row = $db->sql_fetchrow($result);
    if ($cookie[2] == $row['pass'] && $row['pass'] != '') {
       return ($user);
    } else {
      unset($user);
      unset($cookie);
      message_die(GENERAL_MESSAGE, 'You are not authorised to administer this board');
    }
    return ('');
  }




  // --------------------------------------------
  // Checks for a Good Word in the Database
  // --------------------------------------------
  function DB_Check_Word($Word_To_Check)
  {
     global $db, $dbms, $DB_TableName;

     if ($dbms == 'mysql' || $dbms == 'mysql4') {
       $word_to_seek = addslashes($Word_To_Check);
     } else {
       $word_to_seek = str_replace('\'', '\'\'', $Word_To_Check);
     }
     $Query = 'SELECT * FROM '.$DB_TableName.' WHERE word=\''.$word_to_seek.'\'';
     $Query_Result = $db->sql_query($Query, $db->db_connect_id);
     if( !$Query_Result ) {
       message_die(CRITICAL_ERROR,'Unable to perform spell check at this time.');
     }
//     echo DB_Error_Message($Query_Result);

     $Count = $db->sql_numrows($Query_Result);
//     echo "$Count";
     if ($Count > 0) return (true);
     return (false);
  }


  // --------------------------------------------
  // Get the Suggestions from the Database
  // --------------------------------------------
  function DB_Get_Suggestions($Word_Sound, $Word_To_Check)
  {
    global $db, $DB_TableName, $dbms;
    $Suggestions = array();
    $Query = 'SELECT word FROM '. $DB_TableName.' WHERE sound=\''.$Word_Sound.'\'';
    if( !($Query_Result = $db->sql_query($Query)) ) {
       message_die(CRITICAL_ERROR,'Unable to perform spell check at this time.');
    }
    $Count = $db->sql_numrows($Query_Result);
    for ($i=0;$isql_fetchrow($Query_Result);
//      echo DB_Error_Message($Query_Result);
      if ($dbms == 'mysql' || $dbms == 'mysql4') {
        $Suggestions[$i] = stripslashes(trim(strtolower($Fetched_Array['word'])));
      } else {
        $Suggestions[$i] = str_replace('\'\'', '\'', trim(strtolower($Fetched_Array['word'])));
      }
    }
    return ($Suggestions);
  }

  // --------------------------------------------
  // Get the OFF BY ONE suggestions (if active)
  // --------------------------------------------
  function DB_Get_OBO_Suggestions($Word_To_Check)
  {
    global $db, $dbms, $DB_TableName;
    $Suggestions = array();

    $Query_Words_Length = strlen($Word_To_Check);
    $Query_Words = '"_'.substr($Word_To_Check, 1).'"';
    for ($i=1;$isql_query($Query)) ) {
       message_die(CRITICAL_ERROR,'Unable to perform spell check at this time.');
    }
    $Count = $db->sql_numrows($Query_Result);
    for ($i=0;$isql_fetchrow($Query_Result);
      if ($dbms == 'mysql' || $dbms == 'mysql4') {
        $Suggestions[$i] = stripslashes(trim(strtolower($Fetched_Array['word'])));
      } else {
        $Suggestions[$i] = str_replace('\'\'', '\'', trim(strtolower($Fetched_Array['word'])));
      }
    }
    return ($Suggestions);
  }

Avatar de Usuario
antuan
Usuario/a
Mensajes: 96
Registrado: 15 Jul 2005, 11:56

#2

Mensaje por antuan »

me he dado cuenta que este spell check no parece hacer mucho caso al espaí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?±ol
he visto otro mod llamado SpellingCow Spell Checker http://www.phpbbhacks.com/download/3276 que si parece tener soporte para el castellano, a ver si alguien lo ha manejado y es mejor?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?¿

MeNtOrX
Usuario/a
Mensajes: 54
Registrado: 07 Jul 2005, 22:23

#3

Mensaje por MeNtOrX »

Utiliza mejor el spelling cow, ya que como tu lo mencionaste, este mod tiene soporte para varios idiomas.

Saludos

Cerrado

Volver a “Soporte, preguntas sobre MODs de phpBB 2”