Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Spell checker: PHPSpell for vBulletin3 WYSIWYG and Standard mode Details »»
Spell checker: PHPSpell for vBulletin3 WYSIWYG and Standard mode
Version: 1.00, by tamarian tamarian is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 05-31-2004 Last Update: Never Installs: 78
 
No support by the author.

PHPSpell for vBulletin3 WYSIWYG and Standard mode

Intro: PHPSpell uses a MySQL based disctionary and requires no additional tools than your standard PHP/MySQL setup. One draw back to this hack is that while it works with vBulletin in WYSIWYG mode, the popup window will still display html and vBCode tags. But the advantages are numerous, such as the "learn" capability and the admin tool.

There is another hack https://vborg.vbsupport.ru/showthrea...threadid=65737 for PungoSpell that supports WYSIWYG mode disply on the spell check popup window. It has less features than PHPSpell, but it supports WYSIWYG display. Check it out, and compare which one is best for your forum.

Credit PHPSpell Was written for PHPBB, and then expanded to work for all major forum software, including vB2 and vB3. Due to vB3's WYSIWYG mode, PHPSpell only supports standard mode. This hack will allow it to work for both standard and WYSIWYG.

If you like this software, please click the PayPal button on the Author's site, so they'll add more features. Their future plans so far include:

Quote:
* PHPBB Template integration
* Other Languages (Currently supports English & Russian)
* Finish Language support so that hardcoded output is stored in language files
* Ability to delete Learned Words for the end user
* Ability for Admin to View/Edit/Delete words in installed dictionaries
* Ability for Admin to export Dictionaries
* Ability for end user to choose which Dictionary/Thesaurus Site to use
* Ability for end user to be able to change which Language to use
* Ability for end user to change # of words to find.
* Ability for Integrated Dictionary/Thesaurus
* Other Program Integration
Demo: http://www.master-technology.com/demos/spell/index.php

What this hack does This hack modifies the PHPSpell software package from PHPSpell to allow spell checking on vBulletin for both modes, WYSIWYG and standard mode.

Note: You will see tags like <br> and others in WYSIWYG and BBCode in standard mode. Edit the config file to ignore them. 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.

Instructions

1. Download the attached file, and unpack into a new directory called "spelling" below your forum directory.

2. Edit the config file "spell_config.php" and enter your forum database username and password.

3. Find a dictionary and upload it to the "spelling" directory. A copy is provided in the zip file. PHPSpell's site has a couple of dictionaries for download: http://www.master-technology.com/dem...l/download.php

4. Run "spell_admin.php" from your browser (URL/spelling/spell_admin.php) to create the dictionary datanbase table. When done, delete this file and the dictionary file.

5. You might want to modify the css files to have the look and feel of your forum and colours.

6. The rest is template edits for each template where you'd like to have the spell checker. For example:

newreply template

Find

Code:
</head>
Add above

Code:
<script language='javascript' src='spelling/spellmessage.js'></script>
Find the submit and preview buttons:

Code:
		<input type="submit" class="button" name="sbutton" value="$vbphrase[submit_reply]" accesskey="s" tabindex="1" />
		<input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="p" tabindex="1" />
Add below:
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>
And repeat the same steps for other templates like newthread etc.


Optional: Other Templates that contain edit boxes are:
USERCP_SHELL just add the first change here in above the </head section. Required for pm_newpm and modifysignature.
editpost
Calendar Templates: calendar_edit
New Posting Templates: newreply, newthread
Modify User Options Templates: modifysignature (add the the first change in USERCP_SHELL)
Private Message Templates: pm_newpm (add the the first change in USERCP_SHELL)

I may have missed a few, so let me know.

7. If it doesn't work, run the file "spell_diags.php" from your browser, it will test your setup and report any problems.

Enjoy

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 10-07-2004, 11:58 PM
welo welo is offline
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by voclain
Quote:
Originally Posted by welo
Paste the contents of your newreply template into a text file and upload it here. I'll take a look.
HERE YOU GO...I really...really...really appreciate it!!!
Sorry for the delay. Not sure why I wasn't notified of your reply (unless I just deleted it by accident).

I don't see anything wrong with your newreply template, although try removing the first DOTOOLBAR statement. You don't need it there anyway since it won't work for preview. That's basically the only thing different between your template and mine (as far as the spellchecker stuff goes anyway) and it works fine for me.
Reply With Quote
  #83  
Old 10-09-2004, 09:30 AM
mcyates mcyates is offline
 
Join Date: Jan 2003
Location: Middlesbrough, Cleveland
Posts: 798
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PROBLEM:

Code:
 
<P style="MARGIN: 0px">hello</P>
<P style="MARGIN: 0px">&nbsp;</P>
<P style="MARGIN: 0px">Ho3 are you</P>
<P style="MARGIN: 0px">&nbsp;</P>
<P style="MARGIN: 0px">I'm fine</P>
<P style="MARGIN: 0px">&nbsp;</P>
<P style="MARGIN: 0px">Just testing the spell checker as i'm having a few problems with it</P>
That'swhat appears in the spellcheck box and this is my code in te config file:

Code:
  // ------------------------------------------------
  // HTML Tags. (You need opening & closing versions)
  // ------------------------------------------------
  $Spell_Config['HTML_Tags'] = array('<P','</P','<p','</p','<a','</a','<img','</img','<b','</b','<center','</center','<i','</i','<u','</u','<list','</list','<font','</font');

  // -------------------------------------------
  // BBCode Tags
  // -------------------------------------------
  $Spell_Config['BBCODE_Tags'] = array('[p','[/p','[P','[/P','[b','[/b','[url','[/url',array('[img','[/img]'),'[i','[/i','[color','[/color','[size','[/size','[u','[/u','[list','[/list',array('[quote','[/quote]'),array('[code','
'));

[/code]

Why is this happening?
Reply With Quote
  #84  
Old 10-10-2004, 01:31 PM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I have tried numerous times to get this working, and its just not working, what am I doing wrong?

taffy
Reply With Quote
  #85  
Old 10-10-2004, 01:45 PM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Taffy:
GOOD LUCK...I've tried now to get a straight answer for almost a week...ZERO!!!

Kirk
Reply With Quote
  #86  
Old 10-17-2004, 09:03 AM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Still waiting for a reply to the above, does anyone have an idea on how to get this to work?

taffy
Reply With Quote
  #87  
Old 10-18-2004, 06:25 PM
voclain voclain is offline
 
Join Date: Aug 2002
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Taffy:

AS INFO...I never got an answer!...so...I started searching...and hooked up with http://www.spellchecker.net They made there system work for me...you do have to pay for there service...but it works GREAT!!!

Kirk
Reply With Quote
  #88  
Old 10-18-2004, 06:33 PM
welo welo is offline
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry you guys are having problems but there's really nothing to tell you. I've installed this on three boards and had no issue whatsoever, so I can only assume you installed it incorrectly. If you'd rather pay for a service that does exactly the same thing rather than figure out what you did wrong, fine. Just quit trying to blame people for not helping you when they have no way to.
Reply With Quote
  #89  
Old 10-19-2004, 07:39 AM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Welo,

Thank you for your very unhelpful reply, I asked for help to fix the situation not for you to tell me I have done something wrong, obviously I have made an error but I like to fix things myself, so I ask questions. I am not blaming people for not helping, I am just waiting for the right person to reply, obviously you are not that person so take your negativity elsewhere.

taffy
Reply With Quote
  #90  
Old 10-19-2004, 08:00 AM
welo welo is offline
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by taffy056
Welo, Thank you for your very unhelpful reply... etc.
In the first place, my reply was not necessarily targetting you. Since you went there however, exactly how much help did you expect to get when your basic problem is "It doesn't work and I don't know why"? The atmosphere around here is very DIY, so unless you give us more to go on there isn't a prayer of resolving your issue.

Sorry you're having the trouble you are, but I've already looked at volcain's code in his newreply template and that isn't the problem, and you are having exactly the same issue. Him jumping on here and basically saying this hack (that someone put together out of the goodness of their heart, costs nothing, and works for everyone else) is crap because he can't get it to work, isn't exactly helping your case.

Sorry for the misunderstanding. Good luck.
Reply With Quote
  #91  
Old 10-19-2004, 08:22 AM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes I am sorry I am having problems also, but I am new at this, so the solutions I find here and implement myself means that I learn something that I did not know before, I have given all the info I can in my previous posts (80 & 83), so unless someone asks for something more specific that maybe I am unaware of, how can I post it here?

I am not saying it does not work, I just would like to learn enough so I can get it to work myself (with help from here of course), I know I will get it to work eventually, but I would rather sooner than later.

My apologies for snapping like that on my last post.

taffy
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05812 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete