|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Return to 2.5ish message layout - How to? [message #20782 is a reply to message #16946] |
Thu, 28 October 2004 20:19 ![Go to previous message Go to previous message](/forum/theme/default/images/up.png) ![Go to next message Go to next message](/forum/theme/default/images/down.png) |
D9rr
![United States United States](/forum/images/flags/us.png) Messages: 12 Registered: October 2004
Karma: 0
|
Junior Member |
|
|
How to ask questions the smart way.
http://www.catb.org/~esr/faqs/smart-questions.html#before ->
Quote: | When you ask your question, display the fact that you have done these things first; this will help establish that you're not being a lazy sponge and wasting people's time. Better yet, display what you have learned from doing these things. We like answering questions for people who have demonstrated that they can learn from the answers.
Never assume you are entitled to an answer. You are not; you aren't, after all, paying for the service. You will earn an answer, if you earn it, by asking a question that is substantial, interesting, and thought-provoking — one that implicitly contributes to the experience of the community rather than merely passively demanding knowledge from others.
|
Dean
[Updated on: Thu, 28 October 2004 20:20] Report message to a moderator
|
|
|
|
|
|
|
Re: Return to 2.5ish message layout - How to? [message #21736 is a reply to message #16946] |
Mon, 13 December 2004 16:54 ![Go to previous message Go to previous message](/forum/theme/default/images/up.png) ![Go to next message Go to next message](/forum/theme/default/images/down.png) |
dennisp
![Belize Belize](/forum/images/flags/bz.png) Messages: 49 Registered: December 2004 Location: Belize
Karma: 0
|
Member |
|
|
<tr><td class="MsgSpacer">
<table width="100%" cellspacing=0 cellpadding=0 class="MsgTable" style="border-bottom-width: 0px;">
<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" style="border-top-width: 0px;">
<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_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 class="msgud">{TEMPLATE-DATA: buddy_link}</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 align=right>{TEMPLATE-DATA: ignore_link}<br>{TEMPLATE-DATA: report_to_mod_link}</td></tr>
</table>
</td></tr>
{TEMPLATE-DATA: message_toolbar}
</table></td></tr>
[Updated on: Mon, 21 February 2005 10:54] Report message to a moderator
|
|
|
Re: Return to 2.5ish message layout - How to? [message #21874 is a reply to message #16946] |
Thu, 23 December 2004 03:15 ![Go to previous message Go to previous message](/forum/theme/default/images/up.png) ![Go to next message Go to next message](/forum/theme/default/images/down.png) |
SergK
![Ukraine Ukraine](/forum/images/flags/ua.png) Messages: 1 Registered: December 2004 Location: Ukraine, Simferopol
Karma: 0
|
Junior Member |
|
|
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
|
|
|
|
|
|
|
Re: Return to 2.5ish message layout - How to? [message #22114 is a reply to message #22070] |
Sun, 16 January 2005 13:31 ![Go to previous message Go to previous message](/forum/theme/default/images/up.png) ![Go to next message Go to next message](/forum/theme/default/images/down.png) |
dennisp
![United States United States](/forum/images/flags/us.png) Messages: 49 Registered: December 2004 Location: Belize
Karma: 0
|
Member |
|
|
Chris,
I am not getting the same error message as you posted. I visited your site. I also noticed that you have changed the theme on your site. It appears that you have done some changes to other parts of the code which I am not familiar with. You might have made a small mistake somewhere thats causing it to error out with the error message that I am getting now on viewing a post on your site.
FYI, the code I posted was done on 2.6.8
I just tried it on 2.6.9 and it seems to work fine.
BTW ikemuc, the change "{TEMPLATE: dmsg_post_date}" to "{TEMPLATE-DATA: dmsg_post_date}" does not work for me, i.e. I set it to Template: dmsg_post_date beacuse thats what it was at first and that works for me. I wonder why you would be getting that error that it does not recognize that variable...maybe Ilia can help..
ikemuc which version are you using?
Chris I noticed that you are using 2.6.9 on your site. The code i posted should be working fine unless you modified code elsewhere that might have affected it.
BTW, the two variables: {TEMPLATE-DATA: buddy_link} and {TEMPLATE-DATA: report_to_mod_link} have been split up. It was originally {TEMPLATE-DATA: dmsg_bd_il}. Thsi variable combines both of them into one. I did not like them like that and therefore I split them up..actually it was not me who split them...., they have been defined individually elsewhere, I just called them by their individual names .
According to the errors you posted, it means that those split variables are undefined in your theme or src for some reason. did you do vast modification?
Chris, Copy and paste the code again. I changed the {TEMPLATE-DATA: dmsg_post_date}" back to "{TEMPLATE: dmsg_post_date}. Also, after you have copied the code, if you get the same errors you can re-combine the ignore user and buddy list link. Delete {TEMPLATE-DATA: buddy_link} and {TEMPLATE-DATA: report_to_mod_link} and in any one of the places insert {TEMPLATE-DATA: dmsg_bd_il}. That should hopefully fix it. I still don't understand why it would work for me and not for you. Weird. Anyhow. Best of luck,
regards
Dennis
|
|
|
Re: Return to 2.5ish message layout - How to? [message #23372 is a reply to message #16946] |
Mon, 14 March 2005 15:19 ![Go to previous message Go to previous message](/forum/theme/default/images/up.png) ![Go to next message Go to next message](/forum/theme/default/images/down.png) |
dennisp
![Belize Belize](/forum/images/flags/bz.png) Messages: 49 Registered: December 2004 Location: Belize
Karma: 0
|
Member |
|
|
Here is the message entry code that makes a message look more like the pre 2.6 ver of FudForum.
Tested with Ver 2.6.11 Final
Toggle Spoiler
*******************************************
<tr>
<td class="MsgSpacer">
<table cellspacing=0 cellpadding=0 border=1 width="100%">
<tr>
<td width="175px" class="MsgR2 vt ac" style="padding-top: 1ex; border-right: 0px; border-bottom: 0px;">
<table cellspacing=0 cellpadding=0 border=0 width="100%">
<tr><td class="MsgR2 ac" style="border-bottom: 0px;">
{TEMPLATE-DATA: online_indicator}{TEMPLATE-DATA: user_link}</td></tr>
<tr><td class="MsgR2 ac" style="border-bottom: 0px;">
{TEMPLATE-DATA: avatar}</td></tr>
<tr><td class="MsgR2 ac" style="border-bottom: 0px;">
{TEMPLATE-DATA: dmsg_tags}</td></tr>
<tr><td class="MsgR2 ac" style="border-bottom: 0px;">
{TEMPLATE-DATA: dmsg_user_info}</td></tr>
<tr><td class="MsgR2 ac" style="border-bottom: 0px;">
{TEMPLATE-DATA: dmsg_im_row}</td></tr>
<tr><td class="MsgR2 ac" style="border-bottom: 0px;">
{TEMPLATE-DATA: host_name}</td></tr>
<tr><td class="MsgR2 ac" style="border-bottom: 0px;">
{TEMPLATE-DATA: ip_address}</td></tr>
<tr><td class="MsgR2 ac" style="border-bottom: 0px;">
{TEMPLATE-DATA: buddy_link}</td></tr>
</table>
</td>
<td class="vt" style="background: #F4F4F4; border-bottom: 0px;">
<table cellspacing=0 cellpadding=0 border=0 width="100%">
<tr>
<td>
<table cellspacing=0 cellpadding=0 border=0 width="100%">
<tr>
<td class="MsgR1 vt al">
<a name="msg_num_{VAR: m_num}"></a>
<a name="msg_{VAR: obj->id}"></a>{TEMPLATE-DATA: msg_icon}{VAR: obj->subject}<br>{TEMPLATE-DATA: rpl}
</td>
<td class="MsgR1 vt ar" height="100%">
<span class="DateText">{TEMPLATE: dmsg_post_date}</span>
{TEMPLATE-DATA: prev_message}{TEMPLATE-DATA: next_message}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="MsgR3" style="border-bottom-width: 0px;">
{TEMPLATE-DATA: msg_body}{TEMPLATE-DATA: drawmsg_file_attachments}
{TEMPLATE-DATA: modified_message}{TEMPLATE-DATA: signature}
</td>
</tr>
<tr>
<td class="MsgR3 ar" style="border-bottom-width: 0px;">
{TEMPLATE-DATA: ignore_link}<br>{TEMPLATE-DATA: report_to_mod_link}
</td>
</tr>
</table>
</td>
</tr>
{TEMPLATE-DATA: message_toolbar}
</table>
</td>
</tr>
******************************************************
[Updated on: Mon, 14 March 2005 18:26] Report message to a moderator
|
|
|
|
Re: Return to 2.5ish message layout - How to? [message #26884 is a reply to message #21874] |
Fri, 19 August 2005 05:05 ![Go to previous message Go to previous message](/forum/theme/default/images/up.png) ![Go to next message Go to next message](/forum/theme/default/images/down.png) |
![](/forum/images/custom_avatars/1510.png) |
Astoria
![United States United States](/forum/images/flags/us.png) Messages: 227 Registered: April 2004
Karma: 0
|
Senior Member |
|
|
Version 2.7 seems to no longer have "message_entry" in drawmsg.tmpl. Where has the message layout gone?
Edit: D'oh! Never mind -- it shows up in my "default" template set, but not in the test set I created. I will try recreating the test template set.
addendum: update was successful. Sebastian_T's code above is functional in V2.7.0RC1
[Updated on: Fri, 19 August 2005 06:27] Report message to a moderator
|
|
|
Re: Return to 2.5ish message layout - How to? [message #27118 is a reply to message #16946] |
Sat, 27 August 2005 03:50 ![Go to previous message Go to previous message](/forum/theme/default/images/up.png) ![Go to next message Go to next message](/forum/theme/default/images/down.png) |
![](/forum/images/custom_avatars/1510.png) |
Astoria
![United States United States](/forum/images/flags/us.png) Messages: 227 Registered: April 2004
Karma: 0
|
Senior Member |
|
|
Here is my candidate for a side-format message_entry template. Seems to work well so far with V 2.7.1.
Toggle Spoiler<tr>
<td class="MsgSpacer">
<table cellspacing=0 cellpadding=0 class="ContentTable">
<tr>
<td colspan=2>
<table cellspacing=0 cellpadding=0 class="ContentTable">
<td class="MsgR1 vt al MsgSubText">
<a name="msg_num_{VAR: m_num}"></a><a name="msg_{VAR: obj->id}"></a>{IF: $obj->icon && !$hide_controls}<img src="images/message_icons/{VAR: obj->icon}" alt="{VAR: obj->icon}" /> {ENDIFI}{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>
</table>
</td>
</tr>
<tr>
<td Class="MsgR2" rowspan="2" width="15%" valign="top">
<table cellspacing="0" cellpadding="5">
<tr class="MsgR2">{TEMPLATE-DATA: avatar}
</tr>
<tr>
<td class="MsgR2">
{TEMPLATE-DATA: online_indicator}
{TEMPLATE-DATA: user_link}
{IF: !$hide_controls}{IF: $obj->user_id}<br /><b>{MSG: posts_c}</b> {VAR: obj->posted_msg_count}<br /><b>{MSG: registered}</b>
{TEMPLATE: dmsg_join_date}
{TEMPLATE-DATA: location}{ENDIFI}{ENDIFI}
</td>
</tr>
<tr class="MsgR2">
<td>
{TEMPLATE-DATA: dmsg_tags}
</td>
</tr>
<tr class="MsgR2">
<td>
{TEMPLATE-DATA: dmsg_im_row}
{IF: !$hide_controls}{IF: ($obj->host_name && $o1 & 268435456)}<b>{MSG: from}</b> {VAR: obj->host_name}<br />{ENDIFI}{IF: ($b & 1048576 || $usr->md || $o1 & 134217728)}<b>{MSG: dmsg_ip}</b> <a href="{TEMPLATE: dmsg_ip_address_url}" target="_blank">{VAR: obj->ip_addr}</a>{ENDIFI}{ENDIFI}
</td>
</tr>
</table>
</td>
<td class="MsgR3" width="85%" valign="middle">
{TEMPLATE-DATA: msg_body}{TEMPLATE-DATA: drawmsg_file_attachments}
{TEMPLATE-DATA: modified_message}{IF: !$hide_controls}{IF: ($obj->sig && $o1 & 32768 && $obj->msg_opt & 1 && $b & 4096 && !($a & 67108864))}<p /><hr class="sig" />{VAR: obj->sig}{ENDIFI}{ENDIFI}
</td>
</tr>
<tr class="MsgR3">
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="msgot">
{TEMPLATE-DATA: buddy_link}
</td>
<td class="msgot">
{TEMPLATE-DATA: ignore_link}
</td>
<td class="msgot">
{IF: !$hide_controls}{TEMPLATE: dmsg_report_to_mod_link}{ENDIFI}
</td>
</tr>
</table>
</td>
{IF: !$hide_controls}{TEMPLATE: dmsg_message_toolbar}{ENDIFI}
</tr>
</table>
</td>
</tr>
edit: "ContentTable" class in sub tables was messing up page format -- removed
[Updated on: Sun, 02 July 2006 23:08] Report message to a moderator
|
|
|
Re: Return to 2.5ish message layout - How to? [message #30277 is a reply to message #27118] |
Wed, 15 February 2006 11:55 ![Go to previous message Go to previous message](/forum/theme/default/images/up.png) ![Go to next message Go to next message](/forum/theme/default/images/down.png) |
![](/forum/images/custom_avatars/3059.gif) |
Mal'ton
![Satellite Provider Satellite Provider](/forum/images/flags/a2.png) Messages: 1 Registered: February 2006
Karma: 0
|
Junior Member |
|
|
V 2.7.3. ![Wink](images/smiley_icons/icon_wink.gif)
drawmsg.tmpl____message_entry
<tr><td class="MsgSpacer"><table cellspacing=0 cellpadding=0 class="MsgTable">
<tr>
<td colspan=2><table cellspacing=0 cellpadding=0 class="ContentTable"><td class="MsgR1 vt al MsgSubText" width="85%"><a name="msg_num_{VAR: m_num}"></a><a name="msg_{VAR: obj->id}"></a>{IF: $obj->icon && !$hide_controls}<img src="images/message_icons/{VAR: obj->icon}" alt="{VAR: obj->icon}" /> {ENDIFI}{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></table></td></tr>
<tr class="MsgR2">
<td class="MsgR2" width="15%" valign="top">
<table cellspacing="0" cellpadding="0" class="ContentTable"><tr class="MsgR2">{TEMPLATE-DATA: online_indicator}{TEMPLATE-DATA: user_link}{IF: !$hide_controls}{IF: $obj->user_id}<br />{TEMPLATE-DATA: avatar}<tr class="MsgR2"><td class="msgud">{TEMPLATE-DATA: dmsg_tags}</td></tr><tr class="MsgR2"> <td class="msgud">{MSG: posts_c}{VAR: obj->posted_msg_count}<br />
{MSG: registered}{TEMPLATE: dmsg_join_date} {TEMPLATE-DATA: location}{ENDIFI}{ENDIFI}</td></tr><tr class="MsgR2"><td class="msgud">{TEMPLATE-DATA: dmsg_bd_il}{TEMPLATE-DATA: dmsg_im_row}{IF: !$hide_controls}{IF: ($obj->host_name && $o1 & 268435456)}{MSG: from}{VAR: obj->host_name}<br />{ENDIFI}{IF: ($b & 1048576 || $usr->md || $o1 & 134217728)}{MSG: dmsg_ip} <a href="{TEMPLATE: dmsg_ip_address_url}" target="_blank">{VAR: obj->ip_addr}</a>{ENDIFI}{ENDIFI}</td></tr></table></td>
<td class="MsgR3" width="85%" valign="top">{TEMPLATE-DATA: msg_body}{TEMPLATE-DATA: drawmsg_file_attachments}
{TEMPLATE-DATA: modified_message}{IF: !$hide_controls}{IF: ($obj->sig && $o1 & 32768 && $obj->msg_opt & 1 && $b & 4096 && !($a & 67108864))}<p /><hr class="sig" />{VAR: obj->sig}{ENDIFI}{TEMPLATE: dmsg_report_to_mod_link}{ENDIFI}
</td></tr>{IF: !$hide_controls}{TEMPLATE: dmsg_message_toolbar}{ENDIFI}</table></td></tr>
drawpmsg.tmpl____private_message_entry
<tr><td><table cellspacing=0 cellpadding=0 class="MsgTable">
<tr>
<td class="MsgR1 al vt MsgSubText">{IF: !$mini && $obj->icon}{TEMPLATE: dpmsg_msg_icon}{ENDIFI}{VAR: obj->subject}</td>
<td class="MsgR1 vt ar DateText">{TEMPLATE: dmsg_post_date}</td>
</tr>
<tr class="MsgR2">
<td class="MsgR2" width="15%" valign="top">
<table cellspacing="0" cellpadding="0" class="ContentTable"><tr class="MsgR2">{TEMPLATE-DATA: online_indicator}{TEMPLATE: dpmsg_profile_link}{IF: !$mini}{IF: $obj->user_id}<br />{TEMPLATE-DATA: avatar}<tr class="MsgR2"><td class="msgud">{TEMPLATE-DATA: dmsg_tags}</td></tr><tr class="MsgR2"> <td class="msgud">{MSG: posts_c}{VAR: obj->posted_msg_count}<br />
{MSG: registered}{TEMPLATE: dmsg_join_date} {TEMPLATE-DATA: location}{ENDIFI}{ENDIFI}<br />{TEMPLATE-DATA: buddy_link}<br /></td></tr><tr class="MsgR2"><td class="msgud">{TEMPLATE-DATA: dmsg_im_row}</td></tr></table></td>
<td class="MsgR3" width="85%" valign="top">{TEMPLATE-DATA: msg_body}{TEMPLATE-DATA: file_attachments}{IF: ($obj->sig && $o1 & 32768 && $obj->pmsg_opt & 1 && $b & 4096)}<p /><hr class="sig" />{VAR: obj->sig}{ENDIFI}</td></tr>{TEMPLATE-DATA: msg_toolbar}
<tr><td class="MsgR2 ac" colspan=2>{GVAR: dpmsg_prev_message} {GVAR: dpmsg_next_message}</td></tr>
</table></td></tr>
[Updated on: Sat, 18 February 2006 22:45] Report message to a moderator
|
|
|
|