MyBB Community Forums

Full Version: Post icon removal on private.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm trying to remove the post icon column from private.php, I've been looking in the 'private' template, but I'm not 100% sure what I should be looking for, I tried removing a few lines of code in places to get rid of the column but I had no success.

Here's the 'private' template:

<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->private_messaging}</title>
{$headerinclude}
</head>
<body>
{$header}
<form action="private.php" method="post" name="pmForm">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table width="100%" border="0" align="center">
<tr>
{$usercpnav}
<td valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="trow1">{$pmspacebar}<span class="smalltext"><a href="private.php">{$lang->inbox}</a> | <a href="private.php?action=send">{$lang->compose_message2}</a> | <a  href="private.php?action=folders">{$lang->manage_folders}</a> | <a  href="private.php?action=empty">{$lang->empty_folders2}</a> | <a href="private.php?action=export">{$lang->export_messages2}</a></span></td>
</tr>
</table>
</td>
</tr>
</table>
<br />
{$limitwarning}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="6">
	<div class="float_right">
	<input type="text" name="keywords" value="{$lang->enter_keywords}" onfocus="if(this.value == '{$lang->enter_keywords}') { this.value = ''; }" onblur="if(this.value=='') { this.value='{$lang->enter_keywords}'; }" class="textbox" size="25" />
	<input type="submit" class="button" name="quick_search" value="{$lang->search_pms}" />
	(<a href="private.php?action=advanced_search">{$lang->advanced_search}</a>)</div>
	<strong>{$lang->pms_in_folder}</strong></td>
</tr>
<tr>
<td class="tcat" align="center" colspan="3"><span class="smalltext"><strong>{$lang->message_title}</strong></span></td>
<td class="tcat" align="center" width="30%" style="white-space: nowrap"><span class="smalltext"><strong>{$sender}</strong></span></td>
<td class="tcat" align="right"  width="20%" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->date_sent}</strong></span></td>
<td class="tcat" align="center" width="1%" style="white-space: nowrap"><span class="smalltext"><input name="allbox" title="{$lang->check_all}" type="checkbox" class="checkbox checkall" value="{$lang->check_all}" /></span></td>
</tr>
{$messagelist}
<tr>
<td class="tfoot" align="right" colspan="6">
<input type="submit" class="button" name="moveto" value="{$lang->move_to}" /> {$folderoplist} {$lang->or}
<input type="submit" class="button" name="delete" value="{$lang->delete}" /> {$lang->selected_messages}
</td>
</tr>
</table>
<br />
<div class="float_left">{$multipage}</div>
<div class="float_right">
<span class="smalltext">
<strong>{$lang->jump_folder} {$folderjump}
<input type="submit" class="button" name="hop" value="{$lang->go}" />
</strong>
</span>
</div>
</td>
</tr>
</table>
<input type="hidden" name="action" value="do_stuff" />
</form>
{$footer}
</body>
</html>

What (If that template) should I be removing to remove the column?

Thanks.



Go to: ACP > Templates > Your theme's Templates > Private Message templates > private_messagebit > find and remove;
<td align="center" class="trow2" width="1%">{$icon}</td>

Now Open private template and find;
<td class="tcat" align="center" colspan="3">
and Change it to;
<td class="tcat" align="center" colspan="2">

Save both templates.
(2011-04-16, 01:39 PM)Yaldaram Wrote: [ -> ]Go to: ACP > Templates > Your theme's Templates > Private Message templates > private_messagebit > find and remove;
<td align="center" class="trow2" width="1%">{$icon}</td>

Now Open private template and find;
<td class="tcat" align="center" colspan="3">
and Change it to;
<td class="tcat" align="center" colspan="2">

Save both templates.

* Diminished wonders why Yaldaram isn't on the support team.

+rep. Thanks.
I need to remove it from usercp.php now. I've got the 'usercp_latest_threads_threads' template open, I removed the line that said '<td align="center" class="{$bgcolor}" width="2%">{$icon}</td>' on and the column was removed, but then the last post column disappeared.

Here's the template's code with the post icon in.

<tr>
<td align="center" class="{$bgcolor}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /></td>
<td align="center" class="{$bgcolor}" width="2%">{$icon}</td>
<td class="{$bgcolor}">{$gotounread}{$thread['displayprefix']}<a href="{$thread['threadlink']}" class="{$new_class}">{$thread['subject']}</a><br /><span class="smalltext">{$thread['author']}</span></td>
<td align="center" class="{$bgcolor}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a></td>
<td align="center" class="{$bgcolor}">{$thread['views']}</td>
<td class="{$bgcolor}" style="white-space: nowrap"><span class="smalltext">{$lastpostdate} {$lastposttime}
<br /><a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
</td>
</tr>
BEFORE
[Image: attachment.php?aid=417]

Removing icons Column From Latest Subscribed Box;

Go to: ACP > Templates > User Control Panel templates > usercp_latest_subscribed > and find;
<td class="tcat" colspan="3">

and Change it to;
<td class="tcat" colspan="2">

Now Go to: Open > userco_latest_subscribed_threads > find and remove the following;
<td align="center" class="{$bgcolor}" width="2%">{$icon}</td>


Removing icons Column From Your Latest Threads Box;

Go to: ACP > Templates > User Control Panel templates > usercp_latest_threads > and find;
<td class="tcat" colspan="3">
and Change it to;
<td class="tcat" colspan="2">

Now open usercp_latest_threads_threads template and find and remove the following;
<td align="center" class="{$bgcolor}" width="2%">{$icon}</td>

AFTER
[Image: attachment.php?aid=418]