Napísané: So Máj 06, 2006 5:10 pm
2 dutch: Odtranil som to... najprv idem otestovat, ze ci to bude hadzat normaly datum prispevku a nie aktualny.
česko-slovenské fórum pre užívateľov s podporou zdarma
https://forum.etomite.sk/
Kód: Vybrať všetko
function bend_days($string) {
$trans = array(
"Pondelok"=>"Pondelok",
"Utorok"=> "Utorok",
"Streda"=>"Stredu",
"Štvrtok"=>"Štvrtok",
"Piatok"=>"Piatok",
"Sobota"=>"Sobotu",
"Nedeľa"=>"Nedeľu",
);
$string = strtr($string, $trans);
return $string;
}
Kód: Vybrať všetko
misto tohodle:
if ($show_date == 1) {
$output .= "on ".strftime($timeformat, $resource[$x]['createdon'] + $timeadjust);
}
napis tohle:
if ($show_date == 1) {
$timedate = strftime($timeformat, $resource[$x]['createdon'] + $timeadjust);
$output .= "on ";
$output .= bend_days($timedate);
}
aaaarrrrrgggghhhh ja vedel ze ti lezu na nervy_rasel^ napísal:
Kód: Vybrať všetko
$output .= "\n<fieldset><legend>";
if ($title_as_link == 1) {
$output .= "<a href=[~".$resource[$x]['id']."~]>";
}
$output .= $resource[$x]['pagetitle'];
if ($title_as_link == 1) {
$output .= "</a>";
}
$output .= "</legend>\n";
if ($title_only != 1) {
$output .= $rest."\n";
}
if (($show_author == 1) || ($show_date == 1)) {
$output .= "<p style=\"text-align:right;\">Posted ";
if ($show_author == 1) {
$output .= "by ".$username." ";
}
if ($show_date == 1) {
$output .= "on ".strftime($timeformat, $resource[$x]['createdon'] + $timeadjust);
}
$output .= "</p>";
}
$output .= "</fieldset>\n";
Kód: Vybrať všetko
$output .= "\n<div style='border: none; border-bottom: 1px solid red;'><p><strong>";
if ($title_as_link == 1) {
$output .= "<a href=[~".$resource[$x]['id']."~]>";
}
$output .= $resource[$x]['pagetitle'];
if ($title_as_link == 1) {
$output .= "</a>";
}
$output .= "</strong></p><p>\n";
if ($title_only != 1) {
$output .= $rest."\n";
}
if (($show_author == 1) || ($show_date == 1)) {
$output .= "</p><p style=\"text-align:right;\">Posted ";
if ($show_author == 1) {
$output .= "by ".$username." ";
}
if ($show_date == 1) {
$output .= "on ".strftime($timeformat, $resource[$x]['createdon'] + $timeadjust);
}
$output .= "</p>";
}
$output .= "</div>\n";
Zatial len u mna na localohste_rasel^ napísal:Nz, a na ktorom webe ho pouzivas?