[TIP/TRICK] icons categories in your stats [Adk Personal Icons]

Started by Greg Zimmerman, December 25, 2013, 01:12:53 PM

Previous topic - Next topic

Greg Zimmerman

Well I find myself putting the finishing touches to my project and I thought adding the icons
the category next to the names to look more presentable

backup
stats.template.php

foreach ($context['top_boards'] as $board)
{


then add.

if (file_exists($settings['default_theme_dir'] . '/images/AdkPif/'.$board['id'].'/off.png'))
$icon_dc = $settings['default_images_url']. '/AdkPif/' .$board['id']. '/off.png';
else
$icon_dc = $settings['default_images_url']. '/off.png';


search

', $board['link'], '
</dt>


add before

<span class="icon_forum"><img style="width: 30px; height: 30px; vertical-align: middle;" src="'.$icon_dc.'" alt="'.$board['name'].'" title="'.$board['name'].'" /> </span>

That would be all

icon_forum class and have to apply any css based stilo

regards


Advertisement: