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.
Inbox Message: Attachment Bar At Top
- DanRaisch
- Moderator
- Posts: 127249
- Joined: September 23rd, 2004, 8:57 pm
- Location: Somewhere on the right coast
Re: Inbox Message: Attachment Bar At Top
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
- Posts: 76
- Joined: February 5th, 2006, 1:09 pm
Re: Inbox Message: Attachment Bar At Top
I get this:
I know at least userChrome.css is being used because if I do this (without the other stuff):
The download pane is expanded by that factor.
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;
}
- D.Dancer
- Posts: 76
- Joined: February 5th, 2006, 1:09 pm
Re: Inbox Message: Attachment Bar At Top
Triple Bah!
It's ALWAYS shown with the above!
It's ALWAYS shown with the above!
- WaltS48
- Posts: 5141
- Joined: May 7th, 2010, 9:38 am
- Location: Pennsylvania, USA
Re: Inbox Message: Attachment Bar At Top
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.
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
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5
- D.Dancer
- Posts: 76
- Joined: February 5th, 2006, 1:09 pm
Re: Inbox Message: Attachment Bar At Top
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"
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"
-
- Posts: 6437
- Joined: February 3rd, 2009, 6:29 pm
Re: Inbox Message: Attachment Bar At Top
I tried the following code in the error console. It still works.
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
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);
http://forums.mozillazine.org/viewtopic ... 9#p9541529
More info
http://forums.mozillazine.org/viewtopic ... #p12883619
Thunderbird 52.8.0
Windows SP1 7 32-bit
- D.Dancer
- Posts: 76
- Joined: February 5th, 2006, 1:09 pm
Re: Inbox Message: Attachment Bar At Top
It should not be this hard to implement, I'm getting nothing.
-
- Posts: 6437
- Joined: February 3rd, 2009, 6:29 pm
Re: Inbox Message: Attachment Bar At Top
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
* create <profile>\chrome\userChrome.xml
* exit, then start app with -purgecaches command line option
i.e.
thunderbird.exe -purgecaches
ThunderbirdPortable.exe -purgecaches
* 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");
}
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>
i.e.
thunderbird.exe -purgecaches
ThunderbirdPortable.exe -purgecaches