[RC] PHPBB Spell Checker 1.06p - 09/20/05

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Locked
Nathan_Anderson
Registered User
Posts: 755
Joined: Tue Mar 19, 2002 5:04 pm
Contact:

[RC] PHPBB Spell Checker 1.06p - 09/20/05

Post by Nathan_Anderson »

You can see a demo of it here: Demo

1.06p
----
- Fixed IE UTF Encoding issue on some sites (see IE_UTF_Encode variable)
- Fixed Drop S support on words that are actually misspelleded with a double s
- Fixed for newer PHP support using _REQUEST / _POST / _COOKIE variables
- Added user supplied Polish language file (Thanks Pablo)
- Fixed rare Word_Is_Case warning. (bug added in 106m)
- Fixed issue with pspell module
- Added user supplied smf module


----
1.06o
- Safari Support
- Updated Docs
- ALPHA support for Templates in PHPBB!!!!

If you want to play with the new template support, install like normally then copy the entire phpbb_alpha directory into the spelling directory, replacing any duplicate files.

---

To upgrade to v1.06m, you will need to replace virtually ALL the files including the configuration file. For most people this shouldn't matter a bit, but those who have made changes to the spelling.js for custom templates, you will have to remake your changes.

---
Quick Change Log:
- 1.06p - Misc Minor Fixes
- 1.06o - Safari finally supported!
- 1.06n - Fixed Russian Language Support, Opera 7.2 fix.
- 1.06m - Much better Language Support, Now supports word Cases
- 1.06l - Opera 7.2 support, fixed lockup bug in weird cased
- 1.06k - phpMail Support
- 1.06j - Opera Fix & [] Tag Problem
- 1.06i - locking up bug, img tag problem, and phpbb install.
- 1.06h - DB Change / pspell Support / Mozilla fix / phpnuke fix
- 1.06g - DB Abstraction / Hivemail Support / Opera 7 fix.
- 1.06f - Fixed several updated browsers support
- 1.06f - phpNuke Admin support fixed(?)
- 1.06e - Actually all the changes in .d but .d for some reason didn't have any of them.

---
I have moved this thread from here to here as
1. I have no control over the first message. (For quick updates)
2. We are way past beta -- & The code is quite stable.
---
Nathan
Last edited by Nathan_Anderson on Wed Sep 21, 2005 2:12 am, edited 23 times in total.
Hades
Registered User
Posts: 784
Joined: Thu Jan 10, 2002 3:31 pm
Location: The Underworld
Contact:

Post by Hades »

I'm currently running 1.06a and would like to point out some things. ;)

1. The spell checker picks up words like "don't" and "I'm" as bad words. More specifically it picks up the bit after the apostrophe as a bad word. Can this be fixed?

2. The current dictionary is US-English. Could we have a UK-English please.... pretty please.... with cherries, nuts and sprinkles on top :)

Thanks.
Hades
Lord of the Underworld


Like roleplaying? Try BlastRPG Forums
adamsmark
Registered User
Posts: 248
Joined: Mon Sep 09, 2002 1:04 am
Location: Los Gatos, CA
Contact:

Post by adamsmark »

Hades wrote: I'm currently running 1.06a and would like to point out some things. ;)

1. The spell checker picks up words like "don't" and "I'm" as bad words. More specifically it picks up the bit after the apostrophe as a bad word. Can this be fixed?

2. The current dictionary is US-English. Could we have a UK-English please.... pretty please.... with cherries, nuts and sprinkles on top :)

Thanks.


You could simply add words such as "don't" and "I'm" to the text file. It's merely a (large) list of words in alphabetical order. To my way of thinking, the spell checker is adequate--catches really bad errors. Also, the "learn" function allows users to remember certain words. Placese changes in their cookie (I think).
"I believe in the atomic bomb."

Blogging at http://agabus.com
Hades
Registered User
Posts: 784
Joined: Thu Jan 10, 2002 3:31 pm
Location: The Underworld
Contact:

Post by Hades »

I'll try that. thanks
Hades
Lord of the Underworld


Like roleplaying? Try BlastRPG Forums
User avatar
anor
Registered User
Posts: 48
Joined: Mon Apr 29, 2002 11:18 pm
Location: The Netherlands

Post by anor »

Oke just to be sure this latest version is for postnuke or phpnuke? because in version 1.0.6b you said phpnuke, not sure if the would work on both versions of nuke but i am just checking.
Nathan_Anderson
Registered User
Posts: 755
Joined: Tue Mar 19, 2002 5:04 pm
Contact:

Post by Nathan_Anderson »

I didn't know there was a difference; not sure why I thought they were the same. I was using the terms interchangable. :) Guess that is my silly error.

It is for PHP-NUKE w/ the 2.06 phpbb Port code.

Nathan.
Redempti@n
Registered User
Posts: 16
Joined: Tue Jan 28, 2003 8:29 pm

Post by Redempti@n »

When I try to install dictionarry i get this error;

Installing ENGLISH.DIC (English)...
Fatal error: Call to a member function on a non-object in /home/deezire/public_html/online/modules/Forums/spelling/spell_admin.php on line 210


This is what I found on line 210 of the spell_admin.php file
$result = $db->sql_query($Query);


How can I fix this?
Nathan_Anderson
Registered User
Posts: 755
Joined: Tue Mar 19, 2002 5:04 pm
Contact:

Post by Nathan_Anderson »

Redempti@n wrote: When I try to install dictionarry i get this error;

Installing ENGLISH.DIC (English)...

Code: Select all

Fatal error: Call to a member function on a non-object in /home/deezire/public_html/online/modules/Forums/spelling/spell_admin.php on line 210
How can I fix this?

1. Based on the above error file path it appears that you are using php-nuke; if so; did you enable the phpnuke support in the spell_config file?
if #1 is not correct:
2. Can you pm me the url to your spell_diags.php.

Nathan.
Redempti@n
Registered User
Posts: 16
Joined: Tue Jan 28, 2003 8:29 pm

Post by Redempti@n »

!sorry multiple post
Last edited by Redempti@n on Wed Jan 29, 2003 1:25 am, edited 1 time in total.
Redempti@n
Registered User
Posts: 16
Joined: Tue Jan 28, 2003 8:29 pm

Post by Redempti@n »

!sorry multiple post
Last edited by Redempti@n on Wed Jan 29, 2003 1:24 am, edited 1 time in total.
Redempti@n
Registered User
Posts: 16
Joined: Tue Jan 28, 2003 8:29 pm

Post by Redempti@n »

!sorry multiple post
Last edited by Redempti@n on Wed Jan 29, 2003 1:24 am, edited 1 time in total.
Redempti@n
Registered User
Posts: 16
Joined: Tue Jan 28, 2003 8:29 pm

Post by Redempti@n »

Hi,

Thanks for your prompt responce. I enabled phpnuke support, I disabled $Spell_Config["PHPBB"] because while enabled I was getting the following error when i clicked on the spelling link located at the cp;
Fatal error: Cannot redeclare nuke_sql() (previously declared in /home/deezire/public_html/online/modules/Forums/includes/functions_nuke.php:40) in /home/deezire/public_html/online/modules/Forums/includes/functions_nuke.php on line 40



This is what my config file looks like.
// Setup to use phpbb's DB Engine
// ------------------------------
$Spell_Config["PHPNUKE"] = true;
$Spell_Config["PHPBB"] = false;
if ($Spell_Config["PHPBB"]) {
include "spell_phpbb.php";
}

?>
Nathan_Anderson
Registered User
Posts: 755
Joined: Tue Mar 19, 2002 5:04 pm
Contact:

Post by Nathan_Anderson »

Fatal error: Cannot redeclare nuke_sql() (previously declared in /home/deezire/public_html/online/modules/Forums/includes/functions_nuke.php:40) in /home/deezire/public_html/online/modules/Forums/includes/functions_nuke.php on line 40


Ok, I figured out what is wrong. See below. :)

Code: Select all

  // Setup to use phpbb's DB Engine
  // ------------------------------
  $Spell_Config["PHPNUKE"] = true;
  $Spell_Config["PHPBB"] = false;
  if ($Spell_Config["PHPBB"]) {
    include "spell_phpbb.php";
  }
Well that won't work. ;-) PHPBB must be set to true also; since you are also using PHPBB.

Ok, bug fix for phpnuke support:
--------------------------------------
In spell_phpbb.php on line 17 there is a line:

Code: Select all

include ($phpbb_root_path."includes/db.".$phpEx);
it needs to be moved to:

Code: Select all

  } else {
    include ($phpbb_root_path."includes/db.".$phpEx); // <- Right here 
    define("CRITICAL_ERROR", 1);
    define('BEGIN_TRANSACTION', 1);
    define('END_TRANSACTION', 2);
It should only be loaded if NOT in the admin module. :-) If you are in the admin module it loads the entire phpbb common code base which includes the database layer. So with the code where it was; you were getting the database layer loaded twice which was causing the problem.

Nathan.
Redempti@n
Registered User
Posts: 16
Joined: Tue Jan 28, 2003 8:29 pm

Post by Redempti@n »

Hi thanks again for help. I am installing dictionary file but on the cp when i click on the install link. I get the menu but above the menu i get this error.
Warning: Missing argument 3 for session_pagestart() in /home/deezire/public_html/online/modules/Forums/includes/sessions.php on line 214


This is what is located on line 214 of the sessions.php file;
function session_pagestart($user_ip, $thispage_id, $nukeuser)


The dictionary loaded as I found it on my mysql database but when I click on spell button. a box comes up and nothing is available.

My site is http://online.deezire.net

I created a test account.

user: test
Pass: test

Please stop by if you can and let me know if you need anything from me to help trouble shoot.

Thanks!
Nathan_Anderson
Registered User
Posts: 755
Joined: Tue Mar 19, 2002 5:04 pm
Contact:

Post by Nathan_Anderson »

Ok,

Phpnuke must have changed the Session code too. Argh!!! Here is a "Hack" to get it working while I figure out what needs to be done to enable admin checking on phpnuke. :-)

[Hack Removed]

This has been fixed in 1.06d


Nathan.
Last edited by Nathan_Anderson on Wed Jan 29, 2003 6:04 am, edited 1 time in total.
Locked

Return to “[2.0.x] MODs in Development”