First of all you did it wrong adding something to index.php. That way you destroyed the core file. Everything in miniBB may be achieved at the add-ons level, not saying about your problem which is quite simple to solve, but from completely different side. Turn on your imagination, and stop flooding our forums with your lame questions please. I already wrote you in this thread
that you must use 1st page news add-on, and for displaying a forum icon you just need to modify it a bit similarly how it's done for bb_func_vtopic.php.