vielen Dank für Deine Nachricht. Ich habe jetzt den Code:
Code: Select all
<?php
print_r(system('locale -a'));
?>
http://mg888.ohost.de/munzli.php
aufrufst, müsstest Du die Meldung sehen können. Es ist leider eine Fehlermeldung!
Gruß,
Martin
Code: Select all
<?php
print_r(system('locale -a'));
?>
Code: Select all
if ($ccount > 0)
{
$s .= "<div class='blogcomments'>";
while ($comment = mysql_fetch_array($cres))
{
$s .= "<div class='blogcommentheader'><b>";
if ($comment ["url"] != "http://" && $comment["url"] != "") {
$s .= "<a href='" . $comment["url"] . "'>";
}
$s .= $comment["author"];
if ($comment ["url"] != "") {
$s .= "</a>";
}
$s .= ":</b></div><br />";
$s .= nl2br(trim($comment["comment"]));
$s .= "<div style='height: 1px; border-top: 1px dashed #000; width: 100%; padding: 0; margin: 6px 0 6px 0;'></div>";
}
$s .= "</div>";
}
Code: Select all
.blogcommentheader a, .blogcommentheader a:link, .blogcommentheader a:visited
{
color: #ff0000;
}
Code: Select all
.blogcommentheader a:hover, .blogcommentheader a:active, .blogcommentheader a:focus
{
color: #0000ff;
}
Keine Ahnung, ob das möglich ist bzw. was ich da jetzt genau machen muss. Kann jemand was dazu sagen?Muss das denn auf diese Art und Weise sein? Kannst du nicht einfach ein Array nehmen, in dem du alle Namen hinein schreibst und dann einfach den richtigen herauspickst?
Also ungefähr so:
Code:
<?php
$wochentage = Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
echo $wochentage[date("w")];
?>
yep so würde das auch gehen aber ich würde lieber wissen wie deine locales heissen und es dan korrekt per setlocale machen... da müsstest du dein ISP fragen...nehemia wrote: Also ungefähr so:
Code:?>Code: Select all
<?php $wochentage = Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"); echo $wochentage[date("w")];
Keine Ahnung, ob das möglich ist bzw. was ich da jetzt genau machen muss. Kann jemand was dazu sagen?
Gruß, Martin
Code: Select all
$s .= "<span class='blogdate'>" . strftime("%a %d/%m/%y %H:%M", $e["time"]) . "</span>";
Code: Select all
$wochentage = Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
$s .= "<span class='blogdate'>" . $wochentage[strftime("%w", $e["time"])] . ', ' . strftime("%d/%m/%y %H:%M", $e["time"]) . "</span>";
munzli wrote:wie gesagt hab ich ein paar änderungen gemacht... musst halt selbst das css bearbeiten... firebug ist ein geniales add-on für das!
hier kannst du sonst mein teil des css das ich geschrieben habe mal anschauen:die seite werde ich posten sobald ich fertig binCode: Select all
.blogcommentheader, .blogcontent, .blogcomments, .blogheader { clear: both; display: block; } .blogtext { float: left; width: 510px; padding: 10px; margin-bottom: 10px; } .blogcontent a, .blogcontent a:visited, .blogcontent a:link { color: #000; background-color: #fff; text-decoration: none; } .blogcontent a:hover, .blogcontent a:focus, .blogcontent a:active { color: #fff; background-color: #000; } .blogdate { float: right; color: #666; font-size: 6pt; } .blogheadline { background-color: #000; display: inline; font-size: 10pt; color: #fff; font-weight: bold; padding: 2pt; } .blogcomments .right { float: right; } .blogheader { margin-bottom: 10px; } .addblogcomment input, .addblogcomment textarea { width: 350px; border: solid 1px #333; background-color: #ddd; } .gbInputFieldCaptcha { width: 50px !important; margin: 6px 0px 11px 0px; } .addblogcomment label { display: block; } .addblogcomment p { } .addblogcomment, .comments { margin-top: 7px; padding: 0px 0px 7px 0px; border-top: dashed 1px #000; } .blogcomments a, .blogcomments a:visited, .blogcomments a:link { color: #353535; background-color: none; text-decoration: none; } .blogcomments a:hover, .blogcomments a:active, .blogcomments a:focus { text-decoration: underline; }
der effekt kannst du noch bearbeiten im blog.modul.php
duration: 1000, transition: Fx.Transitions.Expo.easeOut
ist jetzt eingestellt.... du kannst auf der mootools seite mal schauen und z.B.
duration: 1500, transition: Fx.Transitions.Elastic.easeOut
einfügen