vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Spell Checker: PungoSpell for vBulletin3 Standard and WYSIWYG modes (https://vborg.vbsupport.ru/showthread.php?t=65737)

joanne862 06-17-2004 04:43 PM

Great hack!

Amazed myself by getting it installed without any major hitches.

Just one problem- it doesn't work in writing a new PM. Clicking the spell check box has no effect, nothing happens.
I've changed the USERCP_SHELL template as instructed. In the pm_newpm template, there was no $navbar to put the code in (B) under. I've tried putting it in a couple of different places, but it still doesn't work. Any ideas what I've done wrong?

thanks

Gary King 06-17-2004 04:58 PM

Everything working fine for me, great hack, but one thing though - spell checking a quick reply in Internet Explorer does not work. When clicking on that, it immediately goes to 'Spell checking complete' but it works fine in Opera and other browsers.

Ideas? Also the correct template changes were made, etc.

Kihon Kata 06-17-2004 05:00 PM

Clicks to install here Thanks PEOPLE!

Gary (the post above me) installed it for me!

Chris Blount 06-17-2004 05:45 PM

Quote:

Originally Posted by joanne862
Great hack!

Amazed myself by getting it installed without any major hitches.

Just one problem- it doesn't work in writing a new PM. Clicking the spell check box has no effect, nothing happens.
I've changed the USERCP_SHELL template as instructed. In the pm_newpm template, there was no $navbar to put the code in (B) under. I've tried putting it in a couple of different places, but it still doesn't work. Any ideas what I've done wrong?

thanks

I didn't even bother with the USERCP_SHELL. In the PM_NEWPM template, I did the following:

Find:
Code:

        return validatePost(formname, formname.title.value, 0, $vboptions[pmmaxchars]);
}
</script>

Below it add:

Code:

<script src="spellcheck.js"></script>

<form name="spell_form" id="spell_form" method="POST" target="spellWindow"
                action="checkspelling.php">
            <input type="hidden" name="spell_formname" value="">
            <input type="hidden" name="spell_fieldname" value="">
            <input type="hidden" name="spellstring" value="">
          </form>


Find:

Code:

[preview_message]" accesskey="p" name="preview" tabindex="1" onclick="this.form.dopreview = true; return true;" />
Below it add:

Code:

<CENTER>

<if condition="DOTOOLBAR!=2">
        <input type="hidden" name="toolbar" value="1" />
        <input type="button" class="button" value="Spell Check" onClick="spellCheck( 'vbform',  'message', '1');">
        <else />
        <input type="hidden" name="toolbar" value="2" />
        <input type="button" class="button" value="Spell Check" onClick="spellCheck( 'vbform',  'WYSIWYG_HTML', '2');">
        </if>

</CENTER>


joanne862 06-17-2004 05:52 PM

Thanks so much Chris, that works perfectly now :D

vprp 06-17-2004 09:09 PM

Quote:

Originally Posted by tamarian
You probably don't have pspell compiled into your PHP, and missing the aspell package.

Try PHPSpell instead.

I get the same message.

Fatal error: Call to undefined function: pspell_new() in /hsphere/local/home/vrhee/golfrewind.com/checkspelling.php on line 26

I just talked to my Web host and they installed aspell. Now how do I compile pspell in my php?

vprp 06-19-2004 09:03 AM

anyone?

tamarian 06-23-2004 01:15 AM

Quote:

Originally Posted by vprp
Now how do I compile pspell in my php?

PSPELL can be compiled into PHP by adding the "--with-pspell" option in the ./configure command used to compile PHP.

Boofo 06-23-2004 03:33 AM

It works great for me in pms but when I use it for a new reply, it opens up, finds the wrongly spelled words, says ok and when it closes, the words are not changed to the correct spelling. Any ideas? ;)

EDIT: Got it working. It seems you can't have the button in both places on the newreply. Only the top one. ;)

How do we make sure apache can write to the pws file? I have it chmodded to 777 and it still doesn't write to the file.

vprp 06-23-2004 05:42 AM

I compiled pspell and have the spell check working on my site now. Thanks! The problem is I noticed that on long posts, it will show "this is a test." If it's a relatively short message, the spell check works fine. Does anyone know what may be causing this problem?


All times are GMT. The time now is 08:04 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01261 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete