How to display Start and END of an event
-
- Posts: 24
- Joined: August 25th, 2014, 6:21 am
How to display Start and END of an event
Hi,
Is there a way to display both Start and End time of an event, in Month view?
At the moment, in month view, I can only see the start time:
I'd like the same as in Outlook :
Is there a way to display both Start and End time of an event, in Month view?
At the moment, in month view, I can only see the start time:
I'd like the same as in Outlook :
Last edited by fredcom on November 28th, 2015, 4:21 am, edited 2 times in total.
-
- Posts: 48
- Joined: February 27th, 2009, 2:02 am
Re: How to display Start and END of an event
It's not possible without changing Lightning's code.
If you are able to apply a patch manually, the following should work:
the file to edit is calendar-month-view.xml
which you can find inside the folder (Win7):
C:\Users\_USER_NAME_\AppData\Roaming\Thunderbird\Profiles\_PROFILE_NAME_\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}\chrome\calendar\content\calendar\
If you are able to apply a patch manually, the following should work:
Code: Select all
diff --git a/calendar/base/content/calendar-month-view.xml b/calendar/base/content/calendar-month-view.xml
--- a/calendar/base/content/calendar-month-view.xml
+++ b/calendar/base/content/calendar-month-view.xml
@@ -103,9 +103,9 @@
} else {
if (comp == 1) {
label.value = "⇤ " + df.formatTime(startTime);
} else {
- label.value = df.formatTime(startTime);
+ label.value = df.formatTime(startTime) + " " + df.formatTime(endTime);
}
}
label.setAttribute("time", "true");
}
the file to edit is calendar-month-view.xml
which you can find inside the folder (Win7):
C:\Users\_USER_NAME_\AppData\Roaming\Thunderbird\Profiles\_PROFILE_NAME_\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}\chrome\calendar\content\calendar\
-
- Posts: 24
- Joined: August 25th, 2014, 6:21 am
Re: How to display Start and END of an event
Hi Decathlon,
thank you so much for your help.
It helps me a lot.
The result :
thank you so much for your help.
It helps me a lot.
The result :
-
- Posts: 24
- Joined: August 25th, 2014, 6:21 am
Re: How to display Start and END of an event -[Resolved]
Hi,
It seems that Lightning evolved with last update as there is no more way to find the file "calendar-month-view.xml"...
Do you have any idea wich file is possible to modify to regain this great option to display both Start and End time of an event?
It seems that Lightning evolved with last update as there is no more way to find the file "calendar-month-view.xml"...
Do you have any idea wich file is possible to modify to regain this great option to display both Start and End time of an event?
-
- Posts: 48
- Joined: February 27th, 2009, 2:02 am
Re: How to display Start and END of an event
Try to look into the folder where there is the exe file of Thunderbird (not the profile folder), something like this (Win7):
C:\Program Files (x86)\Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}
here you should have a file named "chrome.jar".
This file basically is a zip file. If you unpack it you can find inside the same files structure which you had before, in particular your file calendar-month-view.xml is inside the folder calendar\content\calendar\
Once you have edited your file, you have to re-pack the files (in the same file structure) in order to get a zip file named chrome.jar.
Be careful, jar is not a zip standard format so many zip tools don't handle it properly (many open it correctly but don't repack in the right way). I suggest you to take a look here where the subject is the file "omni.jar" about FF or TB, but it's the same as chrome.jar:
https://developer.mozilla.org/en-US/doc ... mni.jar%29
also search for "jar" or "omni.jar" in this forum.
Stay safe, make a copy of the file before starting to work on it.
C:\Program Files (x86)\Thunderbird\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}
here you should have a file named "chrome.jar".
This file basically is a zip file. If you unpack it you can find inside the same files structure which you had before, in particular your file calendar-month-view.xml is inside the folder calendar\content\calendar\
Once you have edited your file, you have to re-pack the files (in the same file structure) in order to get a zip file named chrome.jar.
Be careful, jar is not a zip standard format so many zip tools don't handle it properly (many open it correctly but don't repack in the right way). I suggest you to take a look here where the subject is the file "omni.jar" about FF or TB, but it's the same as chrome.jar:
https://developer.mozilla.org/en-US/doc ... mni.jar%29
also search for "jar" or "omni.jar" in this forum.
Stay safe, make a copy of the file before starting to work on it.
-
- Posts: 24
- Joined: August 25th, 2014, 6:21 am
Re: How to display Start and END of an event
Hi Decathlon,
I would like to thank you again for your light
It works but in a slightly different way that you explain.
I performed a search on "chrome.jar" and I found 2 files:
1/ C:\Program Files (x86)\Mozilla Thunderbird\distribution\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103} wich is the folder with thunderbird.exe in a parent directory
2/ C:\Users\f2_bureau\AppData\Roaming\Thunderbird\Profiles\8kq4tdrm.default\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}
It was only when I replaced the "chrome.jar" by the modified one in the 2/ folder that it works as expected (no change when file replaced in 1/ folder).
I would like to thank you again for your light
It works but in a slightly different way that you explain.
I performed a search on "chrome.jar" and I found 2 files:
1/ C:\Program Files (x86)\Mozilla Thunderbird\distribution\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103} wich is the folder with thunderbird.exe in a parent directory
2/ C:\Users\f2_bureau\AppData\Roaming\Thunderbird\Profiles\8kq4tdrm.default\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}
It was only when I replaced the "chrome.jar" by the modified one in the 2/ folder that it works as expected (no change when file replaced in 1/ folder).
-
- Posts: 24
- Joined: August 25th, 2014, 6:21 am
Re: How to display Start and END of an event
Hi ,
Arghh, I was probably on an older version.
So, after the upgrade to version thunderbird 38.4.0, it stopped working.
I tried first to modify the file chrome.jar in : C:\Program Files (x86)\Mozilla Thunderbird\distribution\extensions\{e2fda1a4‐762b‐4020‐b5ada41df1933103} but it doesn't change the display.
I also tried a test by deleting file "chrome.jar " , and Lightning still opened !!! (see photo)
So, maybe, file to change is not in chrome.jar
Arghh, I was probably on an older version.
So, after the upgrade to version thunderbird 38.4.0, it stopped working.
I tried first to modify the file chrome.jar in : C:\Program Files (x86)\Mozilla Thunderbird\distribution\extensions\{e2fda1a4‐762b‐4020‐b5ada41df1933103} but it doesn't change the display.
I also tried a test by deleting file "chrome.jar " , and Lightning still opened !!! (see photo)
So, maybe, file to change is not in chrome.jar
- ssitter
- Posts: 2495
- Joined: October 19th, 2007, 12:24 am
- Location: Germany
Re: How to display Start and END of an event
You always need to modify the Lightning files in your profile folder. The Lightning files in the program folder are the ones that are distributed with Thunderbird and they will be installed in the profile folder if you create a new profile.
-
- Posts: 24
- Joined: August 25th, 2014, 6:21 am
Re: How to display Start and END of an event
Hi ssitter,
I think my profile folder is : C:\Users\f2_bureau\AppData\Roaming\Thunderbird\Profiles\8kq4tdrm.default
but, wich file do I need to modify?
I think my profile folder is : C:\Users\f2_bureau\AppData\Roaming\Thunderbird\Profiles\8kq4tdrm.default
but, wich file do I need to modify?
-
- Posts: 24
- Joined: August 25th, 2014, 6:21 am
Re: How to display Start and END of an event
Before the last Thunderbird Update, I was modifying the calendar-month-view.xml accordind to
The chrome.jar was in folder : C:\Users\MyBureau\AppData\Roaming\Thunderbird\Profiles\____drm.default\extensions\{e2fda1a4‐762b‐
4020‐b5ad‐a41df1933103}
But there is no more chrome.jar file in this folder!!!
Any idea how to have this "endTime" function back?
Code: Select all
_Edit “calendar-month-view.xml » with Notepad++ (folder calendar/content/calendar)
Then:
diff --git a/calendar/base/content/calendar-month-view.xml
b/calendar/base/content/calendar-month-view.xml
--- a/calendar/base/content/calendar-month-view.xml
+++ b/calendar/base/content/calendar-month-view.xml
@@ -103,9 +103,9 @@
} else {
if (comp == 1) {
label.value = "⇤ " + df.formatTime(startTime);
} else {
- label.value = df.formatTime(startTime);
+ label.value = df.formatTime(startTime) + " " + df.formatTime(endTime);
}
}
label.setAttribute("time", "true");
}
4020‐b5ad‐a41df1933103}
But there is no more chrome.jar file in this folder!!!
Any idea how to have this "endTime" function back?
-
- Posts: 24
- Joined: August 25th, 2014, 6:21 am
Re: How to display Start and END of an event
Ok, so the new folder for "calendar-month-view.xml" is in C:\Users\MyBureau\AppData\Roaming\Thunderbird\Profiles\____drm.default\extensions\{e2fda1a4‐762b‐
4020‐b5ad‐a41df1933103}\chrome\calendar\content\calendar
change with Notepad++ :
#102
} else if (comp == 1) {
label.value = "⇤ " + formatter.formatTime(startTime);
} else {
--- label.value = formatter.formatTime(startTime);
+++ label.value = formatter.formatTime(startTime)+ "⇥ " + formatter.formatTime(endTime);
}
label.setAttribute("time", "true");
4020‐b5ad‐a41df1933103}\chrome\calendar\content\calendar
change with Notepad++ :
#102
} else if (comp == 1) {
label.value = "⇤ " + formatter.formatTime(startTime);
} else {
--- label.value = formatter.formatTime(startTime);
+++ label.value = formatter.formatTime(startTime)+ "⇥ " + formatter.formatTime(endTime);
}
label.setAttribute("time", "true");
-
- Posts: 24
- Joined: August 25th, 2014, 6:21 am
Re: How to display Start and END of an event
Hi,
This method works for age, but since 2-3 releases, it doesn't work anymore.
In folder : C:\Program Files (x86)\Mozilla Thunderbird\distribution\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi, I extraxted it, and then navigate to : \chrome\calendar\content\calendar.
Then I found "calendar-month-view.xml", and then applied the modification: label.value = formatter.formatTime(startTime)+ " " + formatter.formatTime(endTime).
Then i packed {e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi with Windows SendTo/compressed folder.
Then replaced {e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi by the new one... No change after opening Thunderbird/Calendar.
I also replaced {e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi by the new one in : C:\Users\zzzz\AppData\Roaming\Thunderbird\Profiles\zzzzzz.default-release\extensions, but still no change after opening Thunderbird/Calendar.
So, any idea of what can be changed to display the end time of an event in Calendar???
This method works for age, but since 2-3 releases, it doesn't work anymore.
In folder : C:\Program Files (x86)\Mozilla Thunderbird\distribution\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi, I extraxted it, and then navigate to : \chrome\calendar\content\calendar.
Then I found "calendar-month-view.xml", and then applied the modification: label.value = formatter.formatTime(startTime)+ " " + formatter.formatTime(endTime).
Then i packed {e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi with Windows SendTo/compressed folder.
Then replaced {e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi by the new one... No change after opening Thunderbird/Calendar.
I also replaced {e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi by the new one in : C:\Users\zzzz\AppData\Roaming\Thunderbird\Profiles\zzzzzz.default-release\extensions, but still no change after opening Thunderbird/Calendar.
So, any idea of what can be changed to display the end time of an event in Calendar???
-
- Posts: 6437
- Joined: February 3rd, 2009, 6:29 pm
Re: How to display Start and END of an event
Try using the -purgecaches command line option.
i.e.
thunderbird.exe -purgecaches
ThunderbirdPortable.exe -purgecaches
More info
http://developer.mozilla.org/docs/Exten ... _4#Caching
AFAIK, you only need to hack the {e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi file in (2), not (1).
1. <installation folder>\distribution\extensions
2. <profile folder>\extensions
The following hack works here.
* chrome/calendar/content/calendar/calendar-month-view.xml
Here is how to view the calendar-month-view.xml file using the error console.
Lightning 68.3.0
Thunderbird 68.3.0
Windows 7 SP1 32-bit
i.e.
thunderbird.exe -purgecaches
ThunderbirdPortable.exe -purgecaches
More info
http://developer.mozilla.org/docs/Exten ... _4#Caching
AFAIK, you only need to hack the {e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi file in (2), not (1).
1. <installation folder>\distribution\extensions
2. <profile folder>\extensions
The following hack works here.
* chrome/calendar/content/calendar/calendar-month-view.xml
Code: Select all
} else {
- label.value = formatter.formatTime(startTime);
+ label.value = formatter.formatTime(startTime) + " XXX";
}
Code: Select all
(function () {
var url = "chrome://calendar/content/calendar-month-view.xml";
document.getElementById("tabmail").openTab("contentTab", {
contentPage: "view-source:" + url,
});
})();
Thunderbird 68.3.0
Windows 7 SP1 32-bit
-
- Posts: 24
- Joined: August 25th, 2014, 6:21 am
Re: How to display Start and END of an event
Hi morat,
thank you so much, it works \o/
Method:
Unpack {e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi in C:\Users\zzzz\AppData\Roaming\Thunderbird\Profiles\zzzzzz.default-release\extensions\
Navigate to "\chrome\calendar\content\calendar"
Modify "calendar-month-view.xml" with :
then repack of {e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi with Windows _Explorer/Select_all_folders_then_Right_Click/SendTo/Compressed_Folder
then replace {e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi in C:\Users\zzzz\AppData\Roaming\Thunderbird\Profiles\zzzzzz.default-release\extensions\
then apply cmd "thunderbird.exe -purgecaches"
then open thunderbird
thank you so much, it works \o/
Method:
Unpack {e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi in C:\Users\zzzz\AppData\Roaming\Thunderbird\Profiles\zzzzzz.default-release\extensions\
Navigate to "\chrome\calendar\content\calendar"
Modify "calendar-month-view.xml" with :
Code: Select all
} else if (comp == 1) {
label.value = "⇤ " + formatter.formatTime(startTime);
} else {
--- label.value = formatter.formatTime(startTime);
+++ label.value = formatter.formatTime(startTime)+ "⇥ " + formatter.formatTime(endTime);
}
label.setAttribute("time", "true");
then replace {e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi in C:\Users\zzzz\AppData\Roaming\Thunderbird\Profiles\zzzzzz.default-release\extensions\
then apply cmd "thunderbird.exe -purgecaches"
then open thunderbird
-
- Posts: 24
- Joined: August 25th, 2014, 6:21 am
Re: How to display Start and END of an event
Hi,
back again with problem...
After Thunderbird new release, I'm unable to configure the "formattime (endtime)".
The {e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi file seems to be no longer available in folder C:\Users\zzzz\AppData\Roaming\Thunderbird\Profiles\zzzzzz.default-release\extensions\.
So, I can't change anymore the "calendar-month-view.xml" file.
Any idea what can be done to restore the Start and End Time view?
back again with problem...
After Thunderbird new release, I'm unable to configure the "formattime (endtime)".
The {e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi file seems to be no longer available in folder C:\Users\zzzz\AppData\Roaming\Thunderbird\Profiles\zzzzzz.default-release\extensions\.
So, I can't change anymore the "calendar-month-view.xml" file.
Any idea what can be done to restore the Start and End Time view?