Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Spell Checker

2

Comments

  • the version number is in the addon page and in default.php, but if you got it 2 days ago it's the most recent.

    if you want to help me debug it, that would be cool, because it works great for me.
  • Nope, never managed to get it working ;o
  • Is there just one default.php file? I'm trying to extract it, but it's corrupt :/
  • hmm.. maybe that's the problem. i'll upload a new archive.
  • ok, try it now.
  • No dice. Everything seems to extract just fine for me, but when I type "worng" into a post and check the spelling it says there are no errors.
  • if you could help me debug it, that would be great. you'd have to install the firebug extension for firefox and watch the XMLHttpRequests as they happen.
  • I just installed Firebug. If you want to email me (I made my address visible in my profile) with a time for us to coordinate the debug I'll be glad to help.
  • edited September 2006
    Hi

    I've installed Spellchecker, working nicely. The only problem is that "friendly url" has made the images link (of spellchecker) broken.

    For example, if you browse here using IE or Opera, at the bottom of the comments form you will see that the spellchecker images couldn't be found.

    I suspect that it must have been caused by friendly url, especially these parts:
    #Comments
    RewriteRule ^discussion/([0-9]+)/([0-9]+)/(.*)$ comments.php?DiscussionID=$1&page=$2 [QSA,L]
    RewriteRule ^discussion/([0-9]+)/([0-9]+)/(.*)/$ comments.php?DiscussionID=$1&page=$2 [QSA,L]
    RewriteRule ^discussion/([0-9]+)/(.*)$ comments.php?DiscussionID=$1 [QSA,L]
    RewriteRule ^discussion/([0-9]+)/(.*)/$ comments.php?DiscussionID=$1 [QSA,L]
    RewriteRule ^discussion/([0-9]+)/([0-9]+)$ comments.php?DiscussionID=$1&page=$2 [QSA,L]
    RewriteRule ^discussion/([0-9]+)/([0-9]+)/$ comments.php?DiscussionID=$1&page=$2 [QSA,L]
    RewriteRule ^discussion/([0-9]+)$ comments.php?DiscussionID=$1 [QSA,L]
    RewriteRule ^discussion/([0-9]+)/$ comments.php?DiscussionID=$1 [QSA,L]
    RewriteRule ^discussion([/]?)$ comments.php [QSA,L]

    #Extensions
    RewriteRule ^extension/$ extension.php [QSA,L]
    RewriteRule ^extension/([0-9]+)/$ extension.php?DiscussionID=$1 [QSA,L]

    Could anyone make a correction to this problem? Thanks!
  • Try that: http://lussumo.com/community/discussion/2803/search-engine-friendly-urls-breaks-extension-manager/#Item_10
  • or maybe this: http://lussumo.com/vanilladev/discussion/143/simpler-friendly-urls/#Item_0
  • I tried the solution of mary without success. I did it quickly, and should have post the extension with which it wasn't working
  • Thanks, Dinobiff and itchy, tried both and yet they don't work.

    I'm wondering whether it's because it's hardcoded in the splellchecker plugin to refer the links in that kind of manner, and causing the broken image link.

    Any comments?
  • i can update the spellchecker. it'll just take me a day or so.
  • Hi itchy, would be glad if you could do so. Please let us know when you are done. Cheers!
  • It's nothing to do with Friendly URLs.

    The page URL:
    http://www.engineersvoice.com/discussion/8/powerpcs-altivec-vs-intels-rosseta/
    The image code:
    <img src="./extensions/SpellChecker/googiespell/spellc.gif">

    A period means "within this directory". Therefore, the browser would load the following url:
    http://www.engineersvoice.com/discussion/8/powerpcs-altivec-vs-intels-rosseta/extensions/SpellChecker/googiespell/change_lang.gif
    which, of course, won't be found.
  • which is, of course, due to friendly urls.

    without friendly urls, the page url would be:http://www.engineersvoice.com/discussion.php?DiscussionID=8

    which means the image url would be: http://www.engineersvoice.com/extensions/SpellChecker/googiespell/spellc.gif
  • Hi mary, itchy

    You are both right. I've sorted out the problem, though.

    Here's how I did it.

    If you look into googiespell.js, search for every occurence of
    'src': this.img_dir bla bla bla

    and replace them with
    ../../../extensions/SpellChecker/googiespell/

    However, this depends how friendly URL works as well. If the rewrite rule in friendly URL is written differently, this my not work. Cheers!
  • The best way would just be to use an absolute path.
  • jhjh
    edited September 2006
    any help on getting spellcheck to work? right now it just says everything is spelled ok: site
This discussion has been closed.