Seite 7 von 7

Verfasst: 22.12.2003 14:33
von Acid
..poste mal einen Link zur portal.php (als *.txt abspeichern).

Verfasst: 22.12.2003 14:53
von eVo
Da isser ;-)

http://23.sponged.net/portal.txt

Ich denke mal die Last Topics Funktion im Portal von AWSW enthält Teile
vom "Recent Topic Mod" von AWSW

MfG eVo

Verfasst: 23.12.2003 12:48
von Acid
Acid hat geschrieben:Versuch´s ma damit..

Code: Alles auswählen

#
# ----- [ DATEI ÖFFNEN ] ---------------------
# portal.php
#
# ----- [ FINDE ] ---------------------
#
        $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

        $template->assign_block_vars('recent', array(
                   'TOPIC_TITLE' => $topic_title,
#
# ----- [ MIT FOLGENDEM ERSETZEN ] ---------------------
#

        $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

        //kategorien
        if( $line[$i]['k_id'] !=0 )
        {
                $sql="SELECT kategorie FROM ". TOPIC_KAT ." WHERE k_id = ". $line[$i]['k_id'];
                if( $result = $db->sql_query($sql) )
                {
                        $kat = $db->sql_fetchrow($result);
                        $topic_kat = '[' .$kat['kategorie'] .']';
                }
        }
        else
        {
                $topic_kat = '';
        }
        //kategorien

        $template->assign_block_vars('recent', array(
                   'TOPIC_TITLE' => $topic_title,
                   'TOPIC_KAT' => $topic_kat,
..und in der portal_body.tpl dann noch {recent.TOPIC_KAT} (suche nach "recent") eintragen.

Verfasst: 23.12.2003 13:19
von eVo
Hi,
das ist ja wirklich mal ein Weihnachtsgeschenk ;)
Vielen Dank an Dich das klappt wunderbar!

Ich möchte die Chance gleich nutzen, und auf ein anderes Problem
hinweisen was ich habe (du hattest da schon mal geantwortet)

http://www.phpbb.de/viewtopic.php?p=242 ... ht=#242657

Frohe Weihnachten & Grüße
eVo