Here is my code of message_entry in drawmsg.tmpl for message layout like in 2.5:
<tr><td class="MsgSpacer">
<table width="100%" cellspacing=0 cellpadding=0 class="MsgTable">
<tr>
<td class="MsgR1 vt al MsgSubText"><a name="msg_num_{VAR: m_num}"></a><a name="msg_{VAR: obj->id}"></a>{TEMPLATE-DATA: msg_icon}{VAR: obj->subject}{TEMPLATE-DATA: rpl}</td>
<td class="MsgR1 vt ar"><span class="DateText">{TEMPLATE: dmsg_post_date}</span> {TEMPLATE-DATA: prev_message}{TEMPLATE-DATA: next_message}</td>
</tr>
</table>
<table width="100%" cellspacing=0 cellpadding=0 class="MsgTable">
<tr>
<td class="MsgR2" width="25%" height="100%">
<table cellspacing="0" cellpadding="2" height="100%" class="ContentTable">
<tr><td class="msgud">{TEMPLATE-DATA: online_indicator} {TEMPLATE-DATA: user_link}</td></tr>
<tr>{TEMPLATE-DATA: avatar}</tr>
<tr><td class="msgud">{TEMPLATE-DATA: dmsg_tags}</td></tr>
<tr><td class="msgud">{TEMPLATE-DATA: dmsg_user_info}</td></tr>
<tr><td class="msgud">{TEMPLATE-DATA: dmsg_bd_il}</td></tr>
<tr><td class="msgud">{TEMPLATE-DATA: dmsg_im_row}</td></tr>
<tr><td class="msgud">{TEMPLATE-DATA: host_name}</td></tr>
<tr><td class="msgud">{TEMPLATE-DATA: ip_address}</td></tr>
<tr><td height="100%"> </td></tr>
</table></td>
<td class="MsgR3" height="100%">
<table cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr><td height="100%" valign=top>
{TEMPLATE-DATA: msg_body}{TEMPLATE-DATA: drawmsg_file_attachments}
{TEMPLATE-DATA: modified_message}{TEMPLATE-DATA: signature}
</td></tr>
<tr><td>{TEMPLATE-DATA: report_to_mod_link}</td></tr>
</table>
</td></tr>
{TEMPLATE-DATA: message_toolbar}
</table></td></tr>
I don't think it is optimal, but it just works for me.
Also dmsg_location would be changed to:
<br /><b>{MSG: location} </b><br>
{FUNC: (strlen($obj->location) > $GLOBALS['MAX_LOCATION_SHOW'] ? substr($obj->location, 0, $GLOBALS['MAX_LOCATION_SHOW']) . '...' : $obj->location)}
for decreasing width of location string to fit it in left column
Width of left column could be changed from 25% to another acceptable value.
[Updated on: Thu, 23 December 2004 03:23]
Report message to a moderator