Removing "Empty INBOX folder" link from toolbar - Argh!

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Removing "Empty INBOX folder" link from toolbar - Argh!Expand / Collapse
Author
Message
Posted 5/23/2008 6:43:37 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/6/2008 11:09:07 AM
Posts: 2, Visits: 7
Hi -

After the 3rd time accidentally clicking "Empty INBOX folder", I really want it GONE!  Yes, it is completely user error, but sometimes you're just in a hurry and aren't paying attention.

At any rate, there was a post on this forum regarding this:

http://forums.ipswitch.com/Topic37566-10-1.aspx

However, the solution is only to comment out the item with <-- and --> - this would obviously do a global comment out.  I only want to remove the link from the INBOX - it has great value on the Junk or Deleted folders.

So, my question - how can I remove this link programmatically?  Perhaps via some sort of XSLT call?  Perhaps via inline scripting? HELP!!!

Perhaps something like:

<% if (lnkEmptyFolder.Text.Contains("INBOX") { lnkEmptyFolder.Visible=false; } %>

I tried something like this thinking that it might allow inline scripting, but it error out.

Any suggestions would be greatly appreciated!!! 

Thanks,

SeanCon

Post #44074
Posted 5/28/2008 2:46:05 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/6/2008 11:09:07 AM
Posts: 2, Visits: 7
IpSwitch tech support gave me the standard answer (as seen in the linked topic above), so I had to work through this myself - found a solution using a simple snippet of js:

Line 82 in MsgList.aspx... change this:

<td width="100%" nowrap class="outlookTitleCellwithBorder" align="right"><b><ipsILB:ImageLinkButton CssClass="NoUnderlineWhite" id="lnkEmptyFolder" ImageUrl="images/icn_trash_16.gif" ImageAlign="absmiddle" Text="" runat="server"></ipsILB:ImageLinkButton></b>&nbsp;&nbsp;</td>

 To This:

<td width="100%" nowrap class="outlookTitleCellwithBorder" align="right"><b><ipsILB:ImageLinkButton CssClass="NoUnderlineWhite" id="lnkEmptyFolder" ImageUrl="images/icn_trash_16.gif" ImageAlign="absmiddle" Text="" runat="server"></ipsILB:ImageLinkButton></b>&nbsp;&nbsp;

<script language="javascript" type="text/javascript">
     if (document.getElementById('lnkEmptyFolder').title.indexOf('INBOX') > 0 ) {document.getElementById('lnkEmptyFolder').style.display='none';}
     </script>

</td>

Post #44151
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Dave, Mark Singh, kevin r gillis, Jason Benton, Brandon Felger, Ben Henderson, Tripp Allen, Will Sansbury, Hush, FTPplanet.com, Hugh Garber, WUP-PM, Tom Lewis, mmulryan@ipswitch.com, mswimm, Brad Senter

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 10:20am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 9 queries. Compression Enabled.