Screenshot, rood omlijnd voor de duidelijkheid:
Wellicht dat er al een dergelijk mod bestaat, maar hij was zó eenvoudig te maken...
Code: Selecteer alles
##############################################################
## MOD Title: Wrap Messages Mod
## MOD Author: etncrew < spambots@hotmail.com > (Oker) http://www.etncrew.com/forum
## MOD Description: Long images or strings will stretch the board, this mod wraps all the
## other messages to the current window width. It also prevents the quote and edit buttons to
## move out of sight. This mod will even work with wide signatures.
## Screenshot: http://img110.exs.cx/img110/310/Untitled-3.gif
## MOD Version: 1.0.5
##
## Installation Level: Easy
## Installation Time: 3 Minutes
## Files To Edit: viewtopic_body.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes: Thanks to Mosymuis (http://www.phpBB.nl) for ideas.
##
##############################################################
## MOD History:
##
## 2004-10-20 - Version 1.0.5
## - Bugfix
##
## 2004-10-20 - Version 1.0.4
## - Added multiple browser support
##
## 2004-10-20 - Version 1.0.3
## - Quote and edit boxes will never be out of sight
## - Mod is now a little bit faster
##
## 2004-10-20 - Version 1.0.1
## - Max width is automaticly set to the current window width with JavaScript.
##
## 2004-10-20 - Version 1.0.0
## - Creation
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- Start Wrap Posts Mod
ADD -->
<script language="javascript" type="text/javascript">
var getSize = document.body.offsetWidth - 205;
function writeTable() {
document.write('<table width="' + getSize + '" style="border:0px dotted #444444" cellpadding="0" cellspacing="0">');
}
</script>
<!-- End Wrap Posts Mod -->
#
#-----[ FIND ]------------------------------------------
#
<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- Start Wrap Posts Mod
ADD -->
<td>
<script language="javascript" type="text/javascript">writeTable();</script>
<tr>
<!-- End Wrap Posts Mod -->
#
#-----[ FIND ]------------------------------------------
#
<td width="100%"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a><span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="gen"> </span> {L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
<td valign="top" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- Start Wrap Posts Mod
ADD -->
</tr>
</table>
</td>
<!-- End Wrap Posts Mod -->
#
#-----[ FIND ]------------------------------------------
#
</tr>
<tr>
<td colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<!-- Start Wrap Posts Mod
REMOVE
</tr>
<tr>
<td colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
ADD -->
</tr>
<tr>
<td colspan="2">
<script language="javascript" type="text/javascript">writeTable();</script>
<tr>
<td><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall"><font style="color: #333333">{postrow.EDITED_MESSAGE}</font></span></td>
</tr>
</table>
</td>
<!-- End Wrap Posts Mod -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Update: versie 1.0.3
Update: versie 1.0.4
Update: versie 1.0.5