Firefox PHP

Module: Speller Pages

Posted by Maurice Makaay 
Re: Module: Speller Pages
January 16, 2010 10:49AM
Maurice,

harryatkins is using this module with my Simple Rounded template and asked if the Speller Pages posting button could be restyled to match the template. I have updated this module to use the template system for the posting button. Here is the diff for the spellerpages.php file:
--- C:/Temp/spellerpages_update/spellerpages/spellerpages.php	Sat Jan 16 09:43:44 2010
+++ C:/Temp/spellerpages_update/spellerpages/spellerpages_new.php	Sat Jan 16 09:40:34 2010
@@ -27,12 +27,9 @@
 
 function phorum_mod_spellerpages_tpl_editor_buttons()
 { 
-    $PHORUM = $GLOBALS["PHORUM"]; ?>
-
-    <input type="submit" class="PhorumSubmit"
-           value="<?php print $PHORUM["DATA"]["LANG"]["CheckSpelling"]?>"
-           onclick="run_spellerpages(); return false" />
-    <?php
+    $PHORUM = $GLOBALS["PHORUM"]; 
+    
+    include(phorum_get_template("spellerpages::tpl_editor_buttons"));
 }
 
 ?>

I have also attached the tpl_editor_buttons.tpl file which should be placed in the spellerpages/templates/emerald folder. Hopefully this update will be acceptable for you.

Edit: file removed as it is included as of version 1.06. Thanks Maurice.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald




Edited 1 time(s). Last edit at 01/05/2011 03:38PM by Joe Curia.
Re: Module: Speller Pages
March 23, 2010 04:52PM
Don't know why I can't get it to work in Italian. What am I doing wrong?
Re: Module: Speller Pages
March 23, 2010 05:05PM
The server on which you use this must at least have the aspell program with an Italian dictionary and IIRC the Italian locale that you have configured. Not having the backend support on the system complete normally is the reason for the module not working.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Anonymous User
Re: Module: Speller Pages
May 31, 2010 11:05AM
Hi,

Just installed this mod and get a pop up with a 403 error when I try to use it. Any ideas how I can fix this? Thanks in advance for any suggestions/fixes.
Anonymous User
Re: Module: Speller Pages
June 03, 2010 11:38PM
No need to respond to this post, if anyone was going to. I've wasted over a week trying to make this work. I'm just going to move my forum to another forum software solution. If possible, kindly delete my forum membership here.
Re: Module: Speller Pages
June 04, 2010 03:35AM
FYI: 403 is a permission denied error that is generated by the webserver, not by Phorum. You should have investigated the server error logs to see why the webserver was blocking access to the requested page.

I will clean up your account.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
KKK
Re: Module: Speller Pages
January 05, 2011 01:55AM
I download and test but I got this error spellChecker is undefined at Line 87 why?
Re: Module: Speller Pages
January 05, 2011 01:09PM
That sounds like the javascript library was not loaded, since that's where the spellChecker object is defined. What version of Phorum are you installing the spell checker on? Did you try clearing the Phorum cache from the admin interface and/or force-reloading the javascript code from the browser by doing a shift+reload?

In a minute, I will release a newer version of the module with some cleaned up code. I don't think that there's anything fixed in there that might have caused your issue, but you can of course try to install that newer version (1.0.6).


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Speller Pages
January 05, 2011 01:10PM
While doing an update for the module, I did the same kind of change. I forgot about this request of yours in this thread. I did things almost the same, except for the round brackets after include (no need for those in PHP ;-) and the name of the template: editor_button.tpl, since there's only one button.

I'll release the new 1.0.6 package in a minute.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Speller Pages
January 05, 2011 03:37PM
Thanks Maurice. I have never been sure about the need/use for those brackets as I see them intermittently used. Now I know to dump them and have learned my one new thing for the day. Hope nothing else comes up in the next 9 hours :-)

I will remove my uploaded file to clean up your thread.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Sorry, only registered users may post in this forum.

Click here to login