MozillaZine

Inbox Message: Attachment Bar At Top

Discussion of general topics about Mozilla Thunderbird
D.Dancer

User avatar
 
Posts: 60
Joined: February 5th, 2006, 1:09 pm

Post Posted May 22nd, 2018, 10:20 am

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.

DanRaisch
Moderator

User avatar
 
Posts: 120442
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Post Posted May 22nd, 2018, 5:25 pm

Have you tried the userChrome solution in your current version? There's no way to know whether or not it will work without trying?

D.Dancer

User avatar
 
Posts: 60
Joined: February 5th, 2006, 1:09 pm

Post Posted May 24th, 2018, 11:15 am

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.

D.Dancer

User avatar
 
Posts: 60
Joined: February 5th, 2006, 1:09 pm

Post Posted May 25th, 2018, 2:06 pm

Triple Bah!

It's ALWAYS shown with the above!

WaltS48

User avatar
 
Posts: 3764
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Post Posted May 26th, 2018, 7:40 am

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

D.Dancer

User avatar
 
Posts: 60
Joined: February 5th, 2006, 1:09 pm

Post Posted May 29th, 2018, 11:54 am

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.
viewtopic.php?f=39&t=2626505
And
viewtopic.php?f=39&t=1781245

But I get this in the error console:
"No chrome package registered for chrome://userchrome/content/userchrome.xml"

morat
 
Posts: 2905
Joined: February 3rd, 2009, 6:29 pm

Post Posted May 29th, 2018, 4:40 pm

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
viewtopic.php?p=9541529#p9541529

More info
viewtopic.php?p=12883619#p12883619

Thunderbird 52.8.0
Windows SP1 7 32-bit

D.Dancer

User avatar
 
Posts: 60
Joined: February 5th, 2006, 1:09 pm

Post Posted June 7th, 2018, 1:06 pm

It should not be this hard to implement, I'm getting nothing.

morat
 
Posts: 2905
Joined: February 3rd, 2009, 6:29 pm

Post Posted June 7th, 2018, 3:20 pm

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

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

More info
viewtopic.php?p=12655643#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

Return to Thunderbird General


Who is online

Users browsing this forum: No registered users and 3 guests