Ich bin gerade dabei einen Spoiler-Mod zu installieren, habe auch ein paar Punkte schon abgearbeitet, komme jetzt jedoch nicht weiter:
Auch wenn es jetzt unübersichtlich wird,
In der Installationsanleitungsteht folgendes:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
f_help = "{L_BBCODE_F_HELP}";
#
#-----[ AFTER, ADD ]------------------------------------------
#
r_help = "{L_BBCODE_R_HELP}";
#
#-----[ FIND ]------------------------------------------
#
('[b]','[/b]','[i]','[/i]',
#
#-----[IN-LINE FIND ]------------------------------------------
#
'[/url]'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
# If you have other added BBcode then move this to the last place.
,'[spoiler]','[/spoiler]'
#
#-----[ FIND ]------------------------------------------
#
<td><span class="genmed">
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td>
#
#-----[ AFTER, ADD ]------------------------------------------
#If you already have an '18' BBcode, manually change '18' to the next even number that you haven't got. e.g. '20'
<td><span class="genmed">
<input type="button" class="button" accesskey="r" name="addbbcode18" value="Spoiler" style="width: 60px" onClick="bbstyle(18)" onMouseOver="helpline('r')" />
</span></td>
#
#-----[ FIND ]------------------------------------------
#
<select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
#
#-----[ REPLACE WITH ]------------------------------------------
#If you already have an '20' or above as the number, manually change '20' to the next even number that you haven't got. e.g. '22'
<select name="addbbcode20" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode20.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
#
#-----[ FIND ]------------------------------------------
#
</select> {L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
#
#-----[ REPLACE WITH ]------------------------------------------
#If you already have an '22' or above as a number, manually change '22' to the next even number that you haven't got. e.g. '24'
</select> {L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
#
Jedoch scheitere ich schon beim ersten "find".
Hier mal meine posting_body.tpl Datei:
Code: Alles auswählen
<script language="javascript" type="text/javascript">
//
// Should really check the browser to stop this whining ...
//
function select_switch(status)
{
for (i = 0; i < document.privmsg_list.length; i++)
{
document.privmsg_list.elements[i].checked = status;
}
}
</script>
<table cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td>{INBOX_IMG}</td>
<td class="nav">{INBOX} </td>
<td>{SENTBOX_IMG}</td>
<td class="nav">{SENTBOX} </td>
<td>{OUTBOX_IMG}</td>
<td class="nav">{OUTBOX} </td>
<td>{SAVEBOX_IMG}</td>
<td class="nav">{SAVEBOX} </td>
</tr>
</table>
<br />
<form method="post" name="privmsg_list" action="{S_PRIVMSGS_ACTION}">
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td>{POST_PM_IMG}</td>
<td class="nav" width="100%"> <a href="{U_INDEX}">{L_INDEX}</a>
<!-- BEGIN switch_box_size_notice -->
» {BOX_SIZE_STATUS}
<!-- END switch_box_size_notice -->
</td>
<td nowrap="nowrap" class="nav">{PAGINATION}</td>
</tr>
</table>
<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
<tr>
<th colspan="2">{L_SUBJECT}</th>
<th>{L_FROM_OR_TO}</th>
<th>{L_DATE}</th>
<th>{L_MARK}</th>
</tr>
<!-- BEGIN listrow -->
<tr>
<td class="{listrow.ROW_CLASS}" align="center" height="30"><a href="{listrow.U_READ}"><img src="{listrow.PRIVMSG_FOLDER_IMG}" alt="{listrow.L_PRIVMSG_FOLDER_ALT}" title="{listrow.L_PRIVMSG_FOLDER_ALT}" /></a></td>
<td width="100%" class="{listrow.ROW_CLASS}"><a href="{listrow.U_READ}" class="topictitle">{listrow.SUBJECT}</a></td>
<td align="center" class="{listrow.ROW_CLASS}"> <a href="{listrow.U_FROM_USER_PROFILE}" class="genmed">{listrow.FROM}</a> </td>
<td nowrap="nowrap" width="15%" align="center" class="{listrow.ROW_CLASS}"><span class="gensmall"> {listrow.DATE} </span></td>
<td width="5%" align="center" class="{listrow.ROW_CLASS}">
<input type="checkbox" name="mark[]2" value="{listrow.S_MARK_ID}" /></td>
</tr>
<!-- END listrow -->
<!-- BEGIN switch_no_messages -->
<tr>
<td height="40" colspan="5" align="center" class="row1">{L_NO_MESSAGES}</td>
</tr>
<!-- END switch_no_messages -->
<tr>
<td height="28" colspan="5" align="right" class="row3"> {S_HIDDEN_FIELDS}
<input type="submit" name="save" value="{L_SAVE_MARKED}" class="catbutton" />
<input type="submit" name="delete" value="{L_DELETE_MARKED}" class="catbutton" />
<input type="submit" name="deleteall" value="{L_DELETE_ALL}" class="catbutton" />
<input type="button" name="markall" value="{L_MARK_ALL}" onclick="javascript:select_switch(true);" class="catbutton" />
<input type="button" name="unmarkall" value="{L_UNMARK_ALL}" onclick="javascript:select_switch(false);" class="catbutton" />
</td>
</tr>
<tr align="center">
<td class="cat" colspan="5"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="gensmall" nowrap="nowrap">{L_DISPLAY_MESSAGES}: </td>
<td><select name="msgdays">{S_SELECT_MSG_DAYS}</select> </td>
<td><input type="submit" value="{L_GO}" name="submit_msgdays" class="catbutton" /></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" cellspacing="2" border="0" cellpadding="2">
<tr>
<td>{POST_PM_IMG}</td>
<td class="nav" width="100%"> <a href="{U_INDEX}">{L_INDEX}</a>
<!-- BEGIN switch_box_size_notice -->
» {BOX_SIZE_STATUS}
<!-- END switch_box_size_notice -->
</td>
<td align="right" nowrap="nowrap" class="nav">{PAGINATION}
</td>
</tr>
</table>
</form>
<table width="100%" cellspacing="2" border="0" cellpadding="2">
<tr>
<td><br />{JUMPBOX}</td>
</tr>
</table>