Page 1 of 2
Changing incorrect date format
Posted: Sun Oct 28, 2007 8:05 pm
by Zirbelholz
I don't quite understand the interaction between the various types of file. Under my sticky post (
http://transblawg.eu) there is a badly formatted date:
October 14. 2007. It should be October 14, 2007 - no full stop (period) in English. This looks like what I need to change in the tpl file:
{foreach from=$entries item="dategroup"}
<div class="serendipity_Entry_Date">
{if $dategroup.is_sticky}
<h3 class="serendipity_date">{$CONST.STICKY_POSTINGS}</h3>
{else}
<h3 class="serendipity_date">
Can I just cut out the lines beween the div row and the last?
TIA
Margaret
Posted: Sun Oct 28, 2007 11:05 pm
by Don Chambers
No - do not delete that.
you are using bulletproof, but it looks like you are using the original release. Start by getting the 1.1 revision:
http://s9y-bulletproof.com/index.php?se ... t=2&file=2
That should force the date in a sticky post to be the same format as it is used for non-sticky entries... I think!!! That might also be a change we have made in the source files, but not yet released. If that does not work, or you still want a different format for dates in sticky entries compared to other entries, we you will need to modify entries.tpl to accomodate the date format you want.
I suggest you update to bp 1.1 and let's move forward from there.
Posted: Sun Oct 28, 2007 11:28 pm
by Zirbelholz
It's all dated October 12. Can I update the bp without losing the changes I made to the header, or do I have to save the blue.css file manually?
TIA
Margaret
Posted: Sun Oct 28, 2007 11:44 pm
by Zirbelholz
I have found the new version and downloaded and unzipped it. Do I just copy the folder, or all the files, over by ftp (I've saved the calendar and blue.css files that I altered), or is there some other way of getting it into s9y?
I would also like to put more space between entries on the same date, which I cannot work out how to do. (I think I can work out how to change the fonts here and there, since I managed that in the header).
Margaret
Posted: Mon Oct 29, 2007 12:06 am
by yellowled
Zirbelholz wrote:Do I just copy the folder, or all the files, over by ftp (I've saved the calendar and blue.css files that I altered), or is there some other way of getting it into s9y?
Nope, that's it: simply copy the new files over the old ones by ftp (make sure your ftp client actually overwrites the files - some ftp clients offer to resume the upload instead, which is not what you want). After that, add your changes to the altered files again.
Zirbelholz wrote:I would also like to put more space between entries on the same date, which I cannot work out how to do.
Hmmm. Changing the space between entries in general isn't hard, but just between entries on the same date ... I don't see how to do that. Maybe there's a way of doing this by altering the entries.tpl a little, but I'll have to think about that.
YL
Posted: Mon Oct 29, 2007 12:45 am
by Don Chambers
Zirbelholz wrote:I would also like to put more space between entries on the same date, which I cannot work out how to do. (I think I can work out how to change the fonts here and there, since I managed that in the header).
Margaret
simply add some bottom margin to .serendipity_entry.... this will add margin to ALL entries, not just those on the same date. You COULD then combine that with bottom margins on .serendipity_Entry_Date (including negative margins if necessary) to remove some margin from a block of entries on one date, from the next entry, or block of entries, for the next date. Hope that made sense.
Posted: Mon Oct 29, 2007 12:55 am
by Zirbelholz
Thanks, yellowled and don.
I will consult my critics again on whether space is needed between entries on one day. When I first loaded the template, they looked too close. I have got used to the fairly dark colour on the blockquotes (I know it can be changed). I quite like it, but my feeling was that the entry headings were (slightly) too light, the entries slightly too close and that this was related to the emphatic blockquotes: either one or the other would be better slightly changed.
It's a very nice template, though.
Margaret (I'll do this tomorrow though, as it's nearly 1 a.m. here)
Posted: Mon Oct 29, 2007 1:23 am
by Don Chambers
Margaret - all this can be changed. Rarely can any template satisfy everyone. In BP, we tried to present the user/admins with as many configuration items as possible, so that simple "choices" could determine the final appearance. Unfortunately, we cannot make every single item configurable.... especially when it relates to colors.
Decide what you really want to change, how you want to change it, and we can help you make that happen!!!

Posted: Mon Oct 29, 2007 9:44 am
by yellowled
Don Chambers wrote:simply add some bottom margin to .serendipity_entry.... this will add margin to ALL entries, not just those on the same date. You COULD then combine that with bottom margins on .serendipity_Entry_Date (including negative margins if necessary) to remove some margin from a block of entries on one date, from the next entry, or block of entries, for the next date. Hope that made sense.
http://www.w3.org/TR/CSS21/box.html#collapsing-margins might get in your way, however.
YL
Posted: Mon Oct 29, 2007 9:54 am
by Zirbelholz
Hi Don,
I certainly did not mean to criticize the template - it's excellent. And I realize that it isn't going to please everyone, and that I can change it. I also realize that the fact that the date is badly formatted is trivial, I just don't want any of my clients to see it and think I can't write English. (There's another German weblog system that always says 'at October 28').
Decide what you really want to change, how you want to change it, and we can help you make that happen!!!
Umm - I thought that was exactly what I was doing! (Why couldn't I change the colours?)
Anyway, I have now installed the new version of bp. The date is still wrong. It still says 'October 14. 2007' under the sticky entry. I have added text and reposted the sticky entry, but the date is still wrong. The easiest thing would be if the date were the same as the other dates in the entries.
At the moment I have 29-10-07, which is OK for British and German. But October 29, 2007 would be OK too, and better, because it would confuse Americans if it were October 11, 2007, for instance.
If you could just let me know how I can change that date, I would be very grateful.
The other date I altered myself was in the calendar. I changed the '07 to 2007. The '07 looks weird to me and also tells me I am seeing a Serendipity blog. Now it has changed back, but I can change it again later.
Regards
Margaret
Posted: Mon Oct 29, 2007 3:50 pm
by Don Chambers
I don't see any conflict... but perhaps I did not understand you.
Posted: Mon Oct 29, 2007 4:25 pm
by Zirbelholz
I found entries.tpl, but I can't find .serendipity_entry or .serendipity_entry_date - or are these not files?
Margaret
Posted: Tue Oct 30, 2007 8:37 am
by yellowled
Zirbelholz wrote:I found entries.tpl, but I can't find .serendipity_entry or .serendipity_entry_date - or are these not files?
No. They're CSS classes. Let's assume you have a group of div containers in your trusty HTML code and want to format all of these alike. That's what classes are used for. You simply assign the same class to every div container (i.e. <div class="serendipity_entry">). Now every styling you apply to this class in your CSS file (i.e. style.css) will be applied to all containers assigned to this class. .serendipity_entry is simply the way of writing this in a CSS file:
Code: Select all
.serendipity_entry {
margin-bottom: 1em;
}
YL
Posted: Tue Oct 30, 2007 8:39 am
by yellowled
Don Chambers wrote:I don't see any conflict... but perhaps I did not understand you.
Vertical margins may collapse between certain boxes:[...]
I was just pointing out that using vertical margins might cause problems.
YL
Posted: Tue Oct 30, 2007 9:29 am
by Zirbelholz
Thanks, Yellowled. That's very helpful. Don has helped me sort out the date problem now, so I am happy. As for the spaces in between entries, I am not going to bother about that because I have a lot more important things to do.
I seem to be lucky having taken up s9y after this template appeared.
To sum up: looking at the distance between entries on one date, it looks a little bit odd to me still that the space between header and entry is quite big, but there's scarcely a space between the line at the end of one entry and the header of the next. If only I could put a space on every header, but I can't. I think some white space would make sense there.
Thanks again to both of you,
Margaret