Boardunity & Video Forum

Boardunity & Video Forum (https://boardunity.de/)
-   Programmierung und Datenbanken (https://boardunity.de/programmierung-datenbanken-f23.html)
-   -   PHP-Frage/Hilfe für SMF Modifikation (https://boardunity.de/php-frage-hilfe-f-r-smf-modifikation-t5634.html)

geber 01.02.2008 09:29

PHP-Frage/Hilfe für SMF Modifikation
 
Hi,

wollte ein neues Board spontan mittels eines kleines Bildes als Neu kennzeichnen, benötige aber kurze Hilfe bei einer der PHP-IF-Konstellation.

BoardIndex.template.php (original)
Code:

...
                <td class="windowbg2" align="left" width="60%">
                        <a name="b', $board['id'], '"></a>
                        <b>', $board['link'], '</b><br />
                        ', $board['description'];

                                // Show the "Moderators: ".  Each has name, href, link, and id. (but we're gonna use link_moderators.)
...

Folgendermaßen hatte ich mir das Vorgestellt..., will aber nicht so recht :(

BoardIndex.template.php (neu/geplant)
Code:

...
                <td class="windowbg2" align="left" width="60%">
                        <a name="b', $board['id'], '"></a>';
                        if ($board['id']==15)
                        {
                            echo'<b>', $board['link'], '</b> <img src="neu.gif"><br />';
                        }
                        else
                            echo'<b>', $board['link'], '</b><br />';
                        }
                        echo'

                        ', $board['description'];

                                // Show the "Moderators: ".  Each has name, href, link, and id. (but we're gonna use link_moderators.)
...

Vielen dank für Eure Hilfe :p


.:.geber.:.

Fabio 01.02.2008 10:11

nach den else fehlt noch die geschweifte klammer ....
aber ansonsten sollte es gehen abgesehen von der komischen syntax die da verwendet wird...
die " sind nicht escapt und warum zur hölle wind da kommas statt punkte ?

geber 01.02.2008 10:37

Das gibts doch nicht... :eek: Das wars :(

...danke Fabio :D


.:.geber.:.


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:45 Uhr.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25