Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
Praetonius

unterschiedliche Farben für die Kategorien

Recommended Posts

Hallo,

ein Bekannter von mir hat auch ein IPB und möchte jetzt zur besseren Übersicht den Kategorien unterschiedliche Farben geben (also er möchte die für nicht alle sichtbaren Foren hervorheben).

Er hat mich gefragt ob das geht, ich wusste allerdings keine Antwort darauf...

Ist das irgendwie möglich?

Share this post


Link to post

Da muss irgendwo ein Fehler drin sein.

Wenn ich das mache:

====================

Open sources/Admin/ad_categories.php

====================


====================

Find TWICE:

====================


 	 $ADMIN->html .= $SKIN->add_td_row( array( "<b>Category Name</b>" ,

              $SKIN->form_input("CAT_NAME", $cat_name)

              )      );


====================

Add under EACH:

====================


 	 $ADMIN->html .= $SKIN->add_td_row( array( "<b>Category Image</b>" ,

                     $SKIN->form_input("IMAGE", $cat['image])

                 )  );

                 



====================

Save and close sources/Admin/ad_categories.php

====================
Dann bekomme ich bei "New Category" und "Manage Forums" folgende Fehlermeldung:
Parse error: parse error, expecting `']'' in /kunden/xxx/xxx/xxx/xxx/xxx/forum/sources/Admin/ad_categories.php on line 369
In Zeile 369 steht
0 => array( 1, 'Visible' ),

Kann einer helfen?

Edited by Praetonius

Share this post


Link to post

Hab das Thema erst jetzt gesehen. Das rot markierte Zeichen fehlt, deswegen der Parserfehler:

  $ADMIN->html .= $SKIN->add_td_row( array( "<b>Category Image</b>" ,

                    $SKIN->form_input("IMAGE", $cat['image'])

                )  );

Share this post


Link to post

Hmpf:

Noch ein Fehler gefunden. Wenn ich zitieren will, dann erscheint ein Fehler:

Warning: Missing argument 2 for table_top() in /xxx/xxx/xxx/xxx/xxx/xxx/forum/Skin/s1/skin_post.php on line 541

@Stefan: hast du dafür auch eine Lösung?

Share this post


Link to post

Der Fehler sagt aus, das versucht wird die Methode table_top() aufzurufen, ohne den zweiten Parameter zu übergeben. Dieser zweite Parameter wird durch den Mod hinzugefügt, also kontrolliere mal die folgende Stelle in der Anleitung:

====================

Open sources/lib/post_new_post.php

====================

====================

Find:

====================

$start_table = $class->html->table_top( "{$ibforums->lang['top_txt_new']} {$class->forum['name']}");

====================

Replace with:

====================

$start_table = $class->html->table_top( "{$ibforums->lang['top_txt_new']} {$class->forum['name']}",$class->forum['cat_id']);

Bzw. auch diese Stelle:

====================

Open sources/lib/post_reply_post.php

====================

====================

Find:

====================

$start_table = $class->html->table_top( "{$ibforums->lang['top_txt_reply']} {$this->topic['title']}");

====================

Replace with:

====================

$start_table = $class->html->table_top( "{$ibforums->lang['top_txt_reply']} {$this->topic['title']}", $class->forum['cat_id']);

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×