Smilies in Frame

Probleme bei der regulären Arbeiten mit phpBB, Fragen zu Vorgehensweisen oder Funktionsweise sowie sonstige Fragen zu phpBB im Allgemeinen.
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.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Benutzeravatar
Volker
Mitglied
Beiträge: 213
Registriert: 27.02.2003 09:18
Wohnort: Erzgebirge
Kontaktdaten:

Beitrag von Volker »

hi,

hier ist es

Code: Alles auswählen

## EasyMod 0.0.7 compliant
############################################################## 
## MOD Title: Smilies in iFrame
## MOD Author: Elvis < info@user-for-user.de > (Elvis) http://www.user-for-user.de
## MOD Description: Zeigt alle Smilies ohne Pop Up Fensten im iFrame an.
## MOD Version: 1.0.0 
## 
## Installation Level: easy 
## Installation Time: 5 Minutes 
## Files To Edit: 
## template/subsilver/posting_body.tpl
## template/subsilver/posting_smilies.tpl
##
## Generator: phpBB2 Mod Maker 0.1.67
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 
#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/posting_body.tpl

#
#-----[ FIND ]------------------------------------------
#

<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td><span class="gen"><b>{L_MESSAGE_BODY}</b></span> </td>
</tr>
<tr>
<td valign="middle" align="center"> <br />
<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>
</td>
</tr>
</table>

#
#-----[ REPLACE WITH ]------------------------------------------
#

<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td><span class="gen"><b>{L_MESSAGE_BODY}</b></span> </td>
</tr>
<tr>
<td valign="middle" align="center"> <br />
<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>
</td>
</tr>
</table>

#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/posting_smilies.tpl

#
#-----[ FIND ]------------------------------------------
#

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();
}
}

#
#-----[ REPLACE WITH ]------------------------------------------
#

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();
}
}

#
#-----[ FIND ]------------------------------------------
#

<table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td><table width="100%" border="0" cellspacing="1" cellpadding="4" class="forumline">
<tr>
<th class="thHead" height="25">{L_EMOTICONS}</th>
</tr>
<tr>
<td><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 -->
<!-- BEGIN switch_smilies_extra -->
<tr align="center">
<td colspan="{S_SMILIES_COLSPAN}"><span  class="nav"><a href="{U_MORE_SMILIES}" onclick="open_window('{U_MORE_SMILIES}', 250, 300);return false" target="_smilies" class="nav">{L_MORE_SMILIES}</a></td>
</tr>
<!-- END switch_smilies_extra -->
</table></td>
</tr>
<tr>
<td align="center"><br /><span class="genmed"><a href="javascript:window.close();" class="genmed">{L_CLOSE_WINDOW}</a></span></td>
</tr>
</table></td>
</tr>
</table>

#
#-----[ REPLACE WITH ]------------------------------------------
#

<table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td>
<tr>
<td>
<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></td>
</tr>
</td>
</tr>
</table>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Gruß Volker
Fuchsien
Antworten

Zurück zu „phpBB 2.0: Administration, Benutzung und Betrieb“