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.
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);
}