Seite 1 von 1
Iframe Smilees
Verfasst: 28.03.2004 19:29
von Both
Hi,
ich will den Iframe Mod mit den Smilees einbauen, bloß
ich hab FISubice.
Kann mir jmd sagen, wie ich es für dieses TPL installiere?
Bloß, es klappt sonstz nicht.
Verfasst: 28.03.2004 19:35
von Mister_X
Link auf den Mod?
Link auf die posting_body.tpl von FIsubIce?
Verfasst: 28.03.2004 19:44
von Both
Verfasst: 28.03.2004 21:09
von Mister_X
posting_body.tpl
suche nach
Code: Alles auswählen
<table width="100" border="0" cellspacing="0" cellpadding="5">
<tr align="center">
<td colspan="{S_SMILIES_COLSPAN}" class="gensmall"><span class="explaintitle">{L_EMOTICONS}</span></td>
</tr>
<!-- BEGIN smilies_row -->
<tr align="center">
<!-- BEGIN smilies_col -->
<td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')">
<img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td>
<!-- END smilies_col -->
</tr>
<!-- END smilies_row -->
<!-- BEGIN switch_smilies_extra -->
<tr align="center">
<td colspan="{S_SMILIES_COLSPAN}" class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=250,resizable=yes,scrollbars=yes,WIDTH=300');return false;" target="_phpbbsmilies">{L_MORE_SMILIES}</a></td>
</tr>
<!-- END switch_smilies_extra -->
</table>
und ersetze dies mit
Code: Alles auswählen
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<iframe src="posting.php?mode=smilies" height="400" width="350" name="zone1" frameborder=no></iframe>
</table>
posting_smilies.tpl
suche nach
Code: Alles auswählen
function emoticon(text) {
text = ' ' + text + ' ';
if (opener.document.forms['post'].message.createTextRange && opener.document.forms['post'].message.caretPos) {
var caretPos = opener.document.forms['post'].message.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
opener.document.forms['post'].message.focus();
} else {
opener.document.forms['post'].message.value += text;
opener.document.forms['post'].message.focus();
}
}
und ersetze dies mit
Code: Alles auswählen
function emoticon(text) {
text = ' ' + text + ' ';
if (parent.post.message.createTextRange && parent.post.message.caretPos) {
var caretPos = parent.post.message.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
parent.post.message.focus();
} else {
parent.post.message.value += text;
parent.post.message.focus();
}
}
suche nach
Code: Alles auswählen
<table width="100" border="0" cellspacing="0" cellpadding="5">
<!-- BEGIN smilies_row -->
<tr align="center">
<!-- BEGIN smilies_col -->
<td>
<a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')">
<img src="{smilies_row.smilies_col.SMILEY_IMG}" alt="{smilies_row.smilies_col.SMILEY_DESC}" border="0" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td>
<!-- END smilies_col -->
</tr>
<!-- END smilies_row -->
<!-- BEGIN switch_smilies_extra -->
<tr align="center">
<td class="nav" colspan="{S_SMILIES_COLSPAN}"><a href="{U_MORE_SMILIES}" onclick="open_window('{U_MORE_SMILIES}', 250, 300);return false" target="_smilies">{L_MORE_SMILIES}</a>
</td>
</tr>
<!-- END switch_smilies_extra -->
</table>
und ersetze dies mit
Code: Alles auswählen
<table width="100" border="0" cellspacing="0" cellpadding="5">
<!-- BEGIN smilies_row -->
<tr align="center" valign="middle">
<!-- BEGIN smilies_col -->
<td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td>
<!-- END smilies_col -->
</tr>
<!-- END smilies_row -->
</table>
ohne Garantie ich habe es nicht getestet, sollte es nicht funktionieren wäre ein Link auf dein Forum schön, damit man sich das Anschauen kann

Verfasst: 28.03.2004 21:46
von Both
Verfasst: 28.03.2004 21:56
von Elvis
Es geht, aber es ist verrutscht:
mhh sieht doch normal aus.
oder was meinste mit verrutscht ?