Theme "Lady Bug" - Problem mit "Sortierbares

Hier können Probleme und alles andere in Deutscher Sprache gelöst werden.
Post Reply
Lariel
Regular
Posts: 22
Joined: Sun May 06, 2007 12:55 am

Theme "Lady Bug" - Problem mit "Sortierbares

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post by garvinhicking »

Hi!

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

Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Lariel
Regular
Posts: 22
Joined: Sun May 06, 2007 12:55 am

Post 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
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
Lariel
Regular
Posts: 22
Joined: Sun May 06, 2007 12:55 am

Post 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.
Lariel
Regular
Posts: 22
Joined: Sun May 06, 2007 12:55 am

Post 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?
Post Reply