. .
pragmaMx Support Forum 05 Dezember 2008, 12:29:19 *
Willkommen Gast. Bitte einloggen oder registrieren.


Einloggen mit Benutzername und Passwort
News:
Brauchen Sie Hilfe? Bitte nutzen Sie unsere Suchfunktion bevor Sie Beiträge oder Fragen ins Board schreiben! Viele Fragen wurden bereits gestellt und beantwortet. Danke!
 
Übersicht Hilfe Forenregeln / Boardrules
 
Suche
Seiten: [1]   Nach unten
Drucken
Autor Thema: [Erledigt] Bitte um Hilfe, bei selbst geändertem Geburtstagsblock  (Gelesen 341 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
GerhardSt
Beta-Tester
****
Offline Offline

Geschlecht: Männlich
Beiträge: 829



« am: 29 August 2008, 17:13:01 »

Hallo, smile

ich habe den Geburtstagsblock, so umgecodet, das er jetzt 2 Spalten hat. Wenn vorhanden, werden in der linken aktuelle Geburtstage angezeigt und in der rechten, die der nächsten 30 Tage.

Wenn beide Spalten angezeigt werden, ist alles in Ordnung. Wenn aber am aktuellen Tag keiner Geburtstag hat, wir das ganze Theme unterhalb des Blockes verschoben und der Block ganz links zusammengequetscht.
Da der Inhalt korrekt ist, tippe ich mal auf einen Fehler in der Ausgabe, vielleicht kann mir da wer einen Tipp geben.

Hier mal der Code der Ausgabe:
Code: [Select]  
$content = '<center>';
if (($counter) OR ($counter1)) {
if ($counter) {
        $content .= '<table width="100%"><tr><td valign="top" width="50%"><center><strong>';
    $content .= _MBIRTHDAY . "</strong><p>" . mxCreateImage('images/birthday/tcake.gif', _BIRTHDAYHAPPY) . "</p>";
    $content .= ($blockheigth == 0 || $counter <= 5) ? $list : "<div style=\"height: " . $blockheigth . "px; overflow : auto;\">" . $list . "</div>>";
    $content .= "<p><br /><strong>" . _MHAPPYBIRTHDAY . "</strong></p><p>" . mxCreateImage('images/birthday.gif', _BIRTHDAYHAPPY) . "</p></center></td></tr></table>";
} else {
        $content .= '<table width="100%"><tr>';
}
    $content .= '<td valign="top" width="50%"><center><strong>' . _MNBIRTHDAY . "</strong><p>" . mxCreateImage('images/birthday/tcake.gif', _BIRTHDAYHAPPY) . "</p>";
    $content .= ($blockheigth == 0 || $counter1 <= 5) ? $list1 : "<div style=\"height: " . $blockheigth . "px; overflow : auto;\">" . $list1 . "</div></center></td></tr></table>";
} else {
    $content .= _NOMBIRTHDAYS;
}
        $content .= '</center>';

Nach einigen Test´s, habe ich festgestellt, das anscheinend das zweite mal das '<table with="100%">' nicht richtig verarbeitet wird. Denn wenn ich dort eine fixe Breite einstelle, wird die Anzeige wieder zur Mitte verschoben und nach langem probieren, habe ich es sogar geschafft, das bei meiner Auflösung die Anzeige wieder richtig war. Leider stimmt das dann ja nur für eine Auflösung.
Was mache ich falsch?

Danke, für Eure Hilfe, Gerhard
« Letzte Änderung: 31 August 2008, 14:48:49 von JoergK » Gespeichert

CMS-Version:            pragmaMx 0.1.11, 1.30.2.19/2008-07-19
PHP-Version:             5.2.6
MySQL-Version:         4.1.22-standard
Server-Version:         Apache

IE 7 oder Firefox
GerhardSt
Beta-Tester
****
Offline Offline

Geschlecht: Männlich
Beiträge: 829



« Antworten #1 am: 31 August 2008, 12:01:34 »

Ist erledigt, ich habe nur wiedereinmal zu kompliziert gedacht smile

Das ganze muss so aussehen:
Code: [Select]  
$content = '<center><table width="100%"><tr>';
if (($counter) OR ($counter1)) {
if ($counter) {
$content .= '<td valign="top" width="50%"><center><strong>';
    $content .= _MBIRTHDAY . "</strong><p>" . mxCreateImage('images/birthday/tcake.gif', _BIRTHDAYHAPPY) . "</p>";
    $content .= ($blockheigth == 0 || $counter <= 5) ? $list : "<div style=\"height: " . $blockheigth . "px; overflow : auto;\">" . $list . "</div>>";
    $content .= "<p><br /><strong>" . _MHAPPYBIRTHDAY . "</strong></p><p>" . mxCreateImage('images/birthday.gif', _BIRTHDAYHAPPY) . "</p></center></td>";
}
    $content .= '<td valign="top" width="50%"><center><strong>' . _MNBIRTHDAY . "</strong><p>" . mxCreateImage('images/birthday/tcake.gif', _BIRTHDAYHAPPY) . "</p>";
    $content .= ($blockheigth == 0 || $counter1 <= 5) ? $list1 : "<div style=\"height: " . $blockheigth . "px; overflow : auto;\">" . $list1 . "</div></center></td>";
} else {
    $content .= _NOMBIRTHDAYS;
}
$content .= '</tr></table></center>';
Gespeichert

CMS-Version:            pragmaMx 0.1.11, 1.30.2.19/2008-07-19
PHP-Version:             5.2.6
MySQL-Version:         4.1.22-standard
Server-Version:         Apache

IE 7 oder Firefox
Seiten: [1]   Nach oben
Drucken
 
Gehe zu:  

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
design by hENNE, layout based on YAML