Spellcheck von Spellingcow

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Telek001
Mitglied
Beiträge: 16
Registriert: 29.08.2005 08:16

Spellcheck von Spellingcow

Beitrag von Telek001 »

wie kann ich dne ausstellen?

Der stört. am liebsten würd ich den deinstallieren aber ausstellen würde ja reichen


hab den AUTO-OFF eingespielt aber der hilft nicht

wie muss dne der SQL eintrag aussehen um das ding auszustellen
Feld Typ Attribute Null Standard
user_autospell tinyint(4) Ja 0

so ist der eintrag jetzt

vielen dank für eure hilfe
Benutzeravatar
wartek
Mitglied
Beiträge: 883
Registriert: 31.05.2005 18:52
Wohnort: Wien

Beitrag von wartek »

Ich schätze Du hast ihn mit EasyMod eingespielt. Da gibts auch ein Deinstall...

wartek
Computers are not intelligent - they only think they are.
Telek001
Mitglied
Beiträge: 16
Registriert: 29.08.2005 08:16

Beitrag von Telek001 »

da sagt er

coming later
Benutzeravatar
wartek
Mitglied
Beiträge: 883
Registriert: 31.05.2005 18:52
Wohnort: Wien

Beitrag von wartek »

Hmmm, dann wirst Du um ein manuelles entfernen nicht herumkommen.

Das erste was Du machen solltest ist Dir Zugang zur Datenbank verschaffen, am besten mit phpMyAdmin.
Dort führst Du folgenden Befehl aus:
ALTER TABLE `phpbb_users` DROP `user_autospell`
Dann löschst Du die Datei ./spell-gw.php
Öffne die Datei posting.php
Finde und lösche
// SPELLINGCOW - begin
'AUTO_SPELL' => $userdata['user_autospell'],
// SPELLINGCOW - end


Öffne die Datei privmsg.php
Finde und lösche
// SPELLINGCOW - begin
'AUTO_SPELL' => $userdata['user_autospell'],
// SPELLINGCOW - end


Öffne die Datei includes/usercp_register.php
Finde und lösche
// SPELLINGCOW - begin
$spellcheck = ( isset($HTTP_POST_VARS['spellcheck']) ) ? ( ($HTTP_POST_VARS['spellcheck']) ? TRUE : 0 ) : TRUE ;
// SPELLINGCOW - end


Finde und lösche
// SPELLINGCOW - begin
$spellcheck = ( isset($HTTP_POST_VARS['spellcheck']) ) ? ( ($HTTP_POST_VARS['spellcheck']) ? TRUE : 0 ) : $userdata['user_autospell'];
// SPELLINGCOW - end


Finde und lösche
user_autospell = $spellcheck,

Finde und lösche
user_autospell,

Finde und lösche
$spellcheck,

Finde und lösche
// SPELLINGCOW - begin
$spellcheck = $userdata['user_autospell'];
// SPELLINGCOW - end


Finde und lösche
// SPELLINGCOW - begin
'ALWAYS_SPELL_CHECK_YES' => ( $spellcheck ) ? 'checked="checked"' : '',
'ALWAYS_SPELL_CHECK_NO' => ( !$spellcheck ) ? 'checked="checked"' : '',
// SPELLINGCOW - end


Finde und lösche
// SPELLINGCOW - begin
'L_ALWAYS_SPELL_CHECK' => $lang['Always_spellcheck'],
// SPELLINGCOW - end


Öffne die Datei /language/lang_english/lang_main.php
Finde und lösche
// SPELLINGCOW - begin
$lang['Always_spellcheck'] = 'Always check Spelling before posting';
// SPELLINGCOW - end

Wiederhole für alle Sprachen.

Öffne die Datei /templates/subSilver/posting_body.tpl
Finde und lösche
// 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


Finde und lösche
// 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


Finde und lösche
<!-- =======================================================================
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 -->


Finde und löschen
onclick="javascript:auto_check_spelling()"

Öffne die Datei templates/subSilver/profile_add_body.tpl
Finde und lösche
<!-- SPELLINGCOW begin -->
<tr>
<td class="row1"><span class="gen">{L_ALWAYS_SPELL_CHECK}:</span></td>
<td class="row2">
<input type="radio" name="spellcheck" value="1" {ALWAYS_SPELL_CHECK_YES} />
<span class="gen">{L_YES}</span>&nbsp;&nbsp;
<input type="radio" name="spellcheck" value="0" {ALWAYS_SPELL_CHECK_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
<!-- SPELLINGCOW end -->


Öffne die Datei templates/subSilver/overall_footer.tpl
Finde und lösche
:: Spelling by <a href="http://www.spellingcow.com/" target="_phpbb" class="copyright">SpellingCow</a><a href="spell-gw.php" target="_phpbb" class="copyright">.</a>

wartek
Computers are not intelligent - they only think they are.
Telek001
Mitglied
Beiträge: 16
Registriert: 29.08.2005 08:16

Beitrag von Telek001 »

vielen dank hat geklappt
Antworten

Zurück zu „phpBB 2.0: Mod Support“