Welcome, Guest. Please Login or Register.
April 28, 2025, 09:07:26 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  German User Help  |  Hilfe zu YaBB SE  |  Kategorie Logo « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Kategorie Logo  (Read 801 times)
Memo
Noobie
*
Posts: 5


I'm a llama!

Kategorie Logo
« on: April 09, 2003, 10:30:08 AM »
Reply with quote

Hallo

Gibt es eine Möglichkeit dass jede Kategorie ein eigenes Logo in der Uebersicht hat? Das würde noch cool aussehen.

Gruss
Memo
Logged
chris
Guest
Re:Kategorie Logo
« Reply #1 on: April 09, 2003, 10:35:08 AM »
Reply with quote

Minimal-Lösung:

1. BoardIndex.php öffnen und nach

   $curcat=$row_board['ID_CAT'];
            echo "<tr> <td colspan=\"5\" class=\"catbg\" height=\"18\">\n";
            echo "<a name=\"$row_board[ID_CAT]\"><b>$row_board[catName]</b></a></td>\n</tr>\n";


suchen...

2. den Code ungefähr so abwandeln:

            $curcat=$row_board['ID_CAT'];
            echo "<tr> <td colspan=\"5\" class=\"catbg\" height=\"18\">\n";
            echo '<img src="'.$imagesdir.'/cat_icon_'.$row_board['ID_CAT'].'.gif" alt="'.$row_board['catName'].'" border="0" />&nbsp;&nbsp;&nbsp;';
            echo "<a name=\"$row_board[ID_CAT]\"><b>$row_board[catName]</b></a></td>\n</tr>\n";


(ich hab da nur eine Zeile eingefügt)

Dann legst Du in Deinem YaBBImages-Ordner für jede Kategorie ein Icon ab... Name: cat_icon_XXX.gif - wobei XXX für die Category-ID steht... für die Kategorie 1 hiesse das Bild dann cat_icon_1.gif

Die IDs der Kategorien kannst Du am einfachsten mit phpMyAdmin rausfinden.... schau einfach in die Tabelle "yabbse_categories"
« Last Edit: April 09, 2003, 10:41:03 AM by Christian Land » Logged
Memo
Noobie
*
Posts: 5


I'm a llama!

Re:Kategorie Logo
« Reply #2 on: April 09, 2003, 07:30:48 PM »
Reply with quote

Danke für Deine Hilfe Christian!

Ich habe mich leider falsch ausgedruckt. Ich meinte das Logo vor der Board_id! (Dieser Diamand oder was das ist). Dort möchte ich für jedes Board ein anderes Logo haben!

Hast Du da auch eine Hilfe?

Gruss
Memo
Logged
Dan_Hober
Noobie
*
Posts: 2


I'm a llama!

Re:Kategorie Logo
« Reply #3 on: April 10, 2003, 12:46:27 PM »
Reply with quote

Gabs da nicht mal ein Mod dafür? Suchen suchen suchen!
Logged
Pitti
Guest
Re:Kategorie Logo
« Reply #4 on: April 10, 2003, 12:54:39 PM »
Reply with quote

na selbst ohne mod liefert doch die lösung oben ne klasse vorlage.  8)
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  German User Help  |  Hilfe zu YaBB SE  |  Kategorie Logo « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.028 seconds with 18 queries.