View Full Version : vB Spell :: Spell Checker in WYSIWYG and Standard Modes
tamarian
07-07-2005, 10:00 PM
There's also a vB 3.5 version: https://vborg.vbsupport.ru/showthread.php?s=&threadid=92202
What this does: vB Spell allows you to install a dictionary (English dictionary included) into your MysQL database, and provide a spell checking window that works in both of vB's editor modes, standard and WYSIWYG.
Background: Many of you liked PungoSpell, but didn't like recompiling PHP for it. Many liked PHPSpell, but didn't like the lack of WYSIWYG support and browser compatibility. vB Spell solved both problems, I hope, by combining the best of each.
Features:
o Supports most recent versions of browsers. Tested on IE, Firefox, Mozilla/Netsacpe, Opera and Konqueror (Konqueror implies Safari, but please confirm Mac folks)
o Learn Feature uses cookies, so it won't increase the database size
o Admin panel options
o Skips quoted text and other tags (PHP, code, etc.)
o Usergroup permisisons
o Template based interface, and uses your default style.
o Link buttons (Thesarus and Lookup) with links to Merriam Webster's online thesarus and dictionary links with the suggestion for misspelled words.
Installation:
1. Download vbspell.zip and upload the files and run vbspell_install.php
2. Go to AdminCP > vBulletin Options > vB Spell and edit your usergroup permisisons.
3. For each template where you would like to add a vB Spell, do the following edits (Example: editpost, newreply, newthread, etc.)
Note: For those running PHP in cgi mode and get timeouts while installing the dictionary, you can download the file dictionary_sql_for_php_cgi.zip to import it to mysql through the mysql command line.
A. Find:
</head>
Add before:
<script src="vbspell.js"></script>
B. Find: (or anywhere in the body)
$navbar
Add after:
<form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="vbspell.php">
<input type="hidden" name="spell_formname" value="">
<input type="hidden" name="spell_fieldname" value="">
<input type="hidden" name="spellstring" value="">
<input type="hidden" name="toolbar" value="">
</form>
C. Find the submit and preview buttons:
<input type="submit" class="button" name="sbutton" value="$vbphrase[save_changes]" accesskey="s" tabindex="1" />
<input type="submit" class="button" name="preview" value="$vbphrase[preview_changes]" accesskey="p" tabindex="1" />
Add below:
<if condition="$show['wysiwyg']">
<input type="button" class="button" value="Spell Check" onClick="spellCheck('vbform', 'WYSIWYG_HTML', '2');">
<else />
<input type="button" class="button" value="Spell Check" onClick="spellCheck('vbform', 'message', '1');">
</if>
Other templates:
Optional: Other Templates that contain edit boxes are:
USERCP_SHELL just add the first change (A) 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: add the the first change (A) in USERCP_SHELL) and the rest (B and C) in modifysignature
Quick reply: . Put change (A) in showthread, above </head>. Then add change B to the beginning of showthread_quickreply. Then find
<input type="submit" class="button" value="$vbphrase[go_advanced]" accesskey="x" title="(Alt + X)" name="preview" tabindex="3" id="qr_preview" onclick="this.form.clickedelm.value = this.value" />
Add after it:
<if condition="$WYSIWYG == 2">
<input type="button" class="button" value="Spell Check" onClick="spellCheck('vbform', 'WYSIWYG_HTML', '2');">
<else />
<input type="button" class="button" value="Spell Check" onClick="spellCheck('vbform', 'message', '1');">
</if>
History:
December 25, 2005: Security fix for cases where you allow HTML posts and they contain malicious code (Credit goes to Brendan Donahue for finding the issue and alerting TechGuy, and to TechGuy for alerting me to it)
November 2nd. 2005: Fixed a bug with slashes in text.
Oct 17, 2005: v0.9.5 Cecks for primnary and secondary group permission. Also fixed quoted words.
July 10, 2005: v0.9.4 Added an error if accessing vB Spell directly, like from who's online page.
July 10, 2005: v0.9.3 Fixed a problem with capitalized first letter of words, so chosing a suggested alternative would not alter capitalization.
July 10, 2005: v0.9.2 Fixed a browser bug, fixed an installer issue effecting some, and fixed handling of some special characters.
July 9, 2005: v0.9.1 Learned words in cookies are no longer case sensitive. Abbreviations are ignored and not spell checked.
July 8, 2005. initial release, v0.9
Please click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=91850) if you have installed this mod.
Boofo
07-09-2005, 01:32 AM
Is this better to use than Pungo-spell?
tamarian
07-09-2005, 01:36 AM
Is this better to use than Pungo-spell?
I think so. No need to recompile PHP and install aspell, or rely on the server's config and system call, etc..
Corriewf
07-09-2005, 03:17 AM
WOW! This is the best system for spell check I have ever seen. Thank you very much! :)
Is there anyway you could put the above posted template edits in a text file so I can store it in case?
tamarian
07-09-2005, 03:21 AM
WOW! This is the best system for spell check I have ever seen. Thank you very much! :)
Is there anyway you could put the above posted template edits in a text file so I can store it in case?
Sure thing :)
diettalk
07-09-2005, 03:30 AM
Looks great tamarian.
cutetxblonde
07-09-2005, 07:31 AM
During step 4 I get this:
-------------------------------------------------------------
Database error in vBulletin 3.0.7:
Invalid SQL: CREATE TABLE vbspell (
word varchar(30) NOT NULL,
sound varchar(10) NOT NULL,
UNIQUE KEY word (word),
KEY sound (sound)
) ENGINE=MyISAM
mysql error: You have an error in your SQL syntax near 'ENGINE=MyISAM' at line 6
mysql error number: 1064
Date: Saturday 09th of July 2005 01:29:23 AM
Script: (my site)/community/admincp/vbspell_install.php?do=install&step=4
--------------------------------------
Where did I mess it up? This is such a simple hack..lol
diettalk
07-09-2005, 10:56 AM
My users are getting the good old "you do not have permission to view...." error... I can see it fine and I used my "secret account" and sure enough, "you do not... ".
Mr. Brian
07-09-2005, 10:58 AM
Looks cool, will install this and let u know later. :)
-Brian
tamarian
07-09-2005, 11:24 AM
During step 4 I get this:
-------------------------------------------------------------
Database error in vBulletin 3.0.7:
Invalid SQL: CREATE TABLE vbspell (
word varchar(30) NOT NULL,
sound varchar(10) NOT NULL,
UNIQUE KEY word (word),
KEY sound (sound)
) ENGINE=MyISAM
mysql error: You have an error in your SQL syntax near 'ENGINE=MyISAM' at line
Replace ENGINE=MyISAM with TYPE=MyISAM, or re-upload vbspell_install.php from the zip file. I think ENGINE keyword is for newer MySQL versions.
tamarian
07-09-2005, 11:25 AM
My users are getting the good old "you do not have permission to view...." error... I can see it fine and I used my "secret account" and sure enough, "you do not... ".
Check the vB Options > vB Spell in the AdminCP. You can click yes to allow all but guests to use it, or explicitly list usergroup ids allowed to use it.
Mr. Brian
07-09-2005, 11:41 AM
Do u mind provide me the Queries? I think I need to run it manually.
Thanks.
Mr. Brian
07-09-2005, 11:48 AM
I'm stuck at step 5, unable to load the Dictionary.
diettalk
07-09-2005, 11:54 AM
didn't see that. Working great now. thanks.
Check the vB Options > vB Spell in the AdminCP. You can click yes to allow all but guests to use it, or explicitly list usergroup ids allowed to use it.
Mr. Brian
07-09-2005, 12:04 PM
When I click on Spell check it show this:
vB Spell installation problem, please notify the webmaster
Any clue?
tamarian
07-09-2005, 12:08 PM
When I click on Spell check it show this:
Any clue?
I think it's related to the failed step4 you had. I recommend running uninstall, then re-install from the beginning.
tamarian
07-09-2005, 12:09 PM
didn't see that. Working great now.
Good to hear :)
Gudrune
07-09-2005, 12:15 PM
I like this spell checker. Couple things. The installer didn't put prefix for vbspell table. I had to ad vb_vbspell via phpmyadmin. After that the install worked fine.
Is it normal for no misspelled word to open and close right away? Only way the pop-up window stays open is if there is a misspelled word. This happens with both firefox and IE.
Last how would I add a Spell Check on the quick reply? I figured it out for all but that.
Thanks for the nice mod.
Mr. Brian
07-09-2005, 12:19 PM
I think it's related to the failed step4 you had. I recommend running uninstall, then re-install from the beginning.
I believe something to do with step 5, I just unable to load step 5. Keep getting "The page cannot be displayed" text.
tamarian
07-09-2005, 12:31 PM
I like this spell checker. Couple things. The installer didn't put prefix for vbspell table. I had to ad vb_vbspell via phpmyadmin. After that the install worked fine.
Ah, I always forgot about those with table prefix :) Fixed and uploaded in the zip file.
Is it normal for no misspelled word to open and close right away? Only way the pop-up window stays open is if there is a misspelled word. This happens with both firefox and IE.
Yes, that's how PungoSpell (vB Spell's ancestor) worked. It basically finds nothing to spell check or suggest, so it closes.
Last how would I add a Spell Check on the quick reply? I figured it out for all but that.
Not sure, as I haven't installed it in QR. Check the PungoSpell thread, I think someone posted about it.
tamarian
07-09-2005, 12:32 PM
I believe something to do with step 5, I just unable to load step 5. Keep getting "The page cannot be displayed" text.
Have you re-uploaded the installer from the new zip file, and started from scratch after a re-install?
Do you have safemode on?
Mr. Brian
07-09-2005, 12:47 PM
Hi tamarian,
Do u mind lent me a helping hand? I've no ideal whats wrong with my installing process. Maybe becoz I'm using dailup or?
tamarian
07-09-2005, 12:51 PM
Hi tamarian,
Do u mind lent me a helping hand? I've no ideal whats wrong with my installing process. Maybe becoz I'm using dailup or?
No problem, let's do it by PM, as I need to see your PHP info and a smuch details as possible :)
Mr. Brian
07-09-2005, 03:31 PM
So how?
Code Monkey
07-09-2005, 04:53 PM
Most excellent Job.
For quick reply just add the stuff up top to the SHOWTHREAD template. And then add the button code to the showthread_quickreply template.
Aeolian_X
07-09-2005, 05:16 PM
So what on PHPSpell do I have to remove to install this... if anything?
Mr. Brian
07-09-2005, 05:17 PM
*Brian click Install* :)
tamarian
07-09-2005, 05:23 PM
So what on PHPSpell do I have to remove to install this... if anything?
You don't have to remove anything, just replace the template edits. Once it's running and you're happy with it, you can then uninstall PHPSpell.
Renada
07-09-2005, 06:31 PM
Hi,
Thanks very much for this - its a great addition. :)
I have one question. Is there a way to change the background colour of the spellchecker popup to plain white?
Regards,
Renada
tamarian
07-09-2005, 06:40 PM
I have one question. Is there a way to change the background colour of the spellchecker popup to plain white?
Yes. It currently uses your wysiwyg css class. So you can either edit the wysiwyg class from vB's class editor, or, if you just want to change the background for the spelling window, then edit vbspell_iframe.php
Find:
<body class="wysiwyg" onLoad="assignSelf(); window.parent.startsp();" id="theBody">
And replace the class with another, or replace it with bgcolor="white"
This is on for the framed box in the window. The rest of the spelling window can be modified in the vbspell template.
Aeolian_X
07-09-2005, 08:00 PM
I'll be installing this tonight. Thank youvery much!
**Clicks Install and Rocks On!**
tamarian
07-10-2005, 02:13 AM
July 10, 2005: v0.9.2 Fixed a browser bug, fixed an installer issue effecting some, and fixed handling of some special characters.
To upgrade, just upload vbspell.php and vbspell.js from the zip file.
Corriewf
07-10-2005, 02:31 AM
July 10, 2005: v0.9.2 Fixed a browser bug, fixed an installer issue effecting some, and fixed handling of some special characters.
To upgrade, just upload vbspell.php and vbspell.js from the zip file.
One little problem I have. The spell checker shows up on whos online. Now when I click on it I get the message about it being installed wrong. How can I fix this as I know some will click on it? Its no big deal at all if it cant.
tamarian
07-10-2005, 02:53 AM
One little problem I have. The spell checker shows up on whos online. Now when I click on it I get the message about it being installed wrong. How can I fix this as I know some will click on it? Its no big deal at all if it cant.
Ah, yes, I guess at least we can throw a specific error message for this one :)
Corriewf
07-10-2005, 03:05 AM
What would be better is if it redirected them back to whos online so it would seem like nothing happened but a refresh.
tamarian
07-10-2005, 04:36 AM
What would be better is if it redirected them back to whos online so it would seem like nothing happened but a refresh.
Sure. Put this code in vbspell_iframe.php
Find:
include('global.php');
Place after:
if (strpos(REFERRER, "vbspell") === false) {
$url = REFERRER;
eval(print_standard_redirect("vB Spell cannot be accessed directly", 0));
}
Acedeal
07-10-2005, 09:06 AM
for the calendar edit your need to find;
value="$vbphrase[save_event]" accesskey="s" tabindex="1" />
<input type="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" tabindex="1" />
then place your code under that for the spell check button
cutetxblonde
07-10-2005, 12:06 PM
Woo hoo! Uploaded the new installer, and it is working like a charm! :) Thank you so much :) *install clicked*
tamarian
07-10-2005, 02:57 PM
If anyone here uses the latest Safari browser, please confirm if this works on Safari/Mac. TIA
Corriewf
07-10-2005, 06:36 PM
Sure. Put this code in vbspell_iframe.php
Find:
include('global.php');
Place after:
if (strpos(REFERRER, "vbspell") === false) {
$url = REFERRER;
eval(print_standard_redirect("vB Spell cannot be accessed directly", 0));
}
It doesnt work. Will refer ever ocurance of its opening to the page of which you clicked it on.
tamarian
07-10-2005, 07:26 PM
It doesnt work. Will refer ever ocurance of its opening to the page of which you clicked it on.
How about this?
if (REFERRER != '' AND strpos(REFERRER, "vbspell") === false) {
$url = REFERRER;
eval(print_standard_redirect("vB Spell cannot be accessed directly", 0));
}
Corriewf
07-10-2005, 11:35 PM
How about this?
if (REFERRER != '' AND strpos(REFERRER, "vbspell") === false) {
$url = REFERRER;
eval(print_standard_redirect("vB Spell cannot be accessed directly", 0));
}
So far so good. I will wait and see if it works for whos online as soon as I get a chance. Thanks for your help. The quick reply works great also. I added code in step B after </script> as there was no $navbar .
Thank you.
Corriewf
07-11-2005, 02:41 PM
Ok I tested the code and it worked great! Thank you.
tamarian
07-11-2005, 02:55 PM
Ok I tested the code and it worked great! Thank you.
Cool. It's now in the 0.9.4 zip
Corriewf
07-13-2005, 04:17 PM
Ok I have run into a couple of problems. I dont know if its the main code or the added code you gave me but I have had two reports so far with the following:
"Corrie,
The insert link button isn't doiong anything for me, and the submit reply takes me to the spell check. What'sup?
Dave
"
I logged in under one member and didnt have the problem, but now that im getting it from two I decided to remove the code you gave me. I will let you know if I continue to get the error.
Corriewf
07-13-2005, 05:01 PM
I am thinking that this could be browser specific but im still waiting on confirmation.
sc4r3d
07-13-2005, 07:11 PM
Clicking Install..
Thanks for all your help.. This looks great :D
Corriewf
07-13-2005, 10:07 PM
Okthe problem was with IE only and with only one of my styles. I reverted the new reply template and reapplied changes and everything is green to go.
tamarian
07-13-2005, 10:14 PM
Okthe problem was with IE only and with only one of my styles. I reverted the new reply template and reapplied changes and everything is green to go.
Great to hear :)
mholtum
07-14-2005, 10:44 AM
Thank you so much! It works perfectly in IE.. I was using Pungo and it was nothing but problems... Sometimes it would work and other times it generated errors.. This works flawlessly!!!
/me installs, on two boards
tamarian
07-14-2005, 08:59 PM
There's now a version for vB 3.5 beta 4:
https://vborg.vbsupport.ru/showthread.php?t=92202
sketch42
07-14-2005, 11:24 PM
i cant get it to show up in my quick reply and i did everything as you said :( any ideas
this is my SHOWTHREAD template
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions - $thread[title]</title>
$headinclude
<script src="vbspell.js"></script>
</head>
<body onload="$onload">
$header
$navbar
$poll
<a name="poststop" id="poststop"></a>
<!-- controls above postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<if condition="$show['largereplybutton']">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$FIRSTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
<else />
<td class="smallfont"> </td>
</if>
<if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls above postbits -->
<!-- toolbar -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
<td class="tcat" width="100%">
<div class="smallfont">
<if condition="$show['firstunreadlink']">
<a href="$firstunread"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[view_first_unread]" border="0" /></a>
<a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a>
</if>
</div>
</td>
<td class="vbmenu_control" id="threadtools">
<a href="#goto_threadtools"<if condition="is_browser('ie')"> accesskey="3"</if>>$vbphrase[thread_tools]</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadtools"); </script></if>
</td>
<if condition="$show['search']">
<td class="vbmenu_control" id="threadsearch">
<a href="#goto_threadsearch">$vbphrase[search_this_thread]</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadsearch"); </script></if>
</td>
</if>
<if condition="$show['threadrating']">
<td class="vbmenu_control" id="threadrating">
<a href="#goto_threadrating"><if condition="$show['rating']">$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" /><else />$vbphrase[rate_thread]</if></a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadrating"); </script></if>
</td>
</if>
<if condition="$vboptions['allowthreadedmode']">
<td class="vbmenu_control" id="displaymodes">
<a href="#goto_displaymodes">$vbphrase[display_modes]</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("displaymodes"); </script></if>
</td>
</if>
</tr>
</table>
<!-- / toolbar -->
<!-- end content table -->
$spacer_close
<!-- / end content table -->
<if condition="$show['threadedmode'] OR $show['hybridmode']">
<!-- thread posts list -->
$threadlist
<!-- /thread posts list -->
</if>
<div id="posts">$postbits</div>
<!-- start content table -->
$spacer_open
<!-- / start content table -->
<!-- controls below postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%"<if condition="$vboptions['legacypostbit']"> style="margin-top:3px"</if>>
<tr valign="top">
<if condition="$show['largereplybutton']">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$LASTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
<else />
<td class="smallfont"> </td>
</if>
<if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls below postbits -->
<br />
<div class="smallfont" align="center">
<strong>«</strong>
<a href="showthread.php?$session[sessionurl]t=$threadid&goto=nextoldest">$vbphrase[prev_thread]</a>
|
<a href="showthread.php?$session[sessionurl]t=$threadid&goto=nextnewest">$vbphrase[next_thread]</a>
<strong>»</strong>
</div>
<br />
$quickreply
<!-- currently active users -->
<if condition="$show['activeusers']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2">
<phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase>
</td>
</tr>
<tr>
<td class="alt1" colspan="2">
<span class="smallfont">$activeusers</span>
</td>
</tr>
</table>
</if>
<!-- currently active users -->
<if condition="$show['popups']">
<!-- popup menu contents -->
<br />
<!-- thread tools menu -->
<div class="vbmenu_popup" id="threadtools_menu" style="display:none">
<form action="postings.php" method="post" name="threadadminform">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[thread_tools]<a name="goto_threadtools"></a></td>
</tr>
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" /> <a href="printthread.php?$session[sessionurl]t=$threadid" accesskey="3">$vbphrase[show_printable_version]</a></td>
</tr>
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" /> <a href="sendmessage.php?$session[sessionurl]do=sendtofriend&t=$threadid">$vbphrase[email_this_page]</a></td>
</tr>
<if condition="$show['member']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</td>
</tr>
</if>
<if condition="$show['addpoll']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" /> <a href="poll.php?$session[sessionurl]do=newpoll&t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></td>
</tr>
</if>
<if condition="$show['adminoptions']">
<tr>
<td class="thead">$vbphrase[admin_tools]<a name="goto_threadadmin"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<div><label for="ao_oct"><input type="radio" name="do" id="ao_oct" value="openclosethread" checked="checked" /><if condition="$show['closethread']">$vbphrase[close_thread]<else />$vbphrase[open_thread]</if></label></div>
<div><label for="ao_mvt"><input type="radio" name="do" id="ao_mvt" value="movethread" />$vbphrase[move_copy_thread]</label></div>
<div><label for="ao_sut"><input type="radio" name="do" id="ao_sut" value="stick" /><if condition="$show['unstick']">$vbphrase[unstick_thread]<else />$vbphrase[stick_thread]</if></label></div>
<div><label for="ao_edt"><input type="radio" name="do" id="ao_edt" value="editthread" />$vbphrase[edit_thread]</label></div>
<div><label for="ao_dlt"><input type="radio" name="do" id="ao_dlt" value="deletethread" />$vbphrase[delete_thread]</label></div>
<div><label for="ao_dlp"><input type="radio" name="do" id="ao_dlp" value="deleteposts" />$vbphrase[delete_posts]</label></div>
<div><label for="ao_mgt"><input type="radio" name="do" id="ao_mgt" value="mergethread" />$vbphrase[merge_threads]</label></div>
<div><label for="ao_spt"><input type="radio" name="do" id="ao_spt" value="splitthread" />$vbphrase[split_thread]</label></div>
<div><label for="ao_rrd"><input type="radio" name="do" id="ao_rrd" value="removeredirect" />$vbphrase[remove_redirects]</label></div>
<if condition="$show['editpoll']"><div><label for="ao_edp"><input type="radio" name="do" id="ao_edp" value="editpoll" />$vbphrase[edit_poll]</label></div></if>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" align="center">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pollid" value="$pollid" />
<input type="submit" class="button" value="$vbphrase[perform_action]" />
</td>
</tr>
</if>
</table>
</form>
</div>
<!-- / thread tools menu -->
<!-- ************************************************** ** -->
<!-- thread display mode menu -->
<div class="vbmenu_popup" id="displaymodes_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[display_modes]<a name="goto_displaymodes"></a></td>
</tr>
<tr>
<if condition="$show['linearmode']">
<td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[linear_mode]" /> <strong>$vbphrase[linear_mode]</strong></td>
<else />
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[linear_mode]" /> <a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&mode=linear$highlightwords#post$FIR STPOSTID">$vbphrase[switch_to_linear_mode]</a></td>
</if>
</tr>
<tr>
<if condition="$show['hybridmode']">
<td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[hybrid_mode]" /> <strong>$vbphrase[hybrid_mode]</strong></td>
<else />
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[hybrid_mode]" /> <a href="showthread.php?$session[sessionurl]mode=hybrid&t=$thread[threadid]$highlightwords">$vbphrase[switch_to_hybrid_mode]</a></td>
</if>
</tr>
<tr>
<if condition="$show['threadedmode']">
<td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[threaded_mode]" /> <strong>$vbphrase[threaded_mode]</strong></td>
<else />
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[threaded_mode]" /> <a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&mode=threaded$highlightwords#post$F IRSTPOSTID">$vbphrase[switch_to_threaded_mode]</a></td>
</if>
</tr>
</table>
</div>
<!-- / thread display mode menu -->
<!-- ************************************************** ** -->
<if condition="$show['search']">
<!-- thread search menu -->
<div class="vbmenu_popup" id="threadsearch_menu" style="display:none">
<form action="search.php" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_this_thread]<a name="goto_threadsearch"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="searchthread" value="1" />
<input type="hidden" name="showposts" value="1" />
<input type="hidden" name="searchthreadid" value="$threadid" />
<input type="text" class="bginput" name="query" size="20" />$gobutton<br />
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</form>
</div>
<!-- / thread search menu -->
</if>
<!-- ************************************************** ** -->
<!-- thread rating menu -->
<div class="vbmenu_popup" id="threadrating_menu" style="display:none">
<form action="threadrate.php" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[rate_this_thread]<a name="goto_threadrating"></a></td>
</tr>
<if condition="$show['ratethread']">
<tr>
<td class="vbmenu_option" title="nohilite">
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_5.gif" alt="$vbphrase[excellent]" /><label for="vote5"><input type="radio" name="vote" id="vote5" value="5" $votechecked[5] />$vbphrase[excellent]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_4.gif" alt="$vbphrase[good]" /><label for="vote4"><input type="radio" name="vote" id="vote4" value="4" $votechecked[4] />$vbphrase[good]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_3.gif" alt="$vbphrase[average]" /><label for="vote3"><input type="radio" name="vote" id="vote3" value="3" $votechecked[3] />$vbphrase[average]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_2.gif" alt="$vbphrase[bad]" /><label for="vote2"><input type="radio" name="vote" id="vote2" value="2" $votechecked[2] />$vbphrase[bad]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_1.gif" alt="$vbphrase[terrible]" /><label for="vote1"><input type="radio" name="vote" id="vote1" value="1" $votechecked[1] />$vbphrase[terrible]</label></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" align="center">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pp" value="$perpage" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="submit" class="button" value="$vbphrase[vote_now]" />
</td>
</tr>
<else />
<tr>
<td>$vbphrase[already_rated_this_thread]</td>
</tr>
</if>
</table>
</form>
</div>
<!-- / thread rating menu -->
<!-- / popup menu contents -->
<else />
<!-- controls for non-popup browsers -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top-width:0px">
<tr>
<td class="thead" <if condition="!$show['search']">colspan="2"</if>>$vbphrase[thread_tools]<a name="goto_threadtools"></a></td>
<if condition="$show['search']"><td class="thead">$vbphrase[search_this_thread]<a name="goto_threadsearch"></a></td></if>
</tr>
<tr valign="top">
<td class="alt1" <if condition="!$show['search']">colspan="2"</if>>
<!-- thread tools -->
<div class="smallfont">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" vspace="1" /> <a href="printthread.php?$session[sessionurl]t=$threadid" accesskey="p">$vbphrase[show_printable_version]</a></div>
<div><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" vspace="1" /> <a href="sendmessage.php?$session[sessionurl]do=sendtofriend&t=$threadid">$vbphrase[email_this_page]</a></div>
<if condition="$show['member']">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</div>
</if>
<if condition="$show['addpoll']">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" vspace="1" /> <a href="poll.php?$session[sessionurl]do=newpoll&t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></div>
</if>
</div>
<!-- / thread tools -->
</td>
<if condition="$show['search']">
<td class="alt1">
<!-- search this thread -->
<form action="search.php" method="post">
<div class="smallfont">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="searchthread" value="1" />
<input type="hidden" name="showposts" value="1" />
<input type="hidden" name="searchthreadid" value="$threadid" />
<strong>$vbphrase[search_this_thread]</strong>:<br />
<input type="text" class="bginput" name="query" size="20" style="width:175px" />$gobutton<br />
<a href="search.php?$session[sessionurl]">$vbphrase[advanced_search]</a>
</div>
</form>
<!-- / search this thread -->
</td>
</if>
</tr>
<if condition="$vboptions['allowthreadedmode'] OR $show['threadrating']">
<tr>
<if condition="$vboptions['allowthreadedmode']"><td class="thead" $nodhtmlcolspan>$vbphrase[display_modes]<a name="goto_displaymodes"></a></td></if>
<if condition="$show['threadrating']"><td class="thead" $nodhtmlcolspan>$vbphrase[rate_this_thread]<a name="goto_threadrating"></a></td></if>
</tr>
<tr valign="top">
<if condition="$vboptions['allowthreadedmode']">
<td class="alt2" $nodhtmlcolspan>
<!-- thread display modes -->
<div class="smallfont">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[linear_mode]" vspace="1" /> <if condition="$show['linearmode']"><strong>$vbphrase[linear_mode]</strong><else /><a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&mode=linear$highlightwords#post$FIR STPOSTID">$vbphrase[switch_to_linear_mode]</a></if></div>
<div><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[hybrid_mode]" vspace="1" /> <if condition="$show['hybridmode']"><strong>$vbphrase[hybrid_mode]</strong><else /><a href="showthread.php?$session[sessionurl]mode=hybrid&t=$thread[threadid]$highlightwords">$vbphrase[switch_to_hybrid_mode]</a></if></div>
<div><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[threaded_mode]" vspace="1" /> <if condition="$show['threadedmode']"><strong>$vbphrase[threaded_mode]</strong><else /><a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&mode=threaded$highlightwords#post$F IRSTPOSTID">$vbphrase[switch_to_threaded_mode]</a></if></div>
</div>
<!-- / thread display modes -->
</td>
</if>
<if condition="$show['threadrating']">
<td class="alt2" $nodhtmlcolspan>
<!-- rate this thread -->
<form action="threadrate.php" method="post">
<div class="smallfont">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pp" value="$perpage" />
<input type="hidden" name="page" value="$pagenumber" />
<strong>$vbphrase[rate_this_thread]</strong>:<br />
<select name="vote" onchange="this.form.submit()" style="width:175px">
<optgroup label="$vbphrase[choose_a_rating]">
<option value="5" $voteselected[5]>5 : $vbphrase[excellent]</option>
<option value="4" $voteselected[4]>4 : $vbphrase[good]</option>
<option value="3" $voteselected[3]>3 : $vbphrase[average]</option>
<option value="2" $voteselected[2]>2 : $vbphrase[bad]</option>
<option value="1" $voteselected[1]>1 : $vbphrase[terrible]</option>
</optgroup>
</select>$gobutton
</div>
</form>
<!-- / rate this thread -->
</td>
</if>
</tr>
</if>
</table>
<br />
<!-- / controls for non-popup browsers -->
</if>
<!-- forum rules and admin links -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="bottom">
<td class="smallfont" align="$stylevar[left]">
$forumrules
</td>
<td class="smallfont" align="$stylevar[right]">
<table cellpadding="0" cellspacing="0" border="0">
<if condition="!$show['popups'] AND $show['adminoptions']">
<tr>
<td>
<div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap">
<form action="postings.php" method="post" name="adminoptionsform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<strong>$vbphrase[admin_tools]</strong>:<br />
<select name="do" onchange="this.form.submit()">
<optgroup label="$vbphrase[thread_admin_tools]">
<option value="openclosethread" selected="selected"><if condition="$show['closethread']">$vbphrase[close_thread]<else />$vbphrase[open_thread]</if></option>
<option value="movethread">$vbphrase[move_copy_thread]</option>
<option value="stick"><if condition="$show['unstick']">$vbphrase[unstick_thread]<else />$vbphrase[stick_thread]</if></option>
<option value="editthread">$vbphrase[edit_thread]</option>
<option value="deletethread">$vbphrase[delete_thread]</option>
<option value="deleteposts">$vbphrase[delete_posts]</option>
<option value="mergethread">$vbphrase[merge_threads]</option>
<option value="splitthread">$vbphrase[split_thread]</option>
<option value="removeredirect">$vbphrase[remove_redirects]</option>
</optgroup>
</select>$gobutton
</form>
</div>
</td>
</tr>
<br />
</if>
<tr>
<td>
$forumjump
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- /forum rules and admin links -->
<br />
$similarthreads
<br />
$footer
<!-- temp -->
<div style="display:none">
<!-- thread rate -->
<if condition="$show['ratethread']">
<!-- thread ratings form here -->
<else />
<if condition="$show['threadrating']">
$vbphrase[you_rated_this_thread]: <b>$threadinfo[vote]</b>
</if>
</if>
<!-- / thread rate -->
</div>
</body>
</html>
[B]and this is my showthread_quickreply template
<script type="text/javascript">
<form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="vbspell.php">
<input type="hidden" name="spell_formname" value="">
<input type="hidden" name="spell_fieldname" value="">
<input type="hidden" name="spellstring" value="">
<input type="hidden" name="toolbar" value="">
</form>
<!--
var WYSIWYG = $WYSIWYG;
var threadedmode = $threadedmode;
var minchars = $vboptions[postminchars];
var maxchars = $vboptions[postmaxchars];
var require_click = $QRrequireclick;
var must_click_message = "$vbphrase[click_quick_reply_icon]";
var istyles = new Array(); istyles = { $istyles_js };
var normalmode = false;
var vbphrase = {
// wysiwyg only
"wysiwyg_please_wait" : "$vbphrase[wysiwyg_please_wait]",
"wysiwyg_initialized" : "$vbphrase[wysiwyg_initialized]",
"wysiwyg_command_invalid" : "$vbphrase[wysiwyg_command_invalid]",
"moz_must_select_text" : "$vbphrase[moz_must_select_text]",
"moz_edit_config_file" : "$vbphrase[moz_edit_config_file]",
"enter_tag_option" : "$vbphrase[enter_tag_option]",
"must_select_text_to_use" : "$vbphrase[must_select_text_to_use]",
"browser_is_safari_no_wysiwyg" : "$vbphrase[browser_is_safari_no_wysiwyg]",
// standard only
"enter_text_to_be_formatted" : "$vbphrase[enter_text_to_be_formatted]",
"enter_link_text" : "$vbphrase[enter_link_text]",
"enter_list_type" : "$vbphrase[enter_list_type]",
"enter_list_item" : "$vbphrase[enter_list_item]",
// both
"must_enter_subject" : "$vbphrase[must_enter_subject]",
"message_too_short" : "$vbphrase[message_too_short]",
"enter_link_url" : "$vbphrase[enter_link_url]",
"enter_image_url" : "$vbphrase[enter_image_url]",
"enter_email_link" : "$vbphrase[enter_email_link]"
};
//-->
</script>
<form action="newreply.php" method="post" name="vbform" onsubmit="return checkQR(this);">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return <if condition="$WYSIWYG == 2 AND !is_browser('ie')">editor_loaded ? false : </if> toggle_collapse('quickreply');"><img id="collapseimg_quickreply" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_quickreply].gif" alt="" border="0" /></a>
<!--<img class="inlineimg" src="$stylevar[imgdir_button]/quickreply.gif" alt="" title="$vbphrase[quick_reply]" border="0" <if condition="$debug">onclick="infoQR();"</if> />-->
$vbphrase[quick_reply]
</td>
</tr>
</thead>
<tbody id="collapseobj_quickreply" style="$vbcollapse[collapseobj_quickreply]">
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td class="smallfont" align="$stylevar[left]">$vbphrase[message]:</td>
</tr>
<tr>
<td id="vBulletin_editor" align="$stylevar[left]">
<!-- <<<< indent back for ease of reading -->
<if condition="$WYSIWYG == 2">
<!-- wysiwyg quick reply -->
<div id="controlbar">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><div class="imagebutton" id="cmd_removeformat"><img src="$stylevar[imgdir_editor]/removeformat.gif" alt="$vbphrase[remove_text_formatting]" width="21" height="20" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
<if condition="$vboptions[allowedbbcodes] & ALLOW_BBCODE_BASIC">
<td><div class="imagebutton" id="cmd_bold"><img src="$stylevar[imgdir_editor]/bold.gif" alt="$vbphrase[bold]" width="21" height="20" /></div></td>
<td><div class="imagebutton" id="cmd_italic"><img src="$stylevar[imgdir_editor]/italic.gif" alt="$vbphrase[italic]" width="21" height="20" /></div></td>
<td><div class="imagebutton" id="cmd_underline"><img src="$stylevar[imgdir_editor]/underline.gif" alt="$vbphrase[underline]" width="21" height="20" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
</if>
<td><div class="imagebutton" id="cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" alt="$vbphrase[wrap_quote_tags]" width="21" height="20" /></div></td>
</tr>
</table>
</div>
<div class="controlbar">
<if condition="is_browser('ie')">
<div id="htmlbox" class="wysiwyg" style="width:600px; height:100px; padding:8px" tabindex="1"><p></p></div>
<else />
<iframe id="htmlbox" style="width:600px; height:100px" tabindex="1"></iframe>
</if>
<input type="hidden" name="message" id="qr_message" value="" />
<input type="hidden" name="WYSIWYG_HTML" value="" />
</div>
<script type="text/javascript" src="clientscript/vbulletin_editor.js"></script>
<script type="text/javascript" src="clientscript/vbulletin_wysiwyg.js"></script>
<if condition="!is_browser('ie')"><script type="text/javascript" src="clientscript/vbulletin_moziwyg.js"></script></if>
<!-- / wysiwyg quick reply -->
</if>
<if condition="$WYSIWYG == 1">
<!-- standard quick reply -->
<div id="controlbar">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<if condition="$vboptions[allowedbbcodes] & ALLOW_BBCODE_BASIC">
<td><div class="imagebutton"><a href="#" onclick="return vbcode('B', '')"><img src="$stylevar[imgdir_editor]/bold.gif" alt="$vbphrase[bold]" width="21" height="20" border="0" /></a></div></td>
<td><div class="imagebutton"><a href="#" onclick="return vbcode('I', '')"><img src="$stylevar[imgdir_editor]/italic.gif" alt="$vbphrase[italic]" width="21" height="20" border="0" /></a></div></td>
<td><div class="imagebutton"><a href="#" onclick="return vbcode('U', '')"><img src="$stylevar[imgdir_editor]/underline.gif" alt="$vbphrase[underline]" width="21" height="20" border="0" /></a></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
</if>
<td><div class="imagebutton"><a href="#" onclick="return vbcode('QUOTE', '')"><img src="$stylevar[imgdir_editor]/quote.gif" alt="$vbphrase[wrap_quote_tags]" title="$vbphrase[wrap_quote_tags]" width="21" height="21" border="0" /></a></div></td>
</tr>
</table>
</div>
<div class="controlbar">
<textarea name="message" id="qr_message" class="bginput" style="width:600px; height:100px" cols="60" rows="5" tabindex="1"></textarea>
</div>
<script type="text/javascript" src="clientscript/vbulletin_editor.js"></script>
<script type="text/javascript" src="clientscript/vbulletin_stdedit.js"></script>
<!-- / standard quick reply -->
</if>
<if condition="$WYSIWYG == 0">
<!-- no-toolbar quick reply -->
<div class="controlbar">
<textarea name="message" id="qr_message" class="bginput" style="width:600px; height:100px;" rows="5" cols="60" tabindex="1"></textarea>
</div>
<!-- / no-toolbar quick reply -->
</if>
<!-- >>>> outdent back to normal -->
</td>
</tr>
<tr>
<td align="$stylevar[left]">
<fieldset class="fieldset" style="margin:$stylevar[formspacer]px 0px 0px 0px">
<legend>$vbphrase[options]</legend>
<div>
<if condition="$bbuserinfo['signature']">
<div style="float:$stylevar[right]">
<label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="5" checked="checked" />$vbphrase[show_your_signature]</label>
</div>
</if>
<label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" tabindex="4" checked="checked" />$vbphrase[quote_message_in_reply]</label>
</div>
</fieldset>
</td>
</tr>
</table>
</div>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="hidden" name="fromquickreply" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="postreply" />
<input type="hidden" name="t" value="$threadid" id="qr_threadid" />
<input type="hidden" name="p" value="$qrpostid" id="qr_postid" />
<input type="hidden" name="parseurl" value="1" />
<input type="hidden" name="clickedelm" value="" />
<input type="submit" class="button" value="$vbphrase[post_quick_reply]" accesskey="s" title="(Alt + S)" name="sbutton" tabindex="2" onclick="this.form.clickedelm.value=this.value" />
<input type="submit" class="button" value="$vbphrase[go_advanced]" accesskey="x" title="(Alt + X)" name="preview" tabindex="3" id="qr_preview" onclick="this.form.clickedelm.value = this.value" />
<if condition="$WYSIWYG == 2">
<input type="button" class="button" value="Spell Check" onClick="spellCheck('vbform', 'WYSIWYG_HTML', '2');">
<else />
<input type="button" class="button" value="Spell Check" onClick="spellCheck('vbform', 'message', '1');">
</if>
</div>
</td>
</tr>
</tbody>
</table>
</form>
<br />
<if condition="!is_browser('ie') AND $WYSIWYG == 2">
<!-- Mozilla work around for focusing on QR in WYSIWYG mode -->
<div id="qr_scroll"></div>
</if>
<script type="text/javascript" src="clientscript/vbulletin_quickreply.js"></script>
<!-- END WYSWIWYG QUICK REPLY -->
tamarian
07-14-2005, 11:50 PM
i cant get it to show up in my quick reply and i did everything as you said :( any ideas
Looks like you added parts A and C correctly, but missed edit/step B :)
sketch42
07-15-2005, 12:38 AM
i cant find $navbar anywhere though :( and i cant figure out where to put it :(
tamarian
07-15-2005, 12:43 AM
i cant find $navbar anywhere though :( and i cant figure out where to put it :(
It's at the top of the showthread template.
Does it work elsewhere, like in editpost, new reply, new thread, etc. ?
sketch42
07-15-2005, 01:13 AM
It's at the top of the showthread template.
Does it work elsewhere, like in editpost, new reply, new thread, etc. ?
yup everywhere
sketch42
07-15-2005, 01:18 AM
found the problem
my child styles weren't inheriting the edits
all working now
:)
*sketch42 clickity clicks Install
tamarian
07-15-2005, 01:19 AM
found the problem
my child styles weren't inheriting the edits
all working now
Cool :D
sketch42
07-18-2005, 02:01 AM
i think i found a bug,
i get this error vB Spell installation problem, please notify the webmaster
only when running vb Spell on really long posts, like my forum rules etc...
and i had zero problems with the installation, NO errors.any odea how o fix this?
tamarian
07-18-2005, 02:09 AM
i think i found a bug,
i get this error
only when running vb Spell on really long posts, like my forum rules etc...
and i had zero problems with the installation, NO errors.any odea how o fix this?
I don't think it's due to the size, as I have tested with very large posts. Could you PM me an example of a post that would cause this?
tamarian
07-20-2005, 12:07 AM
I forgot to mention, the last problem reported turned out to be due to ad/popup blocking by Norton Internet Security :)
lange
07-21-2005, 10:12 PM
Thanks. I'll try it.
BOWZONE
07-24-2005, 08:02 PM
Great hack! Installed quickly and worked the first shot.
Thank you!!
*bowzone clicks install!*
tamarian
07-25-2005, 08:41 PM
Note, I have update the template instructions for quick reply. Let me know if you still have problems with it.
Corriewf
07-25-2005, 10:12 PM
Note, I have update the template instructions for quick reply. Let me know if you still have problems with it.
What was wrong before?
tamarian
07-25-2005, 10:27 PM
What was wrong before?
Nothing wrong, it was just vague. After a couple of PM's, I decided to re-write that section to make it easier. Test it in quick reply in standard and WYSIWYG, if it works, then you're o.k.
between worlds
07-26-2005, 11:09 AM
I've installed it and it installed perfectly.
One question though, how do I modify the permissions so that all usergroups can use the spell check? Where would I go to modify them?
tamarian
07-26-2005, 11:34 AM
One question though, how do I modify the permissions so that all usergroups can use the spell check? Where would I go to modify them?
In the AdminCP => vBulletin Options -> vB Spell
Lionsault
07-26-2005, 03:20 PM
Thanks so much, tamarian! The code works perfectly for my forums!
ranger2kxlt
07-27-2005, 02:42 PM
Ok the button doesn't show up :-/
tamarian
07-27-2005, 02:46 PM
Well I had your phpspell installed (created last year) and now I'm trying to upgrade to this one, it won't work....the window won't pop-up, its like it doesn't know what to pop-up. I've made all the edits, please help
Do you have any ad blocke or firewall software, like Norton etc. Disable them temporarily to see if that's causing it.
ranger2kxlt
07-27-2005, 02:49 PM
dang your quick....I did a revert on the template and the button went away, when I went to edit the template with the changes, and save the button doesn't appear now...
no ad block
tamarian
07-27-2005, 03:04 PM
dang your quick....I did a revert on the template and the button went away, when I went to edit the template with the changes, and save the button doesn't appear now...
Sounds like a style issue. Are you updating the master style, or using a style other than the one you edited?
ranger2kxlt
07-27-2005, 03:06 PM
Using the main the style
tamarian
07-27-2005, 03:10 PM
Using the main the style
O.k. so you will need to start over and carefully apply the changes. Something was applied wrong, otherwise the HTML code for the button should show.
ranger2kxlt
07-27-2005, 03:26 PM
Ok here's the odd thing, I had the phpSpell installed, and the button showed then, but when I reverted to the org. and then applied these changes, I get nothing.
tamarian
07-27-2005, 03:35 PM
Ok here's the odd thing, I had the phpSpell installed, and the button showed then, but when I reverted to the org. and then applied these changes, I get nothing.
These things always happen, where we think we applied the changes correctly, but something was missed or done wrong :) If the template does not show the button, then the changes were either not done, or done to the wrong template, or done to the wrong style.
ranger2kxlt
07-27-2005, 03:36 PM
idk, i've tried everything I can think of can't get it to show :-/
ranger2kxlt
07-27-2005, 03:38 PM
HAHAHAHAH!!! ooppss....I kept adding the button to the Bottom half of the newthread, newreply and not right below the text box....ok I'm dumb, thanks for helping the idoit ;-)
tamarian
07-27-2005, 03:42 PM
HAHAHAHAH!!! ooppss....I kept adding the button to the Bottom half of the newthread, newreply and not right below the text box....ok I'm dumb, thanks for helping the idoit ;-)
Told you :) This always happens to me, I attribute it to too much concentration ;)
ranger2kxlt
07-27-2005, 03:49 PM
Looks great *Clicked Install*
wdarton
07-27-2005, 06:45 PM
just finished installing....5 minutes...works great! Thanks tons!
*Clicked Install*
NYI Fan
07-28-2005, 12:22 AM
**clicks install**
Installed in no time at all with no errors
One question (since I dont want to guess and muck things up)
Can this be added to PMs? If so, would you mind telling me what to add and where?
Thanks for a great, easy to install, MUCH REQUESTED addition!
tamarian
07-28-2005, 12:29 AM
One question (since I dont want to guess and muck things up)
Can this be added to PMs?
Yes, check the instructions for "USERCP_SHELL". :)
akanevsky
07-28-2005, 11:18 PM
Does this work with Opera 8.1?
tamarian
07-28-2005, 11:50 PM
Does this work with Opera 8.1?
It should. I've tested with Opera 8.0 on Linux, so I assume later versions should have no problems.
Dax IX
07-29-2005, 03:13 AM
For some reason this isn't working for me (imagine that)
I've been using phpBB up until recently and I never had any problems, so I'm relatively sure I installed everything correctly. I did have one glitch during the install where in the install scipt it calls for the admincp, but I've renamed mine, so I edited the install script to reflect my changes, and everythign went smoothly after that.
Everything works, except the actual spell checking! The window pops up, everything appears in the new window, but it says "Spell checking complete."
Any ideas?
tamarian
07-29-2005, 03:18 AM
For some reason this isn't working for me (imagine that)
I've been using phpBB up until recently and I never had any problems, so I'm relatively sure I installed everything correctly. I did have one glitch during the install where in the install scipt it calls for the admincp, but I've renamed mine, so I edited the install script to reflect my changes, and everythign went smoothly after that.
Everything works, except the actual spell checking! The window pops up, everything appears in the new window, but it says "Spell checking complete."
Any ideas?
1. The obvious question is, were there any misspelled words? :)
2. Was the dictionary installed successfully?
3. Have you tried it with more than one browser?
Corriewf
07-29-2005, 03:39 AM
It does seem to skip over words that are not spelled correctly sometimes..... It should prompt to at least learn it but gives the ok instead. It is above my standards and im not looking for perfection as any spell check is more then deserved... :)
tamarian
07-29-2005, 03:44 AM
It does seem to skip over words that are not spelled correctly sometimes..... It should prompt to at least learn it but gives the ok instead. It is above my standards and im not looking for perfection as any spell check is more then deserved... :)
LOL, I think the "problem" is that some misspelled words are still correct, in the sense that there are other uncommon words thet I've never heard of maching that spelling in the dictionary.
But you can test it by entering a bogus word like "hhhhhhhh", and it will stop at it, and let you either type in a replacement, or click learn to add it.
Dax IX
07-29-2005, 03:46 AM
1. The obvious question is, were there any misspelled words? :)
2. Was the dictionary installed successfully?
3. Have you tried it with more than one browser?
1. Yes, there were misspelled words ;)
2. Yes, I uninstalled everything and reinstalled it again and that went fine.
3. I've only checked it in IE. Let me check Firefox...Nope. Not working in Firefox either. :(
tamarian
07-29-2005, 03:49 AM
1. Yes, there were misspelled words ;)
2. Yes, I uninstalled everything and reinstalled it again and that went fine.
3. I've only checked it in IE. Let me check Firefox...Nope. Not working in Firefox either. :(
Create a test account (regular user) and send me the login details by PM, I'll take a look :)
Chris@TSE
08-01-2005, 05:35 AM
it gets to the point where it goes to install step five (dictionary) and takes forever to load, and goes to a blank page. nothing, no success, no fail, nothing. ideas?
tamarian
08-01-2005, 01:10 PM
it gets to the point where it goes to install step five (dictionary) and takes forever to load, and goes to a blank page. nothing, no success, no fail, nothing. ideas?
Are you running PHP as cgi or Apache module? Are you on a shared hosting plan? If you have phpMyAdmin, how many records are there in the table "vbspell"?
Chris@TSE
08-08-2005, 03:06 AM
I got it to install, and it is active on all of the parts of the styles I added it too, but for some reason some VERY simple words are coming up as misspelled when they are not. And when I choose to "learn" said words, it does not learn them. Any ideas?
tamarian
08-08-2005, 11:53 AM
I got it to install, and it is active on all of the parts of the styles I added it too, but for some reason some VERY simple words are coming up as misspelled when they are not. And when I choose to "learn" said words, it does not learn them. Any ideas?
It depends on the words, if they are not in the dictionary, and not in the common vB words set (like the, them, is) they will show up as misspelled.
The Leran feature requires that you have your browser cookies enabled, make sure you're not blocking cookies.
weaver
08-08-2005, 12:15 PM
Are you running PHP as cgi or Apache module? Are you on a shared hosting plan? If you have phpMyAdmin, how many records are there in the table "vbspell"?
I'm having the same timing-out issue. I think it's CGI, it is a shared plan, and there are 181623 records in the vbspell table.
tamarian
08-08-2005, 12:32 PM
I'm having the same timing-out issue. I think it's CGI, it is a shared plan, and there are 181623 records in the vbspell table.
Seems like you installed most of the dictionary before it timed out :)
Test the template edits and see if it works, just to make sure it functions properly, as I'm not familiar with running PHP in cgi mode.
If it works properly, then you just need to try to get the dictionary re-installed without missing words. You can try to re-run step #5 (install dictionary), but try it at a time when the server is not busy.. This may let it complete before timing out. If that doesn't work, I can email you a mysql dump of the dictionary so you can just install it from the command line.
weaver
08-08-2005, 02:01 PM
Seems like you installed most of the dictionary before it timed out :)
Test the template edits and see if it works, just to make sure it functions properly, as I'm not familiar with running PHP in cgi mode.
If it works properly, then you just need to try to get the dictionary re-installed without missing words. You can try to re-run step #5 (install dictionary), but try it at a time when the server is not busy.. This may let it complete before timing out. If that doesn't work, I can email you a mysql dump of the dictionary so you can just install it from the command line.
Did the template edits and it works beautifully. I'll send you a PM with my email address.
tamarian
08-08-2005, 06:07 PM
For those running PHP in cgi mode and get timeouts while installing the dictionary, you can download the file dictionary_sql_for_php_cgi.zip to import it to mysql through the command line.
damonh
08-10-2005, 03:34 AM
AWESOME HACK!!! Thanks!
simple_john
08-10-2005, 05:12 PM
Thanks tamarian, i just installed it and it works great...
one more stupid question please... and i apologize i dont know the coding part much at all...
but say i tell the system to learn the word 'chekc' accidentally...
nect time i spell chekc it allows it... is there a way for me to edit the list of learned words??? so i can remove chekc as a valid word??
again sorry if this is too simple a question...
thanks
tamarian
08-10-2005, 05:19 PM
but say i tell the system to learn the word 'chekc' accidentally...
nect time i spell chekc it allows it... is there a way for me to edit the list of learned words??? so i can remove chekc as a valid word??
The learned words are stored in a cookie. You can either clear your cookies to reset the learned words, or look for that specific cookie in your cookies directory, it's called "vbspell_words".
simple_john
08-11-2005, 11:33 AM
thanks Tamarian, i installed it on a small test forum i have and had a few problems... (due to me not knowing what i'm doing) thanks for the guidance..
I just installed it on my actual forum and it went super clean.
LOL, i know why tamarian needed to develop spell check so badly.. FYI for those who have installed.. 'thesaurus' is spelled wrong on the Button that was developed... ;)
thanks for showing me how to fix that too!!
Great HACK!! very helpful.
one more question.. im new to doing hacks.. in general, do you install all the files to the admincp folder or just the install files?
i installed just the install file to the admincp folder.. but during install it was looking for the dictionary file.. so i put that in the admincp folder too...
in general.. when doing hacks..
do you usually put the files to the root or to the admincp folder???
tamarian
08-11-2005, 12:03 PM
LOL, i know why tamarian needed to develop spell check so badly.. FYI for those who have installed.. 'thesaurus' is spelled wrong on the Button that was developed... ;)
But I spelled the rest of the buttons correctly, I think :) The buttons HTML code in in the vbspell template, for those who want to edit it.
one more question.. im new to doing hacks.. in general, do you install all the files to the admincp folder or just the install files?
What I do is organize the zip file contents in a way that makes it easier to know which goes where. Depending on what compression software you use, the zip file will contain a "forum" directory, files under it go to the main forum directory, and another directory called "admincp", and the content of that directory goes into the admincp.
rprade
08-17-2005, 11:21 PM
Trying to determine why I am getting two Spell Check buttons.
Any ideas?
tamarian
08-17-2005, 11:24 PM
Trying to determine why I am getting two Spell Check buttons.
Any ideas?
In which template? Double check your template edits :)
rprade
08-17-2005, 11:32 PM
I created replacement variables with the code as shown in your instructions. It's acting like the if-statement is not working properly and it's displaying using both submit button statements.
Hey, man -- QUICK reponse time!!!! Thanks!
Chris@TSE
08-17-2005, 11:33 PM
sounds like you have it in your code twice, revert back to the old saved version and apply the modification to that one again properly????
rprade
08-17-2005, 11:44 PM
Interesting behavior here --
If I put the code in a replacement variable (vbspell_check_html) and use the replacement variable, I get two buttons.
If I just paste the code as is into newreply, it works just fine.
Very interesting.
yoyoyoyo
08-21-2005, 04:29 AM
I uploaded the files, and did the template edits, however when I go to spellcheck a post the window pops up with the word highlighted in red, but no options for replacement, no nothing, just blank boxes where that stuff should be. If I hit replace it replaces it with nothing, naturally. I made sure that teh files were upped properly, and re-checked the edits and sm only able to get a pop-up window with nothing in the lower boxes. I can post a screenshot if you like.
Chris@TSE
08-21-2005, 04:35 AM
Sounds like you didnt run the install.... The dictionary file was never added.
yoyoyoyo
08-21-2005, 04:50 AM
Sounds like you didnt run the install.... The dictionary file was never added.I added it, and even checked in PHPmyadmin and they are all there, 192917 words from a to zyzzyvas in the proper table.
http://img400.imageshack.us/img400/498/screen8wr.jpg
I tried it in IE and firefox - same thing.
tamarian
08-21-2005, 11:38 AM
I uploaded the files, and did the template edits, however when I go to spellcheck a post the window pops up with the word highlighted in red, but no options for replacement, no nothing, just blank boxes where that stuff should be. If I hit replace it replaces it with nothing, naturally.
The empty box just means it found no suggestions to correct the misspelled word. This does happen to some words, if they are unlike anything in the dictionary.
yoyoyoyo
08-21-2005, 11:54 AM
The empty box just means it found no suggestions to correct the misspelled word. This does happen to some words, if they are unlike anything in the dictionary.Ok- well I tested it using the phrase "This is a tesst. I am tetsing the spelll fucntion and I hopp it works" and it found no suggestions for changes. If it can't fix that then the spell check is pretty useless. Please try entering that phrase in to your forum (where vbspell is working) and let me know if it catches it.
tamarian
08-21-2005, 12:10 PM
Ok- well I tested it using the phrase "This is a tesst. I am tetsing the spelll fucntion and I hopp it works" and it found no suggestions for changes. If it can't fix that then the spell check is pretty useless. Please try entering that phrase in to your forum (where vbspell is working) and let me know if it catches it.
Every spell checker has words it can't find suggestion for. That's just the way they work.
However, tesst should have worked and found test.
I suspect something went wrong in the installation. Have you done anything different than the instructions? If you followed everything to the letter, and have the latest version, create a test account and PM it to me, I'll take a look.
yoyoyoyo
08-21-2005, 12:18 PM
Every spell checker has words it can't find suggestion for. That's just the way they work.
However, tesst should have worked and found test.
I suspect something went wrong in the installation. Have you done anything different than the instructions? If you followed everything to the letter, and have the latest version, create a test account and PM it to me, I'll take a look.thanks for the offer and thanks for the hack. I reinstalled it again (for the 4th time) and it is now working! :D I can't tell you what I did differently, but I re-ran the installer a few times, and this time it stuck!
tamarian
08-21-2005, 12:31 PM
thanks for the offer and thanks for the hack. I reinstalled it again (for the 4th time) and it is now working! :D I can't tell you what I did differently, but I re-ran the installer a few times, and this time it stuck!
Must be the gremlins :) Glad it worked for you :up:
yoyoyoyo
08-21-2005, 12:51 PM
I added changes B & C to the pm_newpm template and it works fine for private messages :D
bjs144
08-30-2005, 01:49 PM
Very good!!!
PLEASE correct the spelling of thesaurus on the vbspell screen... It is showing as thesarus. ;)
Edit: I discovered that this can be fixed in the "vbspell" template, but it would be nice to fix that since this is a spell checker.
Thanks for this mod - I hope it helps my members' spelling.
Is it okay to share my revised vbspell template? In addition to fixing the spelling error for Thesaurus, I made some other modifications. I found a way to add a description for what each button does when the user mouses over it. The description shows up in the status bar.
For example, here is the code for the "Change All" button:<input type="button" class="button" name="changeall" value="Change All" onClick="replaceAll()" ONMOUSEOVER="window.status='Change all instances of this word.';return true;" ONMOUSEOUT="window.status='';return true;">
When the user mouses over it, the status bar text says "Change all instances of this word."
P.S. Great mod! :)
zendiver
08-31-2005, 05:44 PM
This is the error I get trying to install this on a FRESH vBullentin 3.08
There seems to have been a slight problem with the Forums database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
Database error in vBulletin 3.0.8:
Invalid SQL: REPLACE INTO vb3_vbspell VALUES('divines', 'TFNS')
mysql error: User 'xxxxxxx' has exceeded the 'max_questions' resource (current value: 50000)
mysql error number: 1226
Date: Wednesday 31st of August 2005 11:43:03 AM
Script: http://www.divingandfitness.com/forums/admincp/vbspell_install.php?do=install&step=5
Referer: http://www.divingandfitness.com/forums/admincp/vbspell_install.php?do=install&step=4
tamarian
08-31-2005, 06:43 PM
Invalid SQL: REPLACE INTO vb3_vbspell VALUES('divines', 'TFNS')
mysql error: User xxxx has exceeded the 'max_questions' resource (current value: 50000)
mysql error number: 1226
This seems to be a limit set by your host on the number of queries your forum can run per hour. If this is a shared account, you'll probably need the host to install it for you, or adjust the limit.
P.S. You might want to edit your post to remove the username for the database.
zendiver
08-31-2005, 07:34 PM
tamarian, thanks for the reply. I have checked with them, my hosting company, and they say that I don't have a limit. I have 4 domains with them and then was one is actually my testing site. I am going to completely delete EVERYTHING from this site, delete the database, do a fresh install of vBulletin and then try it again.
On my other sites, I have vBulletin, vbPortal, vbPhotoPost, a chat room, and quite a few other things installed and they all work without a glitch. *shrugs*
tamarian
08-31-2005, 07:46 PM
tamarian, thanks for the reply. I have checked with them, my hosting company, and they say that I don't have a limit.
The error message clearly indicates that there is a limit. If your host does not have a limit, then someone by mistake may have setup MySQL. Check your mysql settings and user priviliges. If this error happens again, send a copy of the error to your host, so they can see the 50,000 limit.
tamarian
09-01-2005, 01:19 AM
Is it okay to share my revised vbspell template?
By all means, yes. Might include it on the next update :)
zendiver
09-01-2005, 01:04 PM
Tamarian, I got a response from my hosting company and this what they had to say:
The database you are using is asking too many questions within one hour (50,000). If you have the .sql file and the database created, please provide the database name and location of the .sql file and we can manaully import it for you on the server.
With the install that you have provided, there wasn't a .sql file BUT there was an additional file: dictionary.sql that I downloaded also. Is this the one that I should send to them? If so, I am a bit concerned with the format as it doesn't have the prefix on it:
Example:
REPLACE INTO `vbspell` VALUES ('a', 'A');
Shouldn't that be:
REPLACE INTO `vb3_vbspell` VALUES ('a', 'A');
And lastly, if they import it in, then what do I do about the rest of the installation as it seems that I can't get past Step 5?
Thanks for your time.
tamarian
09-01-2005, 01:27 PM
Tamarian, I got a response from my hosting company and this what they had to say:
With the install that you have provided, there wasn't a .sql file BUT there was an additional file: dictionary.sql that I downloaded also. Is this the one that I should send to them?
No, the first post states that file is for those in cgi mode, or those who want to import it without the install script.
The installation script comes with a dictionary text file IDCTIONARY.DIC
If so, I am a bit concerned with the format as it doesn't have the prefix on it:
Example:
REPLACE INTO `vbspell` VALUES ('a', 'A');
Shouldn't that be:
REPLACE INTO `vb3_vbspell` VALUES ('a', 'A');
The installation script does handle text prefixes. The one you're using is a streight mysql dump, and you don't need it if you run the install script.
If you use the dump instead, then just rename the table when your done through mysql client, or phpmyadmin.
And lastly, if they import it in, then what do I do about the rest of the installation as it seems that I can't get past Step 5?
If they import it, you don't need step 5, you're done. :)
zendiver
09-01-2005, 01:58 PM
Ok, I can understand that, so this is what I plan to do.
Dump the dictionary.sql into my database.
Then, do I run the install program?
tamarian
09-01-2005, 02:05 PM
Ok, I can understand that, so this is what I plan to do.
Dump the dictionary.sql into my database.
Then, do I run the install program?
My preference would be to first get the host to fix the query limit, since this will solve any future problems with the database. Once that fixed, you can just use the nstall script as usual.
If they don't want to do that, then your above work-around would work, provided that you don't run step #5
zendiver
09-01-2005, 02:15 PM
well, they will not up the max limit so the dump is the way I am going to have to go, but now I forsee another problem. Once the dump is made, it already has the table name etc....so I will more than likely get errors running the install program.
tamarian
09-01-2005, 02:26 PM
well, they will not up the max limit so the dump is the way I am going to have to go, but now I forsee another problem. Once the dump is made, it already has the table name etc....so I will more than likely get errors running the install program.
If you use phpMyAdmin, you can rename the table.
zendiver
09-01-2005, 02:30 PM
I am doing that but won't it say that Table already exists when I run the installer, AFTER I complete the dump?
In newreply & newthread under 3.0.8
you need to look for this
<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" />
And then add this below for it show the buttens in the right spots.
<if condition="$show['wysiwyg']">
<input type="button" class="button" value="Spell Check" onClick="spellCheck('vbform', 'WYSIWYG_HTML', '2');">
<else />
<input type="button" class="button" value="Spell Check" onClick="spellCheck('vbform', 'message', '1');">
</if>
tamarian
09-07-2005, 11:28 AM
I am doing that but won't it say that Table already exists when I run the installer, AFTER I complete the dump?
It's messy anyway, due to the host limit, but:
provided that you don't run step #5
mustang_lex
09-07-2005, 05:58 PM
This is a great feature.
One question. How do I change the text background to white? For some reason its defaulted to red. and I like black text (with red highlight) with a WHITE background. where do I change that?
UPDATE: I found a work around. I removed the link to my CSS file and copyed the CSS content into the vbspell_iframe.php and removed my background image which was causing the problem. :ermm:
Detomah
09-07-2005, 11:15 PM
I've had this down as installed for ages, but every time I go to do it, I stall and hold back and keep meaning to ask...
So....
What's this like on the old server loads and queries? Does it add a lot or very little?
tamarian
09-08-2005, 12:18 PM
What's this like on the old server loads and queries? Does it add a lot or very little?
It's quite fast and light, but you might want to test on the server just to be sure.
It's optimized to ignore common words (any words excluded from your vB search indexing), and the dictionary is indexed, and the queries are indexed, so I haven't noticed any load issues.
You can convert the dictionary table to a HEAP/memory table, but it doesn't seem to be needed.
scoles15
09-13-2005, 11:16 PM
It works great for regular posts and replies, but the spell check buttons shows an error and nothing happens
tamarian
09-14-2005, 12:44 AM
It works great for regular posts and replies, but the spell check buttons shows an error and nothing happens
This only happens in PM's? Might be an old template issue. Try reverting the template, then apply the changes.
scoles15
09-14-2005, 03:13 PM
This only happens in PM's? Might be an old template issue. Try reverting the template, then apply the changes.
Thanks, that did it. I must have soemthing stupid the first time.
Quillz
09-14-2005, 03:19 PM
Interesting modification. I may install it on my board sometime in the future.
JJR512
09-14-2005, 05:48 PM
Does the dictionary.dic file need to remain on the server or can it be removed after installation? I thought the dictionary was put into the database, which is why I think it can be deleted. Is that correct?
tamarian
09-14-2005, 06:35 PM
Does the dictionary.dic file need to remain on the server or can it be removed after installation? I thought the dictionary was put into the database, which is why I think it can be deleted. Is that correct?
Yes, it's no longer needed.
Aidden
09-16-2005, 07:19 PM
Im curious as to if an upgrade to 3.09 should have caused this to stop working..
I installed this last night, and everything was working fine.
I just got done doing the upgrade to 3.09 a few minutes ago and I noticed that when you hti the spell check button, the window that pops up is a blank window.. Viewing source fomr within it shows nothign as well.
All files are still on server
and template modifications are still in place.
im baffled.
tamarian
09-17-2005, 12:06 AM
Aidden, I have not tested on 3.0.9, as I'm working on 3.5, but I don't think there's any changes that might cause this. Try to reinstall vB Spell from scrach, something may have gone wrong with the upgrade.
Aidden
09-22-2005, 02:08 PM
did that.. no go..
jsut cant understand why it would all of a sudden stop working.
blank windows, view source is 100% empty.
Aidden
09-22-2005, 04:42 PM
had to run the install script again and now its working..
a squared
09-28-2005, 02:58 AM
I would really like to use vB Spell. But, I've run into the same problem that Zendiver had; exceeded limit. The bigger problem is that I really don't know squat about mySQL. I can admire my database. But, as far as adding the needed file to it I'm lost. Is there an idiots guide on how to do this, or is there anyone willing to help an idiot?
bada_bing
09-28-2005, 01:26 PM
Anyone have the code to insert the Spell Check button in the New PM and Reply to a pm menu. This hack works awesome when starting and replying to a thread but I want to also includ it in the PM.. I want to to also work the same was with the groups. Currently I have it set so that only Premium Paying Members can use spell check so I want to make sure that the spel check link only shows up in the "PM" memu only for my premium members.
ranger2kxlt
09-28-2005, 04:22 PM
Interesting bug....
If you do a spell check and FONT COLOR or BBCODE COLOR a word, the spell the check thinks its miss spelled when its really not....Any ideas?
tamarian
10-01-2005, 04:48 PM
Interesting bug....
If you do a spell check and FONT COLOR or BBCODE COLOR a word, the spell the check thinks its miss spelled when its really not....Any ideas?
How is it coloured? I know that mixed format within the word would do this.
bada_bing
10-04-2005, 11:35 AM
Anyone have the code to insert the Spell Check button in the New PM and Reply to a pm menu. This hack works awesome when starting and replying to a thread but I want to also includ it in the PM.. I want to to also work the same was with the groups. Currently I have it set so that only Premium Paying Members can use spell check so I want to make sure that the spel check link only shows up in the "PM" memu only for my premium members.
Does anyone or can anyone help me out here? Im sure someone know how to do this?
tamarian
10-04-2005, 11:50 AM
Does anyone or can anyone help me out here? Im sure someone know how to do this?
I didn't understand what you mean. Have you tried the templated edits for PM's in the first post, and they didn't work?
bada_bing
10-04-2005, 12:03 PM
I didn't understand what you mean. Have you tried the templated edits for PM's in the first post, and they didn't work?
I dont see how to edit the PM template. do you have a step-by-step procedure?
tamarian
10-04-2005, 12:33 PM
I dont see how to edit the PM template. do you have a step-by-step procedure?
It's listed in the first post of this thread.
GoTTi
10-09-2005, 12:45 AM
how would i add words to the dictionary?
GoTTi
10-09-2005, 12:48 AM
where would i get a updated .dic file?
tamarian
10-09-2005, 01:06 AM
where would i get a updated .dic file?
Just click the "learn" button.
GoTTi
10-09-2005, 01:12 AM
another question:
i am testing this with users placed in secondary usergroups, and its not working. any ideas?
GoTTi
10-09-2005, 01:15 AM
also is there any way to only have admins or staff have the option to use the learn button?
tamarian
10-09-2005, 03:42 PM
also is there any way to only have admins or staff have the option to use the learn button?
You can add a template conditional to only show the learn button to some groups. However, keep in mind that the "learn" button relies on cookies. So if one user clicks "learn", it will not be added to your database, and it will no affect other uses, each's learned words are stored in their own cookies.
GoTTi
10-09-2005, 03:51 PM
what about my first question?
tamarian
10-09-2005, 04:00 PM
i am testing this with users placed in secondary usergroups, and its not working. any ideas?
It currently just works with the primary group. I'll add to the to-do list for a future version.
GoTTi
10-09-2005, 07:55 PM
when will a future version be released for 3.0.x?
tamarian
10-09-2005, 07:59 PM
when will a future version be released for 3.0.x?
Let's say a week. If you don't see it in a week, feel free to bump this thread. :)
solboy
10-10-2005, 01:01 AM
will this work on the latest version 3.5.0?
tamarian
10-10-2005, 01:24 AM
will this work on the latest version 3.5.0?
There's another version made for 3.5, you'll find it listed in my profile page.
solboy
10-10-2005, 02:59 AM
Thank you :)
King Kovifor
10-10-2005, 05:28 PM
Anybody have a list for templates that need edited? (Like all the ones with a body place, that could use the spell checke)
tamarian
10-10-2005, 06:24 PM
Anybody have a list for templates that need edited? (Like all the ones with a body place, that could use the spell checke)
They're listed at the bottom of the forst post :)
King Kovifor
10-12-2005, 07:30 PM
Are they the only ones?
tamarian
10-12-2005, 08:14 PM
Are they the only ones?
I think so, if anyone knows of any other templates please let me know.
GoTTi
10-14-2005, 02:26 PM
/me bumps tamarian and this thread
so hows that update lookin?
a squared
10-16-2005, 02:57 AM
<font color="DarkGreen">Installed</font>
Very nice, very clean. However, I would suggest correcting the spelling of Thesaurus on the "Thesarus" button and expanding the dictionary.
GoTTi
10-16-2005, 04:57 PM
what was updated tam?
akanevsky
10-16-2005, 04:59 PM
A few questions:
1. Does this work in Opera?
2. Is there a way to add languages/dictionaries?
3. If Q1=YES, why isn't this used in standard vB instead of what they currently use?
tamarian
10-16-2005, 05:03 PM
what was updated tam?
Who's tam? :) Nothing updated yet. Be patient :)
tamarian
10-16-2005, 05:07 PM
A few questions:
1. Does this work in Opera?
2. Is there a way to add languages/dictionaries?
3. If Q1=YES, why isn't this used in standard vB instead of what they currently use?
1. Yes
2. Somewhat tricky and depends on the language. A better alternative for other languages is PungoSpell.
3. vB uses client side spell checker, ieSpell, which is IE only, Windows only and English only, (I think).
akanevsky
10-16-2005, 05:41 PM
2. Ok, for PungoSpell - does that work in Opera? And how do I add, say, Russian?
3. That's why they should use a more universal spell checker like this one.
tamarian
10-16-2005, 05:53 PM
2. Ok, for PungoSpell - does that work in Opera? And how do I add, say, Russian?
Yes, it does work in Opera. For Russian, it's as simply as specifiying 'ru' in the PungoSpell config. (Provided that your server has the Aspell Russian dictionary installed.).
3. That's why they should use a more universal spell checker like this one.
You might be interested in checking this thread:
http://www.vbulletin.com/forum/showthread.php?t=143231
akanevsky
10-16-2005, 06:02 PM
Yes, it does work in Opera. For Russian, it's as simply as specifiying 'ru' in the PungoSpell config. (Provided that your server has the Aspell Russian dictionary installed.).
What about specifying more than one language?
You might be interested in checking this thread:
http://www.vbulletin.com/forum/showthread.php?t=143231
Thanks, will check it out.
tamarian
10-16-2005, 06:08 PM
What about specifying more than one language?
Could be hacked. Add a dropdown list of languages you want next to the spell button, set the value to the PSPELL language identifier like 'en' 'ru' 'fr', and pass the value to Pungospell.php. In the config section, replacelanguage variable with the value from the dropdown list. I haven't tried it, but it should work.
akanevsky
10-16-2005, 06:11 PM
Thanks :)
GoTTi
10-17-2005, 03:17 AM
oh the update thing says today, just wondering...lookin forward to the secondary usergroups...
tamarian
10-17-2005, 07:35 AM
oh the update thing says today, just wondering
Oh, that. I just updated the description :) When there's a code update, I will use the update notification, which will send out an email with the update summary, and upgrade instructions.
bada_bing
10-18-2005, 11:37 AM
My vbspell stopped working??? When I click the spell check it launches the other vbspell.php window but nothing happens. It never starts just a white page. Now what happen I have not made any changes that I am aware of?
tamarian
10-18-2005, 02:21 PM
My vbspell stopped working??? When I click the spell check it launches the other vbspell.php window but nothing happens. It never starts just a white page. Now what happen I have not made any changes that I am aware of?
You might want to re-install.
bada_bing
10-18-2005, 02:32 PM
How can I reinstall it without redoing the whole think. I did not install the original hack so if you can walk me through how or what file I need to re-install
tamarian
10-18-2005, 03:42 PM
How can I reinstall it without redoing the whole think. I did not install the original hack so if you can walk me through how or what file I need to re-install
You don't have to re-install, but it might be easier than investigating why it stopped working, what was deleted, or which templates got edited. To re-install, just run the install script and click uninstall, then follow the installation steps in the first post.
bada_bing
10-18-2005, 05:52 PM
You don't have to re-install, but it might be easier than investigating why it stopped working, what was deleted, or which templates got edited. To re-install, just run the install script and click uninstall, then follow the installation steps in the first post.
If I run the uninstall and then reinstall it do I have to modify all the templates again or can I just tun the install.php file ?
tamarian
10-18-2005, 06:15 PM
If I run the uninstall and then reinstall it do I have to modify all the templates again or can I just tun the install.php file ?
Run install first, and upload the files. If things still don't work, that would mean there was a template change that made it stop working, in which case you need to re-apply the template edits.
OneTake
10-18-2005, 09:19 PM
I'm probably being stupid but when I try to add this to my PM's, I can't find any the locations to put the first bit of code.. for the javascript.. I did figure out whre to put the button so that appears but when I click it, I get a js error in my status bar and nothing happens..
What's the step by step to add spellcheck to PM's??
One-Take
King Kovifor
10-19-2005, 06:44 PM
BTW, Safari Doesn't load the spell checker.
OneTake
10-20-2005, 09:32 PM
I'm probably being stupid but when I try to add this to my PM's, I can't find any the locations to put the first bit of code.. for the javascript.. I did figure out whre to put the button so that appears but when I click it, I get a js error in my status bar and nothing happens..
What's the step by step to add spellcheck to PM's??
One-Takebump...
tamarian
10-20-2005, 09:38 PM
bump...
USERCP_SHELL just add the first change (A) here in above the </head section. Required for pm_newpm and modifysignature.
So changes B and C go into pm_newpm.
OneTake
10-21-2005, 09:16 PM
Excellent Tamarian!!
Got it all working, just excellent! Thanks so much for doing this! I've been wanting spellcheck on my board for ages, this is just great, working fine and seems not to push server load too badly..
THANKS!!
GoTTi
10-26-2005, 09:52 AM
hey i didnt get a email saying u upgraded the version
GoTTi
10-26-2005, 09:53 AM
also there is no instrucitons in the updated zip...is there a upgrade option with the install?
tamarian
10-26-2005, 01:16 PM
hey i didnt get a email saying u upgraded the version
Is your email correct in userCP?
To upgrade, just upload the new files to overwrite the old ones.
GoTTi
10-27-2005, 06:29 AM
i dont have to run the install?
iardon
11-01-2005, 10:26 PM
So I uploaded the files (in ascii) and tried to run the install but got this error...
Fatal error: Call to a member function on a non-object in /home/entermyw/public_html/temp/vbtest/admincp/vbspell_install.php on line 259
Any help appreciated.
Oops.. just realized this is for 3.0 and I'm running 3.5. :laugh:
SHD Born2Fight
11-07-2005, 02:14 PM
Where can I get more language packs especially german language ?
thanks
a squared
12-27-2005, 02:17 AM
With the 12/25/05 release do the vB files have to be hacked again? Or, are we to upload and run the installer?
Thanks
Mike
tamarian
12-27-2005, 02:27 AM
With the 12/25/05 release do the vB files have to be hacked again? Or, are we to upload and run the installer?
No, just upload vbspell.php to overwrite the old one.
a squared
12-27-2005, 02:52 AM
Thanks for the quick reply and updated file! Must have been the quickest update yet, took less than 2 seconds.
bada_bing
12-27-2005, 04:22 PM
I have installed this great addition but an a bit confussed about where and what templates to edit for newpm and reply to a pm?
can someone please reply with exacly what code goes where and what templates to edit as the original instructions are a bit confussing about PM's
Thanks
hugojr
01-27-2006, 05:13 PM
do they have this for 3.0.9? please let me know
tamarian
01-28-2006, 09:11 PM
do they have this for 3.0.9? please let me know
This should work for 3.0.x
Doug Nelson
09-21-2006, 02:12 PM
Is there any way to add words permanently to the dictionary after installation, such as technical terms, etc., that might be commonly used by everyone in my forum?
Dr.NoTime
02-16-2007, 02:10 PM
I am trying to do the install. When I do I am getting this error.
Adding Settings
Fatal error: Call to a member function on a non-object in /home/......../forums/admincp/vbspell_install.php on line 259
Any help would be appreciated.
QuickGold
02-12-2009, 01:14 PM
Where do I download dictionary_sql_for_php_cgi.zip from? I don't see any link
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.