Inbox Message: Attachment Bar At Top

Discussion of general topics about Mozilla Thunderbird
Locked
User avatar
D.Dancer
Posts: 76
Joined: February 5th, 2006, 1:09 pm

Inbox Message: Attachment Bar At Top

Post by D.Dancer »

I need to replicate how other email programs deal with attachments and get the attachment displayed at the top.

Been through this forums several ways from Sunday and all the suggested solutions are to use userChrome but they are for older versions of TBird, I got version 52.
User avatar
DanRaisch
Moderator
Posts: 127187
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Re: Inbox Message: Attachment Bar At Top

Post by DanRaisch »

Have you tried the userChrome solution in your current version? There's no way to know whether or not it will work without trying?
User avatar
D.Dancer
Posts: 76
Joined: February 5th, 2006, 1:09 pm

Re: Inbox Message: Attachment Bar At Top

Post by D.Dancer »

I get this:
Image

I know at least userChrome.css is being used because if I do this (without the other stuff):

Code: Select all

#attachmentView {
  -moz-appearance: none !important;
  height: 100px !important;
  min-height: 100px !important;
  overflow: auto !important;
}
The download pane is expanded by that factor.
User avatar
D.Dancer
Posts: 76
Joined: February 5th, 2006, 1:09 pm

Re: Inbox Message: Attachment Bar At Top

Post by D.Dancer »

Triple Bah!

It's ALWAYS shown with the above!
User avatar
WaltS48
Posts: 5141
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Re: Inbox Message: Attachment Bar At Top

Post by WaltS48 »

Where did you find the userChrome.css to do this, and are you trying to add the attachment bar to the top of received messages?

I see nothing attachment related in your screenshot.

All it did for me was make the Attachment Pane larger at the bottom of the message.
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5
User avatar
D.Dancer
Posts: 76
Joined: February 5th, 2006, 1:09 pm

Re: Inbox Message: Attachment Bar At Top

Post by D.Dancer »

Yes, I want to add the attachment bar to the top of the received message.

Found the userChrome somewhere in this forum, there was two variants.

It was to move the attachment bar to the top of the message, that is what I end up with in the screenshot, an empty window.
http://forums.mozillazine.org/viewtopic ... &t=2626505
And
http://forums.mozillazine.org/viewtopic ... &t=1781245

But I get this in the error console:
"No chrome package registered for chrome://userchrome/content/userchrome.xml"
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Inbox Message: Attachment Bar At Top

Post by morat »

I tried the following code in the error console. It still works.

Code: Select all

var that = document.getElementById("singlemessage");
var sp = document.getElementById("attachment-splitter");
var br = sp.previousSibling;
var at = sp.nextSibling;
that.insertBefore(that.removeChild(at), br);
that.insertBefore(that.removeChild(sp), br);
Rod Whiteley's solution
http://forums.mozillazine.org/viewtopic ... 9#p9541529

More info
http://forums.mozillazine.org/viewtopic ... #p12883619

Thunderbird 52.8.0
Windows SP1 7 32-bit
User avatar
D.Dancer
Posts: 76
Joined: February 5th, 2006, 1:09 pm

Re: Inbox Message: Attachment Bar At Top

Post by D.Dancer »

It should not be this hard to implement, I'm getting nothing.
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Inbox Message: Attachment Bar At Top

Post by morat »

I just tried it. I got the attachment bar above the message body.

* install chrome.xpi (contains chrome.manifest and install.rdf)

More info
http://forums.mozillazine.org/viewtopic ... #p12655643

* create <profile>\chrome\userChrome.css

Code: Select all

/* Thunderbird userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#singlemessage {
  -moz-binding: url("chrome://userchrome/content/userChrome.xml#example");
}
* create <profile>\chrome\userChrome.xml

Code: Select all

<?xml version="1.0"?>
<!DOCTYPE bindings>
<bindings xmlns="http://www.mozilla.org/xbl"
          xmlns:xbl="http://www.mozilla.org/xbl"
          xmlns:html="http://www.w3.org/1999/xhtml"
          xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <binding id="example">
    <implementation>
      <constructor>
      <![CDATA[
        var sp = document.getElementById("attachment-splitter");
        var br = sp.previousSibling;
        var at = sp.nextSibling;
        this.insertBefore(this.removeChild(at), br);
        this.insertBefore(this.removeChild(sp), br);
      ]]>
      </constructor>
    </implementation>
  </binding>
</bindings>
* exit, then start app with -purgecaches command line option

i.e.

thunderbird.exe -purgecaches
ThunderbirdPortable.exe -purgecaches
Locked