Module: Speller Pages
Posted by Maurice Makaay
All files from this thread
File Name | File Size | Posted by | Date | ||
---|---|---|---|---|---|
spellerpages-1.0.6.tar.gz | 34.1 KB | open | download | Maurice Makaay | 01/05/2011 | Read message |
spellerpages-1.0.6.zip | 49.9 KB | open | download | Maurice Makaay | 01/05/2011 | Read message |
August 05, 2007 06:30AM |
Admin Registered: 17 years ago Posts: 8,532 |
Spellchecking based on aspell and Speller Pages. This module will add a "Check spelling" button to the editor, which users can use to have their message spell checked.
More information on Speller Pages
This module requires Phorum 5.1.5-beta or later to work correctly.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Edited 2 time(s). Last edit at 01/05/2011 01:14PM by Maurice Makaay.
More information on Speller Pages
This module requires Phorum 5.1.5-beta or later to work correctly.
Changelog: ---------- 2011-01-05 v1.0.6 - Made the availability of the subject line for checking the spelling optional. This way, template authors can choose to leave out the subject in their template. (This is something that I use myself to only allow editing the thread starter subject and to make the rest of the messages automatically use "Re: <original subject>".) - Improved the module template loading code and prepared it for the compatible language support that will be available for Phorum 5.3. - The HTML code for the "Check spelling" button is now generated from a template file. 2009-01-27 v1.0.5 - Made the module use the javascript hook in 5.2 and using templates for that cause 2007-01-10 v1.0.4 - Made the module compatible with both Phorum 5.1 and 5.2 (the current development tree). - Made the module work correctly inside an embedded or portable environment. 2006-05-18 v1.0.3 - Minor fix for PHP installations where short tags (<? .. ?> instead of <?php .. ?>) are not allowed. The language files uses the¶ short tags format (credits to Thomas for finding this). 2006-01-18 v1.0.2 - Made a crude localization system. Speller Pages does not support localization and it's pure html/javascript on the client side. So I can't use code to implement languages. Therefore, localization is done by copying and translating the Speller Pages distribution. See README for more information. - Included a Dutch translation of the spellchecker. 2006-01-17 v1.0.1 - Upgraded spellerpages to version 0.5.1 2006-01-11 v1.0.0 - Initial release
Maurice Makaay
Phorum Development Team



Edited 2 time(s). Last edit at 01/05/2011 01:14PM by Maurice Makaay.
January 26, 2009 04:30PM |
Registered: 14 years ago Posts: 98 |
Folks,
I'm getting some complaints about "site slowness" from one of my forum admins, and after running some Firefox/Firebug tests on the forum section of my site:
http://tightlineskayaking.com/forum/
And I'm noticing this file:
spellChecker.js.php
getting downloaded with each page, and taking anywhere from 250 to 800 ms each time.
I think this comes with the spell-checker module (Speller Pages (version 1.0.4).
I have several questions, but no answers yet:
1) Why does this file not cache in the browser? Can someone using this module verify if it should be caching?
2) Why does this file get included on every page, and not just pages where it might be used (like posting/editing)?
At this point, I'm just looking for feedback from anyone who might have some experience with this.
Thanks!
Sean P
------------------------
Sean Phelan
Sites By Sequoia - Web Marketing ... The Experts at Building Your Success Online
I'm getting some complaints about "site slowness" from one of my forum admins, and after running some Firefox/Firebug tests on the forum section of my site:
http://tightlineskayaking.com/forum/
And I'm noticing this file:
spellChecker.js.php
getting downloaded with each page, and taking anywhere from 250 to 800 ms each time.
I think this comes with the spell-checker module (Speller Pages (version 1.0.4).
I have several questions, but no answers yet:
1) Why does this file not cache in the browser? Can someone using this module verify if it should be caching?
2) Why does this file get included on every page, and not just pages where it might be used (like posting/editing)?
At this point, I'm just looking for feedback from anyone who might have some experience with this.
Thanks!
Sean P
------------------------
Sean Phelan

January 26, 2009 06:36PM |
Admin Registered: 17 years ago Posts: 8,532 |
Have you tried using the latest version of the Speller Pages module? It incorporates the javascript code in the main javascript code for Phorum, so it is no longer a separate download.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



January 26, 2009 06:53PM |
Registered: 14 years ago Posts: 98 |
Maurice,
I have v1.0.4 running, and it looks like that is already the newest version.
I also notice that running firebug against :
www.phorum.org/phorum5
Doesn't seem to show that spellChecker.js.php being used.
That doesn't give me any answers, but there's obviously something different about my site than the one running at Phorum.
Any suggestions for what else I should look at?
------------------------
Sean Phelan
Sites By Sequoia - Web Marketing ... The Experts at Building Your Success Online
I have v1.0.4 running, and it looks like that is already the newest version.
I also notice that running firebug against :
www.phorum.org/phorum5
Doesn't seem to show that spellChecker.js.php being used.
That doesn't give me any answers, but there's obviously something different about my site than the one running at Phorum.
Any suggestions for what else I should look at?
------------------------
Sean Phelan

January 26, 2009 07:27PM |
Admin Registered: 17 years ago Posts: 8,532 |
Please try if version 1.0.5 changes things for you.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



January 27, 2009 11:15PM |
Registered: 14 years ago Posts: 98 |
Maurice,
Thanks for the 1.0.5 update - integrating that javascript certainly speeds things up a bit.
Phorum rocks!
------------------------
Sean Phelan
Sites By Sequoia - Web Marketing ... The Experts at Building Your Success Online
Thanks for the 1.0.5 update - integrating that javascript certainly speeds things up a bit.
Phorum rocks!
------------------------
Sean Phelan

Re: Module: Speller Pages October 27, 2009 10:10PM |
Registered: 12 years ago Posts: 16 |
October 28, 2009 06:46AM |
Admin Registered: 17 years ago Posts: 8,532 |
Sounds like the directory /tmp is not writable for the webserver. Possibly, that directory is closed down by your hosting provider.
The location of the /tmp directory is hard-coded in the speller library. You could try:
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
The location of the /tmp directory is hard-coded in the speller library. You could try:
- chmod 777 on your cache directory that is inside the Phorum dir, so the webserver can write in it.
- hack the file mods/spellerpages/spellerpages/speller/server-scripts/spellchecker.php by changing $tempfiledir = "/tmp"; at the start of it to $tempfiledir = "./cache"; (mind the dot in front of /cache).
Maurice Makaay
Phorum Development Team



Re: Module: Speller Pages October 28, 2009 08:05AM |
Registered: 12 years ago Posts: 16 |
Maurice,
Thanks for the reply. I had problems setting up the caching and ultimately had to disable it when I installed Phorum earlier this week. Both the /tmp and the ./chache directories were tried, but neither would pass the sanity check. I'm confident that both are set to 777. I'm on a unmannaged dedicated server that I have full control over, so if there's anything else you think I can do.
Now that I've re-read your reply, is this a tmp folder in the root area of the server and not within the directory I installed Phorum? LOL! I hope it'll be as easy as setting the permissions on a different folder.
Please let me know, and I'll see what I can do to fix this from work this morning.
Thanks again.
Thanks for the reply. I had problems setting up the caching and ultimately had to disable it when I installed Phorum earlier this week. Both the /tmp and the ./chache directories were tried, but neither would pass the sanity check. I'm confident that both are set to 777. I'm on a unmannaged dedicated server that I have full control over, so if there's anything else you think I can do.
Now that I've re-read your reply, is this a tmp folder in the root area of the server and not within the directory I installed Phorum? LOL! I hope it'll be as easy as setting the permissions on a different folder.
Please let me know, and I'll see what I can do to fix this from work this morning.
Thanks again.
October 28, 2009 08:09AM |
Admin Registered: 17 years ago Posts: 8,532 |
/tmp is the root level temporary folder yes. The ./cache directory should really work. If not, then something strange is going on. Maybe some overly protective setting in the php.ini (like safe_mode) is giving you problems here. Hard to tell from symptoms alone.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Sorry, only registered users may post in this forum.