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
This discussion has been closed.
Comments
if you want to help me debug it, that would be cool, because it works great for me.
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!
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?
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.
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
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!