vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   PungoSpell Spell Checker for vB3.5 WYSIWYG and Standard mode (https://vborg.vbsupport.ru/showthread.php?t=83258)

Snake 08-09-2005 03:20 PM

Oh right, sorry my bad. Just ignore my message.

Snake 08-09-2005 07:04 PM

Uh I got a problem here. I have done the template edits for this hack but I still cannot view the spell check button. I have edited the newthread, newpost, and newpoll template bits. O.o Any idea?

tamarian 08-09-2005 07:05 PM

Quote:

Originally Posted by Snake
Uh I got a problem here. I have done the template edits for this hack but I still cannot view the spell check button. O.o Any idea?

You might not be using the style you have edited :)

Snake 08-09-2005 07:09 PM

Actually I donn't. I have just got the default vB skin installed on my forums so...

tamarian 08-09-2005 07:12 PM

Quote:

Originally Posted by Snake
Actually I donn't. I have just got the default vB skin installed on my forums so...

Well, the button is just HTML code. If it doesn't show up, you must have misplaced it.

safiel 08-09-2005 07:25 PM

Hey there.

I'm getting a javascript error in Firefox, on VB3.5RC2

Error: document.getElementById(fieldName + "_textarea") has no properties
Source File: http://www.bashanything.com/pungospell.js
Line: 27

Any advice?

tamarian 08-09-2005 07:48 PM

Quote:

Originally Posted by safiel
Hey there.

I'm getting a javascript error in Firefox, on VB3.5RC2

Error: document.getElementById(fieldName + "_textarea") has no properties
Source File: http://www.bashanything.com/pungospell.js
Line: 27

Any advice?

Ah, I forgot to update the instructions to match the code changes.

Re-do step C in the template edits, which I have just updated. Let me know how it goes.

Snake 08-09-2005 08:10 PM

Okay I can view the buttons now. I missed a few template edits. My bad. I'm having another problem though. When clicking on the 'Spell Check' button, nothing happens to me. :\

tamarian 08-09-2005 08:18 PM

Quote:

Originally Posted by Snake
Okay I can view the buttons now. I missed a few template edits. My bad. I'm having another problem though. When clicking on the 'Spell Check' button, nothing happens to me. :\

Have you updated the template edits with the new step C?

safiel 08-09-2005 10:15 PM

Quote:

Originally Posted by tamarian
Ah, I forgot to update the instructions to match the code changes.

Re-do step C in the template edits, which I have just updated. Let me know how it goes.

That was it :)

Thanks for the quick reply and the wonderful hack.

Snake 08-10-2005 09:29 AM

Quote:

Originally Posted by tamarian
Have you updated the template edits with the new step C?

Yes, I have redone step C and still ain't working. Are you sure it's working fine on Firefox? Because I'm not using IE.

safiel 08-10-2005 10:36 AM

Quote:

Originally Posted by Snake
Yes, I have redone step C and still ain't working. Are you sure it's working fine on Firefox? Because I'm not using IE.

I'm using it on VB3.5rc2 in Firefox and it works perfect.

Snake 08-10-2005 11:08 AM

Hmm strange. I think I made a mistake somewhere on step B. So tell me exactly where you have placed the code (below one).

Quote:

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

tamarian 08-10-2005 03:32 PM

Quote:

Originally Posted by Snake
Hmm strange. I think I made a mistake somewhere on step B. So tell me exactly where you have placed the code (below one).

Somewhere below </head>

safiel 08-10-2005 03:55 PM

A went above </head>. B went just below $navbar. C went right after the preview button. Some things you might want to check are: that Javascript is enabled in FireFox (options. It is by default). That the popup is not being blocked (FireFox doesnt block it for me), and that you're not getting any Javascript errors (check the Javascript console).

Snake 08-10-2005 06:07 PM

Alright cool it's all working but I get a PHP error now. It says...

Quote:

Fatal error: Call to undefined function: pspell_config_create() in /home/psi/public_html/forums/pungospell.php on line 44

tamarian 08-10-2005 06:10 PM

Quote:

Originally Posted by Snake
Alright cool it's all working but I get a PHP error now. It says...

That means your PHP is not compiled with PSPELL support. You will need to recompile PHP, or go fro vB Spell :)

Snake 08-10-2005 07:37 PM

OK, I'll just go for vB Spell I guess. :)

welo 08-12-2005 07:54 PM

Have it installed and running well on 3.5 RC2. Good job on this :up:.

However, there is an issue when using preview. Seems as though if you have already spellchecked something, preview it then run spellcheck again, the spellchecker has the idea it needs to revert everything back to the original edit. Then you lose everything you wrote after previewing soon as you spellcheck. Could this have something to do with blank value=""s in the hidden tags?

tamarian 08-12-2005 08:52 PM

Quote:

Originally Posted by welo
However, there is an issue when using preview. Seems as though if you have already spellchecked something, preview it then run spellcheck again, the spellchecker has the idea it needs to revert everything back to the original edit. Then you lose everything you wrote after previewing soon as you spellcheck. Could this have something to do with blank value=""s in the hidden tags?

I just tested this, and was unable to reproduce this. When you preview, do you leave the spell check window open? The spell-checked content is only copied to the post when the spell checking is completed at the last checked word, or if you press the button "Done".

welo 08-12-2005 09:12 PM

Quote:

Originally Posted by tamarian
I just tested this, and was unable to reproduce this. When you preview, do you leave the spell check window open?

Nope. How can you? Soon as the alert window says "Spell checking complete" and you hit "ok" it closes the popup. The weird thing is you can continue with multiple edits as long as you don't preview. Soon as you preview the whole thing chokes.

I'm using Firefox 1.0.6 on W2K btw. Haven't checked it in other browsers yet.

tamarian 08-12-2005 09:33 PM

Quote:

Originally Posted by welo
Nope. How can you? Soon as the alert window says "Spell checking complete" and you hit "ok" it closes the popup. The weird thing is you can continue with multiple edits as long as you don't preview. Soon as you preview the whole thing chokes.

I'm using Firefox 1.0.6 on W2K btw. Haven't checked it in other browsers yet.

I use Firefox 1.0.6, and it happens to be the browser I've tested with. I was able to preview, after spell checking, and the updated text appeard in the spell checker.

welo 08-13-2005 03:12 AM

Hmm. Okay then. Just in case I explained it incorrectly, here's exactly what I do to get the error:
  1. Get to an editor and write anything (preferably something with spelling errors)
  2. Spellcheck
  3. Preview
  4. Add anything else to your message
  5. Spellcheck again
Whatever I have added won't show up in the spellchecker. However, if I add some more text, preview it and then spellcheck, it seems to work.

welo 08-13-2005 05:17 AM

Quote:

Originally Posted by tamarian
(from hack description)
4. Edit each template where you'd like to have the spell checker. For example:
...
And repeat the same steps for other templates like newthread etc.

Since I notice that whenever spellchecker hacks traditionally show up around here, those are the recurring general instructions, while I installed PungoSpell this time I actually kept track of all my template edits :). Here's the list:
  • editpost - Adds the spellchecker to Advanced Mode editing (won't show up in the AJAX-generated version of the inline editor)
  • New Posting Templates > newthread - Whenever a new thread is being posted
  • New Posting Templates > newreply - When replying to an existing thread
  • Private Message Templates > USERCP_SHELL, pm_newpm - Adds spellchecking to PM system. To do this one the <script src="pungospell.js"></script> script must go in the head of USERCP_SHELL, the <form name="spell_form"> code goes in the same template under the $navbar var, then the buttons are added to the pm_newpm template.
  • Calendar Templates > calendar_edit - Adds spellchecking to calendar events. Note there are two sets of submit and reset buttons in this template. Your spellchecker button should go in the first of these (the buttons directly under all the hidden tags, not the button set at the end of the page).
I thinks that's it. Tried adding it to the contactus template for the board's contact form and for some reason it won't work there. Not entirely sure why.

Hope this helps someone :).

tamarian 08-13-2005 05:32 PM

Quote:

Originally Posted by welo
Hmm. Okay then. Just in case I explained it incorrectly, here's exactly what I do to get the error:
  1. Get to an editor and write anything (preferably something with spelling errors)
  2. Spellcheck
  3. Preview
  4. Add anything else to your message
  5. Spellcheck again
Whatever I have added won't show up in the spellchecker. However, if I add some more text, preview it and then spellcheck, it seems to work.

O.k., I was able to reproduce it with these steps :) Will takea look and see if there's a way around it.

tamarian 08-13-2005 09:48 PM

Quote:

Originally Posted by welo
Whatever I have added won't show up in the spellchecker. However, if I add some more text, preview it and then spellcheck, it seems to work.

Welo, give the new version a try. Download the zip, and just upload pungospell.js. Let me know how it goes.

welo 08-14-2005 03:05 AM

I think that did it, bud. Tried every way I could to break it :D and it works exactly fine now. Thanks for fixing it :). This is a great hack. :up:

Chadi 08-18-2005 12:34 AM

is this better than vbspell?

tamarian 08-18-2005 01:34 AM

Quote:

Originally Posted by chadi
is this better than vbspell?

I would say no. PSPELL and Aspell depend on your PHP compilation, and from past experience, some problems may occur when you upgrade PHP. So, a lot of things can go wrong. vB Spell is more stable, IMHO.

welo 08-29-2005 02:15 AM

Okay, I finally got a chance to work with skinning the spellchecker interface today and came up with a layout I think is pretty nice. Attached is an altered version of pungospell.php containing the template. Feel free to use it if you want (it's named welo-pungospell.php so naturally you have to rename it).

One thing I'm having trouble figuring out though, is how to get the iframe to use my fonts and background colors (IE6 is being especially stubborn about this). Might have to just rename it to a php file and import the css that way.

tamarian 08-29-2005 02:23 AM

Quote:

Originally Posted by welo
One thing I'm having trouble figuring out though, is how to get the iframe to use my fonts and background colors (IE6 is being especially stubborn about this). Might have to just rename it to a php file and import the css that way.

Yes, renaming to PHP, then you can import your vB CSS and use it. vB Spell does that, you can check it out there.

tamarian 10-03-2005 11:41 AM

Quote:

Originally Posted by mini2
Does this all work well with 3.5 gold?

Yes, it should work fine.

tamarian 10-03-2005 12:35 PM

Quote:

Originally Posted by mini2
Superb, thanks.

Any reason (functions wise) this seems less popular and vB spell? I personally like the idea/method of this better?!

The problem with PungoSpell is that it requires recompiling PHP with PSPELL support. Many have no access to setup their servers (shared host), so vB Spell is easier to install.

akanevsky 10-22-2005 09:48 PM

Why doesn't this use the vBulletin product installer? Make this a product :)

tamarian 10-22-2005 09:56 PM

Quote:

Originally Posted by Dark Visor
Why doesn't this use the vBulletin product installer? Make this a product :)

Because it predated products :)

akanevsky 10-22-2005 10:06 PM

I know :) But it's 5 minute to import it into a product ;) Come on man, do it.

Xplorer4x4 11-01-2005 02:12 PM

So I have read the entire thread and have just one question...does this perform a spell check automaticly when you click reply or preview or is it a manual button like IESpell?

tamarian 11-01-2005 02:32 PM

Quote:

Originally Posted by Xplorer4x4
So I have read the entire thread and have just one question...does this perform a spell check automaticly when you click reply or preview or is it a manual button like IESpell?

This is a server side spell checker, not a client side checker like IESpell. It will only launche if you click the spell button.

Xplorer4x4 11-01-2005 02:35 PM

Then I suppose your vBspell hack is not automatic either? Is there an automatic version?

tamarian 11-01-2005 02:39 PM

Quote:

Originally Posted by Xplorer4x4
Then I suppose your vBspell hack is not automatic either? Is there an automatic version?

Not that I know of.


All times are GMT. The time now is 08:21 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.02407 seconds
  • Memory Usage 1,838KB
  • 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
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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