PDA

View Full Version : HOWTO: Adding a SpellChecker to WHMCS



DedicatedPros
07-16-09, 08:40 PM
I figured many people could use this feature as the spell checker that comes with Firefox won't spell check text within the TinyMCE editor (this is the editor used for writing emails and the knowledgebase). Let's start :)


You can download the TinyMCE Spellchecker plugin here (http://surfnet.dl.sourceforge.net/sourceforge/tinymce/tinymce_spellchecker_php_2_0_2.zip)

Extract that archive and you should get a folder called 'spellchecker', upload it to /whmcs_path/templates/admin_path/editor/plugins/.

Now we're going to have to edit the config file for TinyMCE in order to get the new plugin recognized, this file is located in /whmcs_path/templates/admin_path/editor/editor.php, download that and run it in a text editor of your choice (if you don't have anything custom installed such as Notepad++ just use Notepad). You're going to see a line that looks like this:


plugins : "style,table,advhr,advimage,advlink,iespell,inlinep opups,insertdatetime,media,searchreplace,contextme nu,paste,directionality,fullscreen,visualchars,xht mlxtras",


Copy and paste this over that whole line:


plugins : "style,table,advhr,advimage,advlink,iespell,inlinep opups,insertdatetime,media,searchreplace,contextme nu,paste,directionality,fullscreen,visualchars,xht mlxtras,spellchecker",


Now we just have to edit one more line which will actually load the spellchecker button into the menu. You have to decide where you want it, but I just added mine to the 3rd line at the very end. To do this, edit this line:


theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,su p,|,charmap,emotions,iespell,media,advhr,|,ltr,rtl ,|,fullscreen",


And copy and paste this over it:


theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,su p,|,charmap,emotions,iespell,media,advhr,|,ltr,rtl ,|,fullscreen|,spellchecker",


Now upload the editor.php file in its originating directory and you're all set :-P This plugin by default uses Google's spell checker and supports a few languages but if you feel up to it you can edit the spell checking engine by messing around with the /spellchecker/config.php file.

Btw Matt, you think you could add this by default to newer versions of WHMCS, I'm using Firefox v3.5 with their spellchecker but because TinyMCE is java based it won't load the spell checker. Either way please look at it :)

rodeoXtreme
07-21-09, 06:45 PM
Great fix! It works perfectly

Thank you!

hightekhosting
07-21-09, 06:54 PM
Excellent.

Thanks for the info/howto :)

thehost5968
07-22-09, 12:11 AM
Thanks

You are the best.

Business Hosting Online
07-22-09, 09:47 AM
Very nice post.

Impact-John
07-22-09, 05:09 PM
the link doesnt seem to take me to a download anywhere
it is all sourceforge and i keep getting unable to load mirrors
does anyone have a copy they can post here with

thanks in advance

DedicatedPros
07-25-09, 08:53 AM
There you go m8 :)

http://www.megaupload.com/?d=22NIUE72

Impact-John
07-29-09, 03:59 AM
thank you so much for the download

DedicatedPros
07-29-09, 09:09 AM
No probs :)

antoniojeldres
12-29-09, 08:41 PM
Thank you. :)

My365Host
01-02-10, 12:02 AM
thanks ! i am using this, going to try it out right now!

rldev
02-09-10, 02:06 AM
Will this get overwritten with a upgrade?

John
02-09-10, 03:10 PM
If you upload the default editor.php file when you upgrade, yes it will be overwritten. Simply don't upload that file to maintain the change.

oanahost
05-16-12, 04:07 PM
This works in version 5 like a charm.

rabia123
05-28-12, 09:04 AM
Thanks for download. .Its work perfectly. .

hostleet
05-29-12, 12:53 AM
Thanks!

Works great. :D

SnipHosting
06-05-12, 12:11 PM
This will come in very handy, thank you so much for sharing this :)

ATHEiST
06-18-12, 01:08 AM
3 years later and this still hasnt been integrated into WHMCS? :shock:

disgruntled
06-27-12, 04:32 PM
3 years later and this still hasnt been integrated into WHMCS? :shock:

I dont think it was ever requested specifically as a feature, but yes, it should have been integrated long before now. having said that, i am sure i read somewhere that tinymce is end of line.

Dont quote me on that it could have been something else, but i am fairly certain..


Edit:

I just looked on the website and found they have a release on the 21st june so i suppose not.

bizworldusa
08-16-12, 11:49 AM
thanks for sharing this useful information ! i am using this, going to try it out right now!

Thank you
Bizworldusa