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)

AlexanderT 01-16-2005 09:37 PM

Quote:

Originally Posted by Dio
Hmmm....I made the changes that you suggested but they did not correct the problem. :ermm:

Ditto. Just sometimes this "notify the admin" message appears again; other times it doesn't.

T3MEDIA 01-28-2005 11:55 PM

Guys... Please be straight up with me. Should I uninstall phpspell and go with this?

From what I see its a your on your own kind of thing.

Please... just be honest and tell me what sup.

thanks.

AlexanderT 01-29-2005 05:52 PM

I like it better. Works much better with WYSIWYG, and since learning mode is now also available.... plus I think pspell goes easier on your server than a database-based dictionary system... so go with this one!

T3MEDIA 01-29-2005 09:16 PM

IF anyone is reading this due to a search LET ME BE THE FIRST TO TELL YOU... THIS is better than the "other" spell checking hack on here. (watch the date of this post) I am sorry. I had the other and now... wow... what a differnce... WOW.

INSTALL and a half... with a bag of chips.

Mechanical Mind 02-06-2005 05:34 PM

I am having a problem that I didn't find anyone else in this thread having. I installed the hack as per the instructions, the most recent version, and I edited three templates. newthread, newreply, and editpost to add the button...

When I type in the editor on "standard" or "the enhanced editor" and click the spell check button, nothing happens? Nothing at all?

Any ideas?

T3MEDIA 02-10-2005 01:45 PM

If your in the spellchecker and change a word to a word you want and continue checking (ie phat you wanted pat but the option isnt there)
if you run the spell checker again it will "act" like all words are spelled correctly. But if they are not it will say they are.

Just wanted to let you guys know that.

T3MEDIA 02-10-2005 08:49 PM

Quote:

Originally Posted by mini2
Same problem I've realised in 3.0.6

This DID work when I installed it, but not anymore. I've checkedeverything is still where it should be/spelled correctly etc and it is.

Has anyone solved this?

Can you guys do a test please? Can you spell check this on your systems.

Quote:

useage

"useage"

usage useage and different different different double

dubble dubale dublee
Tell me which words come back as spelling mistakes. AND is the proper answer in the box.

I am starting to see this spellchecker degrade and I do not have "learn" enabled.

Mechanical Mind 02-11-2005 04:07 PM

Quote:

Originally Posted by T3MEDIA
Can you guys do a test please? Can you spell check this on your systems. I am starting to see this spellchecker degrade and I do not have "learn" enabled.

I'd be more than glad to try and report back the results. The only problem is that I can not even get it up and running. I am left with a button "spell check" that does NOTHING when clicked. I think the more we help eachother on this hack, the more it will benefit the all of us.

...hint, hint... Anybody have any advice about what problem I may be having. See previous post above.

Mark.B 02-11-2005 06:24 PM

I have this working fine, and have also altered most of the CSS quite nicely to match the site.

However, I have no idea how to alter the font that the text of the post appears in, within the editor window on the spellchecker, nor the background to this. Any ideas?

Greebo 02-15-2005 04:28 PM

I don't suppose there is any way to enable this if php doesn't have pspell included? My host doesn't have it compiled into php and won't be adding it.

trulylowcarb 02-21-2005 11:02 PM

I have pspell enabled but my host tells me I need to upload my own dictionary because they don't store those on the server. I saved a word list as en-us.dic because the php path to 'language' on my particular server is shown as en-us.

I uploaded the dictionary file to my main forum directory and made sure both it and custom.pws are CHMOD to 777.

Now, can someone please advise me as to what else I need to do at this point in order for custom.pws to find and use the proper dictionary?

Thanks in advance.

tamarian 02-21-2005 11:17 PM

Quote:

Originally Posted by trulylowcarb
I have pspell enabled but my host tells me I need to upload my own dictionary because they don't store those on the server. I saved a word list as en-us.dic because the php path to 'language' on my particular server is shown as en-us.

I uploaded the dictionary file to my main forum directory and made sure both it and custom.pws are CHMOD to 777.

Now, can someone please advise me as to what else I need to do at this point in order for custom.pws to find and use the proper dictionary?

Thanks in advance.

Your host may need to update their /etc/ dictionary config files to point to your dictionary, if they don't allow the use of the standard paths stated in the apspell conf files.

I have never done it before, so not sure what changes need to be made, but if they have any aspell gurus there, ask them to point the config files to your dictionary files.

trulylowcarb 02-21-2005 11:46 PM

I never understand ANY of the responses given by my host, I do not think English is a first language for any of them, so I don't know if they can or will help me.... DRAT IT ALL anyway! I really wanted this to work.
But, Thanks anyway....

safiel 02-27-2005 12:28 AM

Quote:

Originally Posted by DTC
OK, figured it out! We were missing the .pwli file in the pspell data directory. Cpanel had to wack it at one point...go figure...

Here's what ya need to do:

Check the pspell data directory. If you don't know where that is type:

pspell-config pkgdatadir

That should tell you where to look. In my case it was /usr/share/pspell/

You need to create a file in that directory called en-aspell.pwli (I use english) and the only thing that is in the file is the path to your dictionary. In my case the file contains one line as below:

/usr/lib/aspell/english

Bingo, it works again...

Good 'ole CPanel....

Hope that helps anyone else that has the problem...

This fix worked for me. Thanks!

Hyrel 02-28-2005 07:33 PM

This hack is everything I need. I'm a terrible speller =(

However, I'm completely lost as to how to install this. My phpinfo does not have the spell thing in it, so I need to add that but I don't know how. And then the thing with aspell has me completely confused.

If some kind and geneous soul could help me get past these obstacles I think I could wing the rest.

The forum is for my world of warcraft guild. Sadly they are stuck with a girl who knows nothing about php, sql, css. I'm just kind of winging all of this really. I can donate for the help. I just hate embarrassing myself with misspelled words in my messages.

Ship_ 03-13-2005 05:12 PM

I am suck a n00b .. but I dont see the places I am supposed to edit in the newreply .. am I tryin to do it in the wrong part .. I am using newreply.php but dont see it ..

please help me ..

thanks

Mechanical Mind 03-13-2005 07:27 PM

Quote:

Originally Posted by Ship_
I am suck a n00b .. but I dont see the places I am supposed to edit in the newreply .. am I tryin to do it in the wrong part .. I am using newreply.php but dont see it ..

please help me ..

thanks

There is a chance that your templates have already been modified, so that you cannot easily find the EXACT location for the modifications...

However, if you post your complete template, then others here who are more experienced should easily be able to pick out the right spot for you...

(We can't tell you where to put it, if we can't see it. ;) )

tamarian 03-13-2005 08:54 PM

Quote:

Originally Posted by Ship_
I am using newreply.php but dont see it

This hack does not require editing of any vBulletin php files, just templates from the admin panel.

tamarian 03-13-2005 08:58 PM

Quote:

Originally Posted by Hyrel
This hack is everything I need. I'm a terrible speller =(

However, I'm completely lost as to how to install this. My phpinfo does not have the spell thing in it, so I need to add that but I don't know how. And then the thing with aspell has me completely confused.

If some kind and geneous soul could help me get past these obstacles I think I could wing the rest.

The forum is for my world of warcraft guild. Sadly they are stuck with a girl who knows nothing about php, sql, css. I'm just kind of winging all of this really. I can donate for the help. I just hate embarrassing myself with misspelled words in my messages.

Unfortunately, to install aspell, you will need access to the root level, or have a host willing to install it, and recompile php for you. I think only dedicated servers can do that, but it depends on the hosting company. If you don't have aspell instaled, and php was not compiled with pspell, and don't have root access, then the best thing is to use the other hack, PHPSpell.

Ship_ 03-14-2005 02:46 AM

Quote:

Originally Posted by tamarian
This hack does not require editing of any vBulletin php files, just templates from the admin panel.

That makes so much sence now .. thanks ..

but I dont see a quick reply template ..

yes. . I have it working great now on my site

Ship_ 03-14-2005 02:57 AM

Sorry .. I did not read far enough .. I have it now .. Thanks again for the help

Snake 04-19-2005 10:52 AM

Will this hack work on vB 3.0.7? I just wanna make sure.

whodah 04-22-2005 07:47 PM

i'm running 3.0.7 and it does not appear to work for the WYSIWYG editor.

basic editor, standard editor (guided or advanced) both work.

i've verified that in WYSIWYG mode that the script does two things:
a) points to:
Code:

<input type="button" value="Spell Check" onClick="spellCheck( 'vbform',  'WYSIWYG_HTML', '2');">
b) that the text area in WYSIWYG is identified correctly, namely it's:
Code:

<input type="hidden" name="WYSIWYG_HTML" id="html_hidden_field" value="&lt;p&gt;&lt;/p&gt;" />
i was hoping that the js didn't match up to the input name.. but not that easy of a fix!!

dmyrick 04-25-2005 09:08 PM

Hope this is a simple error but I don't understand it (I'm new to PHP and web designing).
I'm running;
PHP 4.3.11 Win 32 and vBulletin 3.0.7 on Windows Server 2003 and Aspell-0-50-3-3.
I installed the Aspell, enabled the pspell extension and unziped the files to the forums directory for the PungoSpell.
I added the the spell check button to the Newreply template but when I click the button to do a spell check I get the following error;
Line: 911
Char: 1
Error: Object expected
Code: 0
URL:
Code:

http://www.ultra-inc.com/forums/newreply.php?do=newreply&noquote=1&p=37

whodah 04-25-2005 09:15 PM

looks more like a javascript error...

dmyrick 04-25-2005 09:37 PM

It was a javascript error, I forgot a closing quote, oops. Thanks.

Now I get
Fatal error: Call to undefined function: pspell_new() in c:\inetpub\wwwroot\forums\checkspelling.php on line 32
I think I saw this error several post back though so I'm off to search for it.

Can anyone recomend a good PHP book?

bi11i 05-04-2005 03:23 PM

Nice, very nice. My problem is this, when I run the spellchecker, everything works, but I see this at the top of the spellchecker window:
Code:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in \global.php on line 367
 
Warning: in_array() [function.in-array]: Wrong datatype for second argument in \includes\functions.php on line 2285
 
Warning: Invalid argument supplied for foreach() in \includes\functions.php on line 2290

Funny thing is that I have Warning reporting turned OFF in my php.ini, so why am I seeing this anyway? What can be done?

Thanks for the help!

I'm running this on v3.0.7 with IIS 6 and PHP v5.0.4.

I should also post that I get the same error in an additional, smaller window when trying to use the learn function.

tamarian 05-04-2005 08:51 PM

bi11i, try adding this in the beginning of checkspelling.php, before "include ('global.php');

Quote:

error_reporting(E_ERROR);

bi11i 05-04-2005 11:09 PM

Actually, I don't see that line in checkspelling.php. I do see it in pungo-spell-config.php, however it doesn't do anything (no matter which file i put it in.)

Any other ideas?

tamarian 05-04-2005 11:10 PM

Quote:

Originally Posted by bi11i
Actually, I don't see that line in checkspelling.php. I do see it in pungo-spell-config.php, however it doesn't do anything (no matter which file i put it in.)

Any other ideas?

Did you fill out the usergroup id's in config?

bi11i 05-04-2005 11:16 PM

yes, in fact the whole thing works, it's just that I get the warnings.... Strange?

tamarian 05-04-2005 11:26 PM

Quote:

Originally Posted by bi11i
yes, in fact the whole thing works, it's just that I get the warnings.... Strange?

Yes, it's strange. Have you installed any hacks to functions.php?

In any case, add this to both php files, and see if it goes:

Quote:

error_reporting(E_ERROR);

bi11i 05-04-2005 11:35 PM

actually yes, I'm running vBadvanced. Like I said, I already put it that line in both files... Any others? (how about putting it in functions.php?)

bi11i 05-07-2005 11:26 PM

my final plea for help! I've tried all of the above and still see these errors.

What can I do? My only hack is vBadvanced; nothing more....

Code:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in \global.php on line 367

Warning: in_array() [function.in-array]: Wrong datatype for second argument in \includes\functions.php on line 2285

Warning: Invalid argument supplied for foreach() in \includes\functions.php on line 2290


Marco van Herwaarden 05-08-2005 08:28 AM

Try placing the following in your pungo-spell-config.php, just before the include global.php:

PHP Code:

$phrasegroups = array();
$specialtemplates = array();
$globaltemplates = array();
$actiontemplates = array(); 

PS What PHP version are you running?

bi11i 05-08-2005 04:46 PM

That worked! Thanks!

Logician 05-16-2005 12:08 PM

Quote:

Originally Posted by LunaTech
Line 47, 48, and 49 should look like (note, I've replaced the HEX 0D character, the line break, in with a space so it displays right on this page):

Code:

// can't have newlines or carriage returns in javascript string
$mystr = str_replace(" ", "", $mystr);
$mystr = str_replace("\n", "_|_", $mystr);

Not:
Code:

// can't have newlines or carriage returns in javascript string
$mystr = str_replace("
", "", $mystr);
$mystr = str_replace("\n", "_|_", $mystr);

The problem is most editors won't read it right. I had to use UltraEdit32, in UNIX mode. To see if you're having the same problem as I did, try spell checking a single line of text with no line breaks. Just like 3 words. If that works fine but more text doesn't - that's probably the problem.

Good catch!

For me this fixed the "Error:Unterminated string constant" problem of messages with linebreaks:

edit checkspelling.php, find:

PHP Code:

$mystr stripslashes($_POST['spellstring']);
// can't have newlines or carriage returns in javascript string
$mystr str_replace(" """$mystr);
$mystr str_replace("\n""_|_"$mystr); 

replace it as:
PHP Code:

$mystr stripslashes($_POST['spellstring']);
// can't have newlines or carriage returns in javascript string
$mystr str_replace("\r"""$mystr);
$mystr str_replace("\n""_|_"$mystr); 


cteselle 05-18-2005 10:10 PM

Quote:

Originally Posted by Logician
Good catch!

For me this fixed the "Error:Unterminated string constant" problem of messages with linebreaks:

edit checkspelling.php, find:

PHP Code:

$mystr stripslashes($_POST['spellstring']);
// can't have newlines or carriage returns in javascript string
$mystr str_replace(" """$mystr);
$mystr str_replace("\n""_|_"$mystr); 

replace it as:
PHP Code:

$mystr stripslashes($_POST['spellstring']);
// can't have newlines or carriage returns in javascript string
$mystr str_replace("\r"""$mystr);
$mystr str_replace("\n""_|_"$mystr); 


adding the \r did it for me to!

ChrisRogers 05-21-2005 06:53 PM

jsfj

bsousa 05-29-2005 09:44 AM

Quote:

Originally Posted by DTC
OK, figured it out! We were missing the .pwli file in the pspell data directory. Cpanel had to wack it at one point...go figure...

Here's what ya need to do:

Check the pspell data directory. If you don't know where that is type:

pspell-config pkgdatadir

That should tell you where to look. In my case it was /usr/share/pspell/

You need to create a file in that directory called en-aspell.pwli (I use english) and the only thing that is in the file is the path to your dictionary. In my case the file contains one line as below:

/usr/lib/aspell/english

Bingo, it works again...

Good 'ole CPanel....

Hope that helps anyone else that has the problem...

Who owns this file on your box? I've tried your suggestion and am still getting the same errors. :disappointed:


All times are GMT. The time now is 09:32 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.01654 seconds
  • Memory Usage 1,860KB
  • 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
  • (7)bbcode_code_printable
  • (5)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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