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: PHPSpell for vBulletin3 WYSIWYG and Standard mode (https://vborg.vbsupport.ru/showthread.php?t=65723)

Acido 06-01-2004 05:41 PM

Is not working OK in wysiwyg :(

The spellchecker add tags like : <P style="MARGIN: 0px"> to the text :(

tamarian 06-01-2004 05:52 PM

RE: HTML tags like <br>, add them in the config file to ignore.

Note, this happens in both WYSIWYG mode, and in standard mode. It will show the tags, but it will not spell check them.

This hack does not add new features to the spell checker, it just makes it work, as designed, for vB3 in both WYSIWYG and standard mode.

msimplay 06-01-2004 06:09 PM

hmm its not what i had expected then :S
anyone got the if condition to make it only work for standard editor then coz parsing html will only confuse users

i used

HTML Code:

 
  <input type="hidden" name="toolbar" value="1" />
        <input type="button" class="button" name="spellcheck" value="SpellCheck" accesskey="c" tabindex="1" onclick="openspell('1');"/>
  <else />
  <input type="hidden" name="toolbar" value="2" />
        <input type="button" class="button" name="spellcheck" value="SpellCheck" accesskey="c" tabindex="1" onclick="window.open('http://www.spellcheck.net','spellchecker','statusbar=no,menubar=no, toolbar=no,scrollbars=yes,resizable=yes,width=647,        height=391'); return false;"/>
  </if>

instead of

HTML Code:

<input type="hidden" name="toolbar" value="1" />
        <input type="button" class="button" name="spellcheck" value="SpellCheck" accesskey="c" tabindex="1" onclick="openspell('1');"/>
 <else />
 <input type="hidden" name="toolbar" value="2" />
        <input type="button" class="button" name="spellcheck" value="SpellCheck" accesskey="c" tabindex="1" onclick="window.open('http://www.spellcheck.net','spellchecker','statusbar=no,menubar=no, toolbar=no,scrollbars=yes,resizable=yes,width=647,          height=391'); return false;"/>
 </if>

because i wanted to compensate for the lack html stripping from spellchecker
this way both parties get to use a spell checker
otherwise i was planning to remove the spell checker for wyziwyg editor users altogether

insanctus 06-01-2004 06:52 PM

Quote:

Originally Posted by msimplay
hmm its not what i had expected then :S
anyone got the if condition to make it only work for standard editor then coz parsing html will only confuse users

i used

HTML Code:


 <input type="hidden" name="toolbar" value="1" />
        <input type="button" class="button" name="spellcheck" value="SpellCheck" accesskey="c" tabindex="1" onclick="openspell('1');"/>
 <else />
 <input type="hidden" name="toolbar" value="2" />
        <input type="button" class="button" name="spellcheck" value="SpellCheck" accesskey="c" tabindex="1" onclick="window.open('http://www.spellcheck.net','spellchecker','statusbar=no,menubar=no, toolbar=no,scrollbars=yes,resizable=yes,width=647,          height=391'); return false;"/>
 </if>

instead of

HTML Code:

<if condition="DOTOOLBAR!=2">
<input type="hidden" name="toolbar" value="1" />
        <input type="button" class="button" name="spellcheck" value="SpellCheck" accesskey="c" tabindex="1" onclick="openspell('1');"/>
<else />
<input type="hidden" name="toolbar" value="2" />
        <input type="button" class="button" name="spellcheck" value="SpellCheck" accesskey="c" tabindex="1" onclick="openspell('2');"/>
</if>

because i wanted to compensate for the lack html stripping from spellchecker
this way both parties get to use a spell checker

Does anyone have this working? I have yet to try it out, but by lookin at how small the word list size is I do not see how it could be to powerful.

msimplay 06-01-2004 06:53 PM

Quote:

Originally Posted by insanctus
Does anyone have this working? I have yet to try it out, but by lookin at how small the word list size is I do not see how it could be to powerful.

i have it working at my site
check it using test as username and password

it is quite powerful in respect of having a thesaurus aswell
and you can add ur own words to it
even though that kind of negates the reason to use the spell checker
oh well we can't win em all :P

ps if u visit my site use both the standard editor and the wyziwyg both spell checkers are different :)

tamarian 06-01-2004 07:03 PM

Quote:

Originally Posted by msimplay
hmm its not what i had expected then :S
anyone got the if condition to make it only work for standard editor then coz parsing html will only confuse users

The conditional is already there :)

Just remove the "else" part:

Code:

<else />
<input type="hidden" name="toolbar" value="2" />
        <input type="button" class="button" name="spellcheck" value="SpellCheck" accesskey="c" tabindex="1" onclick="openspell('2');"/>


insanctus 06-01-2004 07:04 PM

Looks cool I guess I will try it out later on my site.

msimplay 06-01-2004 07:07 PM

Quote:

Originally Posted by tamarian
The conditional is already there :)

Just remove the "else" part:

Code:

<else />
 <input type="hidden" name="toolbar" value="2" />
        <input type="button" class="button" name="spellcheck" value="SpellCheck" accesskey="c" tabindex="1" onclick="openspell('2');"/>


thanks but i decided to change the spellchecker for wyziwyg instead of removing the option altogether

insanctus 06-01-2004 08:10 PM

Ok installed and works, thanks msimplay for the demo log in (it is what made me choose to use this)

Nice add in !

msimplay 06-01-2004 09:06 PM

Quote:

Originally Posted by insanctus
Ok installed and works, thanks msimplay for the demo log in (it is what made me choose to use this)

Nice add in !

sorry about the mix up i just changed the instructions to the right ones in mt original thread


heres the right html

HTML Code:

<input type="hidden" name="toolbar" value="1" />
        <input type="button" class="button" name="spellcheck" value="SpellCheck" accesskey="c" tabindex="1" onclick="openspell('1');"/>
 <else />
 <input type="hidden" name="toolbar" value="2" />
        <input type="button" class="button" name="spellcheck" value="SpellCheck" accesskey="c" tabindex="1" onclick="window.open('http://www.spellcheck.net','spellchecker','statusbar=no,menubar=no, toolbar=no,scrollbars=yes,resizable=yes,width=647,          height=391'); return false;"/>
 </if>       



All times are GMT. The time now is 10:38 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.01202 seconds
  • Memory Usage 1,764KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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