[gelöst]Leerzeile zwischen Terminen beim Plugin: my calendar

Hier können Probleme und alles andere in Deutscher Sprache gelöst werden.
Post Reply
ToniDonello
Regular
Posts: 32
Joined: Sun Jun 24, 2007 1:38 pm
Location: Rüdesheim/Nahe Germany

[gelöst]Leerzeile zwischen Terminen beim Plugin: my calendar

Post by ToniDonello »

Hallo.
Ich habe das Theme Joshua und möchte beim Plugin "my calendar" eine Leerzeile zwischen die Termine einfügen. Kann mir jemand sagen wo ich dies im Code ändern kann ?

http://www.ingbuero-faktor4.de/serendipity/index.php
Last edited by ToniDonello on Tue Jul 03, 2007 5:25 pm, edited 2 times in total.
Grüße aus Rüdesheim/Nahe Germany
Toni Donello
http://www.edinger-schwickert.de
lordcoffee
Regular
Posts: 308
Joined: Tue Nov 29, 2005 10:22 pm
Location: Munich - Germany
Contact:

Post by lordcoffee »

Hi!

Musste zwar auch etwas suchen aber hier die/eine Lösung:

öffne die "serendipity_plugin_mycalendar.php" und gehe zu Zeile 175.
Dort steht folgendes:

Code: Select all

$cont = '<div class="s9y_mc s9y_mc_current">' . $cont . '</div>';
das ersetzt Du mit

Code: Select all

$cont = '<div class="s9y_mc s9y_mc_current">' . $cont . '</div><br>';
Also quasi nur ein break eingefügt. Das Ganze dann nochmal in Zeile 178 an welcher steht:

Code: Select all

$cont = '<div class="s9y_mc s9y_mc_past">' . $cont . '</div>';
welches dann durch:

Code: Select all

$cont = '<div class="s9y_mc s9y_mc_past">' . $cont . '</div><br>';
zu ersetzen wäre. Hoffe das hat geholfen,

Lordcoffee
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Etwas sinnvoller wäre es jedoch, nicht das plugin zu editieren, sondern die style.css des eigenen Templates zu erweitern:

Code: Select all

.s9y_mc_current,
s9y_mc_past {
margin-bottom: 4em;
}
So muss man bei einem update des plugins nicht daran denken seine Änderungen durchzuführen.

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/
lordcoffee
Regular
Posts: 308
Joined: Tue Nov 29, 2005 10:22 pm
Location: Munich - Germany
Contact:

Post by lordcoffee »

Stimmt! Da habe ich wohl vor Bäumen den Wald nicht gesehen. :D

Lordcoffee
ToniDonello
Regular
Posts: 32
Joined: Sun Jun 24, 2007 1:38 pm
Location: Rüdesheim/Nahe Germany

Post by ToniDonello »

Vielen Dank.
Das S9y-Forum hat mich mal wieder überzeugt.
Grüße aus Rüdesheim/Nahe Germany
Toni Donello
http://www.edinger-schwickert.de
ToniDonello
Regular
Posts: 32
Joined: Sun Jun 24, 2007 1:38 pm
Location: Rüdesheim/Nahe Germany

Post by ToniDonello »

garvinhicking wrote:Hi!

Etwas sinnvoller wäre es jedoch, nicht das plugin zu editieren, sondern die style.css des eigenen Templates zu erweitern:

Code: Select all

.s9y_mc_current,
s9y_mc_past {
margin-bottom: 4em;
}
So muss man bei einem update des plugins nicht daran denken seine Änderungen durchzuführen.

Grüße,
Garvin
Hallo noch mal,

Bei dieser Änderung wird nur eine Leerzeile nach dem 1. Termin eingetragen. Zwischen dem 2. und 3. passiert nichts. Dort würde ich die Leerzeile ebenfalls benötigen.
Grüße aus Rüdesheim/Nahe Germany
Toni Donello
http://www.edinger-schwickert.de
ToniDonello
Regular
Posts: 32
Joined: Sun Jun 24, 2007 1:38 pm
Location: Rüdesheim/Nahe Germany

Post by ToniDonello »

Auch noch in die style.css vom Theme:

/**my calendar 1 Leerzeile zwischen den Terminen**/

.s9y_mc_current,
s9y_mc_past {
margin-bottom: 2em;

}

.s9y_mc,
s9y_mc_future {
margin-bottom: 2em;

}
Grüße aus Rüdesheim/Nahe Germany
Toni Donello
http://www.edinger-schwickert.de
Post Reply