 |
SpellingCow.com
Improving forum spelling since... well not very long
|
| View previous topic :: View next topic |
| Author |
Message |
shesteasing
Joined: 20 Dec 2005 Posts: 1
|
Posted: Sat Sep 06, 2008 12:56 pm Post subject: Easy fix if Spelling Cow isn't working in phpBB2 |
|
|
You can stop your forum from calling for Spelling Cow this way:
ftp over your phpbb2/templates/subsilver/posting_body.tpl
open it with an editor like EditPlus
remove this from somewhere around line 76:
// SPELLINGCOW - begin
function auto_check_spelling()
{
// if we are auto checking, set value to 2 so the submit from checkForm will fail; open the checker window
if (document.post.auto_spell_check.value == 1)
{
document.post.auto_spell_check.value = 2 ;
window.open('spell-gw.php?mode=load&form=post&auto=check&source=message&button=post&type=phpBB', '_spellcheck', 'HEIGHT=484,resizable=yes,scrollbars=yes,WIDTH=595');
}
}
// SPELLINGCOW - end
function checkForm() {
formErrors = false;
// SPELLINGCOW - begin
// if we set value to 2, then that means we are auto spell checking, so fail
if (document.post.auto_spell_check.value == 2)
{
// reset our value
document.post.auto_spell_check.value = 1 ;
return false;
}
// SPELLINGCOW - end
then remove this from around line 400:
<!-- =======================================================================
Adjust the spellcheck_data line to use SpellingCow with ANY form and
ANY textarea or textbox. Simply adjust the "value" data as follows:
form: Enter the form name to check. Enter only one form name.
source: Enter the form item to be checked. Later versions will
allow more than one item to be checked!
button: Enter the name of the submit button for the form
type: phpBB, vB, IPB, or other - not used yet, but perhaps
will be in the near future
The following is optimized for a standard phpBB install but you can
make any changes desired regarding style or to accommodate MODs
======================================================================= -->
<!-- SPELL CHECKER -->
<tr align="center">
<td colspan="4">
<input type="hidden" name="auto_spell_check" value="{AUTO_SPELL}">
<input type="button" name="spellcheck" class="liteoption" value="Spell Check"
onClick="window.open('spell-gw.php?mode=load&form=post&source=message&button=post&type=phpBB', '_spellcheck', 'HEIGHT=484,resizable=yes,scrollbars=yes,WIDTH=595');"><br>
<style type="text/css"><!-- .spellcow, a.spellcow { font-size : 8px; color : #FFFFFF; } --></style>
<!-- Removal of the following line may result in suspension of the service by SpellingCow. Come on, linking back to us is not asking much but means a lot to us. Thanks! -->
<span class="spellcow">by <a href="http://www.spellingcow.com" target="_blank" class="spellcow">SpellingCow.com</a><a href="spell-gw.php" target="_blank" class="spellcow">.</a><br>
</td>
</tr>
<!-- SPELL CHECKER -->
FTP the file back over and refresh the page. Now the body will not call for the Spelling Cow. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Sponsors:
Identity Theft Protection - Compare identity theft protection services
Structured Settlements - cash for structured settlements, sell annuity, lottery winnings, and more.
Barcode Scanner Manufacturer - taiwan manufacturer of scanners, swipe card reader, serial-ethernet converter, cash drawer, and other pos devices.
Advice, help & demonstrations for sign makers - Europe's leading sign makers website
Tattoo - we are a group of tattoo enthusiasts
|