Bedank O Mat?

Started by GoldenEye, May 02, 2006, 09:10:20 AM

Previous topic - Next topic

ディン1031


$txt['thank_you_already_set'] = 'Thank you for this thread is set.';
$txt['thank_you_not_set'] = 'Thank you for this thread is not set.';
$txt['locked_thank_you_thread'] = 'Thank you thread is closed.';
$txt['no_thank_you_thread'] = 'No Thank you thread set!';



$txt['thank_you_already_set'] = 'Danke für diesen Thread wurde bereits gesetzt.';
$txt['thank_you_not_set'] = 'Es wurde keine Danke für diesen Thread hinzugefügt!';
$txt['locked_thank_you_thread'] = 'Das Danke Schön des Threades ist gesperrt.';
$txt['no_thank_you_thread'] = 'Dies ist kein Danke Thread!';


Naja, sind die Fehlermeldungen die mein Mod braucht :x. Vielleicht habe ich das etwas blöd geschrieben xD. Aber normalerweise sollte man diese nicht zu gesicht bekommen diese fehler :D. Aber verrückte gibt es immer wieder die sowas ausprobieren :P.

Gruß
DIN1031



Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Jorin

Kannst Du denn von der neuen Version (Danke  :D ) eine deutsche Version mit meiner Übersetzung schüren? Weil ich die deutschen Texte ja sonst wieder retten muss, bevor ich die neue Version einbaue? Oder macht das zuviel Aufwand, dann mach ich das doch selbst?

ディン1031

#22
Och wenn du upgradest brauchst nur einen kleine Änderungen in Sprachfiles einbauen xD.
Der Rest sollte eigenltich auch in der neuen Version gehen. (Ich füge ja keine deutsche Version an meinen Mod xD)

Für Version 1.02

ManageBoards.german.php


$txt['mboards_thank_you_automatic'] = 'Automatisches DANKE';
$txt['mboards_thank_you_automatic_desc'] = 'Es wird einen neuen Thread automatisch ein Danke angefügt.';


Gruß
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Jorin

Danke Dir. Nur noch eine Frage:

Wie kann ich die Zeile für das Thank You unter die Sigantur des Users setzen?

ディン1031

#24
Öhm :x.
Gute frage xD.

Muss ich mal schauen, da ich mir sicher bin da ich es damals glaub ich Direct in den Post eingebaut habe kann es sein das es nicht sehr einfach ist XD. Aber ich guck erst mal :x




Also dazu muste ein bischen was umbauen

Display.php

Suche nach

//I only add to the first post a Thank You List or the link (at the bottom of the post *grin*)
if($counter == 0 && $context['isThankYou']) {
$output['body'] .= doUBBC('[hr]', FALSE).'<font size="1"><span class="smalltext">'.$context['thank_you']['info'].'</span></font>';
}


Ersetzten mit:

//I only add to the first post a Thank You List or the link (at the bottom of the post *grin*)
if($counter == 0 && $context['isThankYou']) {
$output['thank_you'] = '<font size="1"><span class="smalltext">'.$context['thank_you']['info'].'</span></font>';
}


und dann in der

Display.template.php

Suche nach:

// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div class="signature">', $message['member']['signature'], '</div>';


Und füge danach

//Show the Thank You after theSignature
if (!empty($message['thank_you']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div class="smalltext">', $message['thank_you'], '</div>';

ein.

Es ist ungetestet also sicher deine Files vorher :P. Und nur ein erster Gedankengang. Sollte aber gehen ;).

Gruß
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Jorin

Bevor Du guckst, wäre denn auch sowas möglich:

| Beitrag 1
|_______________________|
|
| Thank You
|_______________________|
|
| Beitrag 2
|_______________________|

Ich hoffe, Du verstehst, was ich meine. Wenn nicht, muss ich ne Grafik basteln...

Quasi so, wie es auch beim Joomlaportal.de läuft. Da stehen die Namen derer, die sich bedankt haben, zwischen den Beiträgen. Das zerhaut den Beitrag nicht so und sieht irgendwie aufgeräumter aus, finde ich. Nur ne Idee...

ディン1031

#26
Lol nein das ist mir zuviel arbeit das jetzt auf die schnell zu machen :P auserdem warst zulangsam mit deinen post. War nämlich schon am editieren des postes xD.

Gruß
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Jorin

Trotzdem danke  ;)

Ich hab aber dennoch ein problem. Habs aber im Thread zur Mod gepostet...

Milo81

hi
leider bekomme nach dem einbau des thx´mod nur eine fehler meldung
" Unknown column 'b.thank_you_automatic' in 'field list' "
ich habe die 1.1 rc version
un die aktuelle vom mod.
bin erst heute af diese foren software gestossen find sie sonst schonmal super :)

hoffe mir kann jemand helfen


und gibt es inzwischen die möglichkeit es so darstellen zu lassen (wie berreits ein forgänger wollte!)
Bevor Du guckst, wäre denn auch sowas möglich:

| Beitrag 1
|_______________________|
|
| Thank You
|_______________________|
|
| Beitrag 2
|_______________________|

^^währe echt super

MFG

ディン1031

Quote from: Milo81 on July 03, 2006, 09:49:32 PM
hi
leider bekomme nach dem einbau des thx´mod nur eine fehler meldung
" Unknown column 'b.thank_you_automatic' in 'field list' "
ich habe die 1.1 rc version
un die aktuelle vom mod.
bin erst heute af diese foren software gestossen find sie sonst schonmal super :)

hoffe mir kann jemand helfen


und gibt es inzwischen die möglichkeit es so darstellen zu lassen (wie berreits ein forgänger wollte!)
Bevor Du guckst, wäre denn auch sowas möglich:

| Beitrag 1
|_______________________|
|
| Thank You
|_______________________|
|
| Beitrag 2
|_______________________|

^^währe echt super

MFG

Öhm irgendwie hat er die Tabellen Updates oder Änderungen nicht eingetragen :x... auf jeden fall sieht es ganz danach aus <<.

Schau mal nach ob in der Datenbank in der Tabelle boards ein feld thank_you_automatic exestiert und in der topics ein thank_you feld exestiert. Sollte eines der beiden nicht der fall sein fürhre folgende SQL befehle aus:


ALTER TABLE {$db_prefix}boards ADD thank_you_automatic TINYINT(4) DEFAULT '0' NOT NULL;

oder

ALTER TABLE {$db_prefix}topics ADD thank_you TINYINT(4) DEFAULT '0' NOT NULL;


(Schau auch nach ob es ein thank_you Tabelle gibt... habe das gefühl das diese auch nicht installiert worden ist... -> wenn das der fall ist dann CREATE TABLE IF NOT EXISTS {$db_prefix}thank_you (
ID_THX INT(10) UNSIGNED NOT NULL AUTO_INCREMENT ,
ID_TOPIC MEDIUMINT(8) UNSIGNED NOT NULL ,
ID_MEMBER MEDIUMINT(8) UNSIGNED NOT NULL ,
memberName VARCHAR(80) NOT NULL ,
PRIMARY KEY (ID_THX) ,
INDEX (ID_TOPIC, ID_MEMBER)
) TYPE = MYISAM ;
)

das {$db_prefix} natürlich durch deines ersetzen ;D.

Gruß
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Milo81

danke :) aber habs nochma runtergeworfen und dann mit dem packet manager nochmal gemacht...

keiner ne lössung das der thx mod ein eigenen post macht?
so geht er etwas unter...!?

ディン1031

#31
Quote from: ディン1031 on May 10, 2006, 10:09:37 AM
Öhm :x.
Gute frage xD.

Muss ich mal schauen, da ich mir sicher bin da ich es damals glaub ich Direct in den Post eingebaut habe kann es sein das es nicht sehr einfach ist XD. Aber ich guck erst mal :x




Also dazu muste ein bischen was umbauen

Display.php

Suche nach

//I only add to the first post a Thank You List or the link (at the bottom of the post *grin*)
if($counter == 0 && $context['isThankYou']) {
$output['body'] .= doUBBC('[hr]', FALSE).'<font size="1"><span class="smalltext">'.$context['thank_you']['info'].'</span></font>';
}


Ersetzten mit:

//I only add to the first post a Thank You List or the link (at the bottom of the post *grin*)
if($counter == 0 && $context['isThankYou']) {
$output['thank_you'] = '<font size="1"><span class="smalltext">'.$context['thank_you']['info'].'</span></font>';
}


und dann in der

Display.template.php

Suche nach:

// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div class="signature">', $message['member']['signature'], '</div>';


Und füge danach

//Show the Thank You after theSignature
if (!empty($message['thank_you']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div class="smalltext">', $message['thank_you'], '</div>';

ein.

Es ist ungetestet also sicher deine Files vorher :P. Und nur ein erster Gedankengang. Sollte aber gehen ;).

Gruß
DIN1031

Das war mein Gedankengank es unter den ersten post zu schreiben ;).

Aber da ich nicht weiß ob es geht oder nicht *shrug* habe es nicht ausprobiert. Und bestätigt hat es mir auch keiner ;D, weil wenn es geht ist es kein problem daraus einen extra post zu machen :D, den man dann auf der ersten Seite theoretisch überall hinmachen kann ;).

Gruß
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Jing

Ich checke das net also ich habe schon mal keine ThankYou.german.php datei und kann sie demnach auch nicht ersetzten :D und bei denn anderen Codes muss ich das einfach nur unten anhängen oder wie oder was ???


Ich bin ein Voll Noob :D SRy

ディン1031

Einfach die ThankYou.english.php zu ThankYou.german.php kopieren und da dann die Text einfügen anstatt den englischen.

Beim anderen irgendwo zwischen den zwei <? ?> hineinschreiben xD.

Gruß
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Jing

#34
okay soweit hat alles geklapt aber wie benutze ich das nun im anderns Style ?

mfg

ディン1031

Hmmm siehe FAQs :)

Das sind dir Theme Changes die der Mod macht:

<edit file>
$themedir/Display.template.php
</edit file>

<search for>
else
unset($normal_buttons['custom']);
</search for>

<add after>

//Thank You Button is now where it belongs <<
if (isset($context['thank_you']['premission'])) {
if ($context['thank_you']['premission']['post'])
$normal_buttons['thankyou'] = array('text' => 'd_thank_you', 'image' => 'thank_you.gif', 'lang' => true, 'url' => $scripturl . '?action=thankyoupost;topic=' . $context['current_topic'] . '.0');
elseif ($context['thank_you']['premission']['add'])
$normal_buttons['thankyou'] = array('text' => 'd_thank_you_add', 'image' => 'thank_you_add.gif', 'lang' => true, 'url' => $scripturl . '?action=thankyouadd;topic=' . $context['current_topic'] . '.0');
}
</add after>

<search for>
if ($context['can_remove_post'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
$mod_buttons[] = array('text' => 'quickmod_delete_selected', 'image' => 'delete_selected.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['quickmod_confirm'] . '\');" id="quickmodSubmit"', 'url' => 'javascript:document.quickModForm.submit();');
</search for>

<add before>
if (isset($context['thank_you']['premission']))
$mod_buttons += array(
'lock_thank_you' => array('test' => 'thank_you_lock', 'text' => 'd_thank_you_lock'.$context['ThankYouLockStatus'], 'image' => 'thank_you_lock'.$context['ThankYouLockStatus'].'.gif', 'lang' => true, 'custom' => '', 'url' => $scripturl . '?action=thankyoulock;topic=' . $context['current_topic'] . '.0'),
'remove_thank_you' => array('test' => 'thank_you_delete', 'text' => 'd_thank_you_remove', 'image' => 'thank_you_delete.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['d_thank_you_remove_warn'] . '\');"', 'url' => $scripturl . '?action=thankyouremove;topic=' . $context['current_topic'] . '.0'),
);
</add before>


<edit file>
$themedir/ManageBoards.template.php
</edit file>

<search for>
<td valign="top" align="right">
<input type="checkbox" name="count" ', $context['board']['count_posts'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';
</search for>

<replace>
<td valign="top" align="right">
<input type="checkbox" name="count" ', $context['board']['count_posts'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';

// Here is the Thank You Option for the enable of the Thank you in this board!
echo '
<tr>
<td>
<b>', $txt['mboards_thank_you_topics_enable'], '</b><br />
', $txt['mboards_thank_you_topics_enable_desc'], '<br /><br />
</td>
<td valign="top" align="right">
<input type="checkbox" name="thank_you_topics_enable" ', $context['board']['thank_you_topics_enable'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';
// Here is the New Thank You Option for the Board Premissions
echo '
<tr>
<td>
<b>', $txt['mboards_thank_you_automatic'], '</b><br />
', $txt['mboards_thank_you_automatic_desc'], '<br /><br />
</td>
<td valign="top" align="right">
<input type="checkbox" name="thank_you" ', $context['board']['thank_you_automatic'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';
</replace>

<edit file>
$themedir/Post.template.php
</edit file>

<search for>
<tr>
<td class="smalltext"><label for="check_smileys"><input type="checkbox" name="ns" id="check_smileys"', $context['use_smileys'] ? '' : ' checked="checked"', ' value="NS" class="check" /> ', $txt[277], '</label></td>', '
<td class="smalltext">', $context['can_move'] ? '<input type="hidden" name="move" value="0" /><label for="check_move"><input type="checkbox" name="move" id="check_move" value="1" class="check" /> ' . $txt['move_after2'] . '</label>' : '', '</td>
</tr>', $context['can_announce'] && $context['is_first_post'] ? '
<tr>
<td class="smalltext"><label for="check_announce"><input type="checkbox" name="announce_topic" id="check_announce" value="1" class="check" /> ' . $txt['announce_topic'] . '</label></td>
<td class="smalltext"></td>
</tr>' : '', '
</search for>

<add after>
', $context['can_Thank_you'] && empty($context['isThank_You']) ? '
<tr>
<td class="smalltext"><label for="check_thank_you"><input type="checkbox" name="add_thank_you" id="add_thank_you"' . ($context['add_thank_you'] || $context['thank_you_automatic'] ? ' checked="checked"' : '') . ' value="1" class="check" /> '.$txt['thank_you_after2'].'</label></td>
<td class="smalltext"></td>
</tr>' : '', '
</add after>


Gruß
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Jing

boah ey ich verstehe das nicht kann mir mal einer seine icq oder so geben ich checkt einfach nichts :( PLS

was soll ich denn nu mit dem Code machen den du mir geschickt hast ?
bin absoluter Newby :(

Advertisement: