Page 1 of 1

Theme "Lady Bug" - Problem mit "Sortierbares

Posted: Sun May 06, 2007 2:18 am
by Lariel
Ich würde gern das Lady Bug-Theme benutzen. Allerdings ist die Überschrift unter index.php?/pages/archives.html (Plugin "Sortierbares Archiv der Einträge") kaputt und das Datum steht außerhalb des Eintrags. Ich find einfach die .tpls nicht, in denen ich das ändern kann. Welche sind das?

Re: Theme "Lady Bug" - Problem mit "Sortierb

Posted: Mon May 07, 2007 9:43 am
by garvinhicking
Hi!

Wenn Du uns deine URL nennst könnten wir uns das mal ansehen?

Grüße,
Garvin

Posted: Mon May 07, 2007 9:34 pm
by Lariel
Danke für die schnelle Antwort. Der Blog lief bisher nur auf meinem XAMPP. Ich hab das Rohgerüst nun mal schnell online gestellt. Die URL: http://cetp.ce.funpic.de/blog/index.php ... hives.html

Posted: Mon May 07, 2007 11:39 pm
by judebert
(Sorry, I designed LadyBug, but I don't speak German. Garvin can translate if necessary.)

The date and title are reversed on the archive page. Title must come before date, or the date will be obscured.

Garvin, is this a modification to the default template? It looks like I should update the LadyBug template's archive .tpl, if such a thing exists.

Posted: Tue May 08, 2007 9:53 am
by garvinhicking
Hi Judebert!

In fact, the order of _date_ and _entry comes from the customarchive plugin, not from a s9y template.

So it seems to just be a problem that the plugin emits those two shuffled. I'm too afraid to change the order as it might break other existing themes...is there a chance to get Ladybug to work with _date coming before _title?

The customarchive plugin is not templated, so you can't really change that output. (Only by disabling its option "articleformat", but then the output also looks differently...)

Regards,
Garvin

Posted: Tue May 08, 2007 3:18 pm
by judebert
We could swap the date and title in the entries.tpl, but then the date would be in the bubble instead of the title.

Is there a way to tell, in the template or in the CSS, when we're on the custom archive page? If there is, we could swap the date and title only for custom archive pages.

Posted: Tue May 08, 2007 3:35 pm
by garvinhicking
Hi!

The problem is that it doesn't help you to detect if the custom archive tpl is in effect because the output happens in the plugin and not in entries.tpl.

Maybe for CSS it would help to add a CSS class to the <body> of the page. You can use the $staticpage_pagetitle variable for that, but this one corresponds to the pagetitle variable that the user entered for that specific page...

Regards,
Garvin

Posted: Tue May 08, 2007 4:26 pm
by judebert
Okay, I've got a CSS solution (thanks, EditCSS!).

Find this code in style.css:

Code: Select all

.serendipity_title {
  background-color: #FF8080;
  -moz-border-radius: 10px; /* For the smart people */
  padding: 5px;
  position: relative;
  top: -1em;
  margin: -5px 20%;
  text-align: center;
}
Add an "h3" before the .serendipity_title, so it looks like this:

Code: Select all

h3.serendipity_title {
  background-color: #FF8080;
  -moz-border-radius: 10px; /* For the smart people */
  padding: 5px;
  position: relative;
  top: -1em;
  margin: -5px 20%;
  text-align: center;
}
The LadyBug template reverses the tags for the date and title, so search engines will rank your entries according to their titles. The custom archive plugin is not templated, and therefore does not reverse the tags. It puts no content in the title's h4 tag.

By specifying the attributes of only the LadyBug-generated title, we remove the attributes of the custom archive version. It is no longer displayed.

Alternative solutions would be to add "margin-top" or "padding-top" in the h4.serendipity_date, or to set display:none in the h3.serendipity_title.

Posted: Tue May 08, 2007 10:26 pm
by Lariel
Adding h3 to the existing ".serendipity_title" works like a charm, I wouldn't have thought that it would be that easy. Thanks alot. I couldn't have figured that out myself.

Code: Select all

h4.serendipity_title {
    display: none;
}
would also do. But it's h4 not h3.

Posted: Wed May 09, 2007 8:08 pm
by Lariel
Well there's another problem with this theme: The headline of the blog is much too big in IE. I tried to change it in #serendipity_banner. That changes the font size in Firefox and Opera but not in IE. Why is that?