1. Steven
  2. Printing
  3. Monday, 30 September 2019
  4.  Subscribe via email

Ive just installed latest 2019.09.0. 

The MW-Schedule_1 and MW-Handout templates now print with PM overlapping some times, or on a seperate line. Some sort of spacing issues on templates?

Im not sure if PM was on schedules at all in previous versions?

Thanks for your assistance, as the SHOW TIME on schedules is a large help for chairmen

Pictures attatched

 

Kind Regards,

steve

 

 

 

Attachments (2)
Comment
There are no comments made yet.
Accepted Answer
stepstra
Members
Accepted Answer Pending Moderation
1
Votes
Undo

Quick workaround for now:

add "white-space: nowrap;" to .time-class in line 36 of the template. It will slightly increase the width of the column, but it looks tolerable IMHO.

.starttime { width: auto; height: 1.500rem; line-height: 1.500rem; margin: auto; font-size: 0.625rem; color: black; white-space: nowrap; }

Or you could use the MW-Schedule_2.htm design of course. There it looks alright!

Thanks all!

Comment
  1. faikulya
  2. 8 months ago
  3. #1769

Brothers, could someone share their template for combi that correctly displays the time? Thank you in advance!
faikulya@gmail.com
  1. Andres Muñoz
  2. 7 months ago
  3. #1776
@ Stepstra - Your fix was outstanding. I still do not care for the unnecessary PM showing up on our schedules, but at least this fixed it for our English congregation here in the US. Well done my brother!
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # Permalink
stepstra
Members
Accepted Answer Pending Moderation
0
Votes
Undo

Hi!

Thanks for bringing this to our attention. Actually, pm/am hasn't been on schedules before (I think). We have some new code now, that can handle the start times better but it needs additional formatting.

Can you please provide a full example schedule? I'm in germany and can't test 12h format as easily. Please provide if possible a schedule in html format as well.

Thanks!

Comment
  1. Steven
  2. 8 months ago
  3. #1761
Thanks for your reply Stephan. AM/PM probably isnt really needed, schedules were perfect for us before :)
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 1
Saury
Members
Accepted Answer Pending Moderation
0
Votes
Undo

Tengo el mismo inconveniente en español, y necesito imprimir el programa para hoy, para la reunión.

Comment
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 2
Marc
Members
Accepted Answer Pending Moderation
-1
Votes
Undo

@Stephan, I mailed examples to you. You will be able to reproduce it, when you change your country settings to English - US. Which takes 30 seconds...

Maybe we can teach our brothers to count beyond 12 :D)

( I cannot see what the new starttimes do as opposed to the old ones...).

https://www.theocbase.net/support-forum/1097-donations.html

For accessing the database my personal preference is http://sqlitebrowser.org/

For editing templates I like to use http://brackets.io/ 

 

Comment
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo

I can confirm this issue is occuring as well.  2019.9.0 on MacOS 10.14.6 on US-English language.  

Additionally, it affects not just the new default templates, but also the old custom templates as well.   On the combination templates, it renders the durations as "invalid"  I've attached screenshots below in case it helps.

Attachments (2)

For accessing/editing the database I recommend: http://sqlitebrowser.org/

For editing templates I recommend: http://brackets.io/ 

Comment
  1. Oleg
  2. 7 months ago
  3. #1785
Good day! I found a solution to this problem. In the document code, I removed the following lines that relate to the script at a meeting on weekdays.
I did this in the "Combo" template.
For example:


if ("!WEEKS!".length 3) showTime("startTim!FULLWEEKNUMBER!", 5);


The main thing is not to delete the script in the lines that relate to the weekend.
  1. John McPeek
  2. 8 months ago
  3. #1767
I was able to fix my combo template and custom template by removing the EXTRATIME placeholder. For example:
if ("!WEEKS!".length ULLWEEKNUMBER!", !FM4_TIME!+5)

now the templates display the Times instead of "Invalid Date"
  1. Sam
  2. 8 months ago
  3. #1771
I was able to fix the combo templates too, but did it another way by comparing it with the MW-Templates.
They have implemented a new ![XX]_STARTTIME! placeholder there (just as told in the release notes) but in the COMBO-Templates it's missing..

I unfortunately can't upload my solution because of an error on the upload page, but i may try to PM it if someone is in need for it...
  1. Andres Muñoz
  2. 7 months ago
  3. #1774
Thanks Sam and John! I'll try that.
  1. Andres Muñoz
  2. 7 months ago
  3. #1775
Sam, would you mind sharing the line # I should be looking at for that fix? Did you just add the placeholder from the non-combo template, or was there more involved?
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 4
Marc
Members
Accepted Answer Pending Moderation
0
Votes
Undo

The old templates had different placeholders, which are apparently no longer in use. The differences are easy to see in the templates themselves, but I do not see the practicality of the changes (yet).

The whole thing means if you use custom templates, you'll have to redo them

I am not sure if the old templates produced PM or not. We use 24h system, so I never paid a lot of attention to it.

https://www.theocbase.net/support-forum/1097-donations.html

For accessing the database my personal preference is http://sqlitebrowser.org/

For editing templates I like to use http://brackets.io/ 

 

Comment
  1. Andres Muñoz
  2. 8 months ago
  3. #1762
I expected that. However, what is interesting is that the same exact issue occurs on both the old and the new templates. So not sure if that points to an issue with the way the new code handles the 12h time vs an issue with the template itself. The old ones did not display AM or PM, which was just fine.

Leave it to those on this side of the pond to be difficult and not adjust to the 24h format the rest of the world uses. :P
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 5
Steven
Members
Accepted Answer Pending Moderation
0
Votes
Undo

Found a quick fix for this by adjusting windows time settings

Settings>Related Settings (additional date, time)>Region (change date, time)>Language preferences (date and time formats) Then manual change 'short time' to h:mm (originaly it is h:mm tt) Alternatively you can just change to 24hr time of H:mm or HH:mm

Attached a picture to show settings

Not sure if this is the best approach, but for me its fine like this. More then happy to adjust windows settings if it saves the brothers some time not having to redo templates again.

Attachments (1)
Comment
  1. Marc
  2. 8 months ago
  3. #1763
Yes, that would work. I think the reason why everyone is looking for a solution in the templates, is that time wasn't rendered like this before. And we'd like to know what changed...
  1. Andres Muñoz
  2. 8 months ago
  3. #1764
Unfortunately, changing the system to 24 hour format does not resolve the issue on MacOS. We are needing to print new schedules and are unable to until a fix is implemented. Is there any estimate on an ETA?
  1. Steven
  2. 8 months ago
  3. #1765
Possibly just for this time print with 'show duration' instead of 'show time'? or possibly ask a brother with windows to print for this time?
  1. Marc
  2. 8 months ago
  3. #1766
Andres, are you saying if you change to 24h system it will print AM/PM as well??!! That would be surprising. And fundamentally wrong, not something Apple would consciously allow to happen... The PM is certainly not in the template, that bit is certain. I have seen other issues reported lately about iOS after updating, but then brothers tell me the latest update of iOS has itself already been updated twice. Could that be playing out here?
  1. Andres Muñoz
  2. 7 months ago
  3. #1772
The issue is not iOS related. The issue only occurs when printing, whether from MacOS or from Windows - so the issue is not OS related either, but rather an issue either with the source code on TheocBase. The workaround on Windows to change to 24 hour time is just that - a workaround to the actual issue. However, the workaround works on Windows, but not on MacOS. I personally run Windows 10 on my Macs, so I can work around it, but I know many brothers here in the states do not have that luxury.

The PM designation seems to appear on the printed templates, but does not appear anywhere in the UI of the desktop or mobile versions. I'll try the template modifications others are suggestion and see how to works out. Thanks for all the hard work brothers!
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 6
Accepted Answer Pending Moderation
1
Votes
Undo

I made the template with the correction of the midweek meeting times. Below is for those who wish to use. :-)

Attachments (1)
Comment
  1. Andres Muñoz
  2. 7 months ago
  3. #1773
Thanks my dear brother! I'll use that to modify ours locally.
  1. faikulya
  2. 7 months ago
  3. #1778
Vielen Dank :)
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 7
Marc
Members
Accepted Answer Pending Moderation
0
Votes
Undo

For me it is difficult to leave OS out of the picuture when manipulating its settings, clearly affect output. See also Steven's suggestion above. TB UI not showing the PM may be the result of that being coded differently. For one thing that is probably not in html, and maybe html looks to OS more often. Well, I am not an expert.

@Junior Ferreira, that was a complicated procedure! Interestingly the COMBO, which was apparently not updated, still holds the old complicated time calculating procedure. In the WE [EDIT: This is wrong, it should be MW] templates the whole calculating procedure within the template is abandoned and new placeholders are used for each different starttime.

 

That is important:

Interestingly the old templates (and the present unchanged Combo template) all have this internal, calculating procedure in which you find a hard coded time format (HH:mm). The new adapted templates abandon this calculation (and its format) and retrieve the starttimes through a placeholder which is unique for every assignment. Those are not (cannot be??) formatted, though as Stepstra suggests above, the output can be manipulated differently. He being the father of all TB templates, he'd know.

I am going to experiment a little more. Of me it is of no consequence, as I never use time. My personal opinion is that it is useless to have starttimes on the schedule, when an x number of assignments is only maxed, rather than absolutely set in time. Even more so in 2020. So I opt for the 'duration'.  But I like doing the puzzle here...

https://www.theocbase.net/support-forum/1097-donations.html

For accessing the database my personal preference is http://sqlitebrowser.org/

For editing templates I like to use http://brackets.io/ 

 

Comment
  1. Steven
  2. 7 months ago
  3. #1777
When weighing up how to have our scedule look, I felt the start time fomat had many positives. Firstly due to that format being more in line with the original S-140 format which includes part start times. It also helps the charmain keep track on if meeting is running on time, and brothers to see if they need to cut back their parts to keep meetings on time, which would be proper. Timing will always be an important aspect of our meetings, reflecting Jehovahs qualities of being the great Time-Keeper (even more so reflected at our assemblies/conventions). Im sure none want the part before the great tribulation to go overtime :) The adjustments to the Bible Study will be welcome, though that is the final part so start time for other parts would not be affected.
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 8
Marc
Members
Accepted Answer Pending Moderation
0
Votes
Undo

I haven't found much. On the + side I have found starttime tags are formattable. Like this: !OC_STARTTIME! > !OC_STARTTIME HH:mm!

If you do that while your OS is on US settings '7:35 PM' becomes 19:35. Which is expected, but no solution yet. We only want the PM to go.

And here comes the - side: wether I use HH:mm or H:mm or hh:mm or h:mm, they all return 19:35. I know HH/hh is a Java difference and the time is not in Java. It was before....

Not giving up yet, but I suppose if there was an easy solution, Stepstra would have given it, rather than the workaround that he proposed, and which works, given the comments here.

But I find it hard to accept that time is not formattable, when date is. (look at the date in the week header of the MW_Schedule_1.htm, which is formatted, and that format can be changed). 

[EDIT] also see my next post with related info figured out later

https://www.theocbase.net/support-forum/1097-donations.html

For accessing the database my personal preference is http://sqlitebrowser.org/

For editing templates I like to use http://brackets.io/ 

 

Comment
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 9
Marc
Members
Accepted Answer Pending Moderation
0
Votes
Undo

@Andres: effect of language/country settings are probably even more complicated than we realise. I shouldn't say that: than I realised...

Position 1: If I use TB as usual with OS in default country settings: it prints 19.35

Position 2: I close TB and change OS Settings to US English: upon reopening TB it prints 7:35 PM.

The US format output results from the OS, which is the only thing that changed.

I go back to position 1 restoring 

Position 3: from position 1 I leave the print dialogue and go to Settings, change Language to English and return to the print dialogue: it prints 7:35 PM. The US format output results from the TB language setting, which is the only thing that changed.

Position 4: I leave TB language on English, close TB then reopen. OS Country settings still local: it prints 19:35

It is not the first time TB handles change of UI language in a strange way, but it was a long time ago I noted this. Never paid much attention, it might have to do with my machine, or might have been related to a specific software version.

Hope developers can shed some light.. 

https://www.theocbase.net/support-forum/1097-donations.html

For accessing the database my personal preference is http://sqlitebrowser.org/

For editing templates I like to use http://brackets.io/ 

 

Comment
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 10
Accepted Answer Pending Moderation
0
Votes
Undo

In the WE templates the whole calculating procedure within the template is abandoned and new placeholders are used for each different starttime.

Marc, 

Where in the WE_schedule1 and Schedule2 do you see that they have new placeholders? I see only the old calculation method.

In the Midweek schedules, yes, but not in the WE Templates.

I have updated my custom template which is a combination of the Midweek and Weekend handout, so no more need for 2 papers...

with brotherly love!

KR,

Micha

Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 11
Marc
Members
Accepted Answer Pending Moderation
0
Votes
Undo

I can't even remember looking into the WE templates.... That is extremely stupid. I was supposed to write MW. Sorry for the misunderstanding created. I'll edit the post as well.

https://www.theocbase.net/support-forum/1097-donations.html

For accessing the database my personal preference is http://sqlitebrowser.org/

For editing templates I like to use http://brackets.io/ 

 

Comment
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 12
Oleg
Members
Accepted Answer Pending Moderation
0
Votes
Undo

Good day! I found a solution to this problem. In the document code, I removed the following lines that relate to the script at a meeting on weekdays.
I did this in the "Combo" template.
For example:

<script>

if ("!WEEKS!".length < 3) showTime("startTime!FULLWEEKNUMBER!", 5);

</script>



The main thing is not to delete the script in the lines that relate to the weekend.

Attachments (1)
Oleg R.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 13
Steven Stutz
Members
Accepted Answer Pending Moderation
0
Votes
Undo

Can somebody please tell me where they are finding the Templates and Line 36 of what? I'm using DB Browser and cannot find any of the things that you are talking about. Your help would be appreciated! I'm using macOS high Sierra 10.13.6, and TheocBase 2019.09.0.

Comment
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 14
Marc
Members
Accepted Answer Pending Moderation
0
Votes
Undo

DB browser is for the database.

The templates are within the programme folder in a folder called templates. They are htm files.   Edit with Brackets (see below)  or Blue Griffon, or Notepad++ (that may be Windows only) or another editor of your choice.

https://www.theocbase.net/support-forum/1097-donations.html

For accessing the database my personal preference is http://sqlitebrowser.org/

For editing templates I like to use http://brackets.io/ 

 

Comment
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 15
stepstra
Members
Accepted Answer Pending Moderation
0
Votes
Undo

The newest version 2019.10 contains revised templates where this modification should be obsolete.

Comment
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 16
Sam
Members
Accepted Answer Pending Moderation
0
Votes
Undo

it seems so, but there's still a buggy COMBO-Template, where you get "invalid date" shown instead of times...

I've fixed it, if someone uses them too and needs the fixed ones, see attachments.

Attachments (2)
Comment
  1. Steven Stutz
  2. 7 months ago
  3. #1810
Thank you for all of the help! Unfortunately the macOS Version of TheocBase doesn’t create any Folders except for one which contains the Database. Any changes I make can only be made working in DB Browser. Thanks anyway though, I’ll just wait for TheocBase to be updated.
  1. Sam
  2. 7 months ago
  3. #1811
hey Steven,
you might be wrong with your thinking... i'm working with mac os, too, so it's only a little bit more complicated to locate the template folder.
But as i seem to acknowledge, we may try an easier way to get the fixed templates working.
- Go to "settings"
- at the global settings, you can chose a folder for templates (subtopic printing options). Just save the fixed ones into this folder, restart and you should be able to use them

if not so, let me know to try to tell you the harder way...
  1. Steven Stutz
  2. 7 months ago
  3. #1812
I'm sorry for my ineptitude, Settings or Global Settings in the TheocBase App itself or somewhere else?
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 17
Steven Stutz
Members
Accepted Answer Pending Moderation
0
Votes
Undo

I have tried adding the templates in their original format and PDF to the folder that is used for the Assignment Slips but the Midweek Schedule is still incorrect. So where can I go to access the Templates in macOS? Thank you all for your help! Please keep in mind that I have a cursory knowledge of computers and am in no way a programmer. 

Comment
  1. Andres Muñoz
  2. 7 months ago
  3. #1815
Steven,

The templates folder is hidden by default in MacOS. You access it by secondary click. (Right click or two fingered tap for moist users) In Finder > Applications, right click on the TheocBase icon. Select “Show Package Contents”. The templates are stored in: Contents > Resources > Templates.

Hope that helps!

Andres
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 18
Accepted Answer Pending Moderation
0
Votes
Undo

That being said however, it is often easier to place all of your custom templates in a separate folder outside of the TheocBase system structure.   You can create that folder anywhere you like on your Mac, and then open TheocBase, pull up settings, and look for the custom template folder option.   You can tell TheocBase where to look for your custom templates.

This is often the preferred method, as it will prevent your custom templates from being replaced every time you upgrade or reinstall TheocBase.

For accessing/editing the database I recommend: http://sqlitebrowser.org/

For editing templates I recommend: http://brackets.io/ 

Comment
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 19
Steven Stutz
Members
Accepted Answer Pending Moderation
0
Votes
Undo

WOW! I had no idea. I guess that is one thing I like about Apple, but something that can get in the way as well, hiding Folders. I have made adjustments to Line 36 in the template and I cannot tell any difference from the original. Thank you Brothers for all of your help!

 

Comment
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 20
  • Page :
  • 1
  • 2


There are no replies made for this post yet.
Be one of the first to reply to this post!