سايت قميا
مديراني كه از انجمن ساز اس ام اف نسخه 2 استفاده ميكنند ميتونن براي زيبا سازي صفحه اصلي انجمنشون از اين آموزش استفاده كنند

قرار دادن عكس يا آيكن مرتبط در كنار هر انجمن

ميتونيد از مد زير استفاده كنيد

کد:
http://custom.simplemachines.org/mods/index.php?mod=511
به صورت دستي هم اگر ميخواهيد نصب كنيد به اين صورت است
بايد فايل هاي BoardIndex.template.php و MessageIndex.template.php قالبتونو ويرايش كنيد.قالبي كه نصب هست و استفاده ميكنيد

اين قسمت را در قالب Boradindex پيدا كنيد

کد PHP:
            /* Each board in each category's boards has:
            new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
            children (see below.), link_children (easier to use.), children_new (are they new?),
            topics (# of), posts (# of), link, href, and last_post. (see below.) */
            
foreach ($category['boards'] as $board)
            {
                echo 
'
                <tr id="board_'
$board['id'], '" class="windowbg2">
                    <td class="icon windowbg"'
, !empty($board['children']) ? ' rowspan="2"' '''>
                        <a href="'
, ($board['is_redirect'] || $context['user']['is_guest'] ? $board['href'] : $scripturl '?action=unread;board=' $board['id'] . '.0;children'), '">';

                
// If the board or children is new, show an indicator.
                
if ($board['new'] || $board['children_new'])
                    echo 
'
                            <img src="'
$settings['images_url'], '/'$context['theme_variant_url'], 'on'$board['new'] ? '' '2''.png" alt="'$txt['new_posts'], '" title="'$txt['new_posts'], '" />';
                
// Is it a redirection board?
                
elseif ($board['is_redirect'])
                    echo 
'
                            <img src="'
$settings['images_url'], '/'$context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
                
// No new posts at all! The agony!!
                
else
                    echo 
'
                            <img src="'
$settings['images_url'], '/'$context['theme_variant_url'], 'off.png" alt="'$txt['old_posts'], '" title="'$txt['old_posts'], '" />';

                echo 
'
                        </a>
                    </td> 
اين كد ها را جايگزين كنيد

کد PHP:
            /* Each board in each category's boards has:
            new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
            children (see below.), link_children (easier to use.), children_new (are they new?),
            topics (# of), posts (# of), link, href, and last_post. (see below.) */
            
foreach ($category['boards'] as $board)
            {
                echo 
'
                <tr id="board_'
$board['id'], '" class="windowbg2">
                    <td class="icon windowbg"'
, !empty($board['children']) ? ' rowspan="2"' '''>
                        <a href="'
, ($board['is_redirect'] || $context['user']['is_guest'] ? $board['href'] : $scripturl '?action=unread;board=' $board['id'] . '.0;children'), '">';
                
// If the board or children is new, show an indicator.
                
if ($board['new'] || $board['children_new'])
                {
                    if (
file_exists($settings['theme_dir'] . '/images/icons/' $board['id'] . '/' $context['theme_variant_url'] . 'on.png'))
                        
$board_new_img '/icons/' $board['id'];
                    else
                        
$board_new_img '';
                    echo 
'
                            <img src="'
$settings['images_url'], $board_new_img'/'$context['theme_variant_url'], 'on'$board['new'] ? '' '2''.png" alt="'$txt['new_posts'], '" title="'$txt['new_posts'], '" />';
                }
                
// Is it a redirection board?
                
elseif ($board['is_redirect'])
                {
                    if (
file_exists($settings['theme_dir'] . '/images/icons/' $board['id'] . '/' $context['theme_variant_url'] . 'redirect.png'))
                        
$board_redirect_img '/icons/' $board['id'];
                    else
                        
$board_redirect_img '';
                    echo 
'
                            <img src="'
$settings['images_url'], $board_redirect_img'/'$context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
                }
                
// No new posts at all! The agony!!
                
else
                {
                    if (
file_exists($settings['theme_dir'] . '/images/icons/' $board['id'] . '/' $context['theme_variant_url'] . 'off.png'))
                        
$board_nonew_img '/icons/' $board['id'];
                    else
                        
$board_nonew_img '';
                    echo 
'
                            <img src="'
$settings['images_url'], $board_nonew_img'/'$context['theme_variant_url'], 'off.png" alt="'$txt['old_posts'], '" title="'$txt['old_posts'], '" />';
                }
                echo 
'
                        </a>
                    </td> 

فايل MessageIndex.template.php باز كنيد

قسمت زير را پيدا كنيد

کد PHP:
            // If the board or children is new, show an indicator.
            
if ($board['new'] || $board['children_new'])
                echo 
'
                            <img src="'
$settings['images_url'], '/' .$context['theme_variant_url'], 'on'$board['new'] ? '' '2''.png" alt="'$txt['new_posts'], '" title="'$txt['new_posts'], '" />';
            
// Is it a redirection board?
            
elseif ($board['is_redirect'])
                echo 
'
                            <img src="'
$settings['images_url'], '/' .$context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
            
// No new posts at all! The agony!!
            
else
                echo 
'
                            <img src="'
$settings['images_url'], '/' .$context['theme_variant_url'], 'off.png" alt="'$txt['old_posts'], '" title="'$txt['old_posts'], '" />';

            echo 
'
                        </a>
                    </td>
                    <td class="info">
                        <a class="subject" href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a>'
و كد زير را جايگزين كنيد

کد PHP:
            // If the board or children is new, show an indicator.
            
if ($board['new'] || $board['children_new'])
            {
                if (
file_exists($settings['theme_dir'] . '/images/icons/' $board['id'] . '/' $context['theme_variant_url'] . 'on.png'))
                    
$board_new_img '/icons/' $board['id'];
                else
                    
$board_new_img '';
                echo 
'
                            <img src="'
$settings['images_url'], $board_new_img'/' .$context['theme_variant_url'], 'on'$board['new'] ? '' '2''.png" alt="'$txt['new_posts'], '" title="'$txt['new_posts'], '" />';
            }
            
// Is it a redirection board?
            
elseif ($board['is_redirect'])
            {
                if (
file_exists($settings['theme_dir'] . '/images/icons/' $board['id'] . '/' $context['theme_variant_url'] . 'redirect.png'))
                    
$board_redirect_img '/icons/' $board['id'];
                else
                    
$board_redirect_img '';
                echo 
'
                            <img src="'
$settings['images_url'], $board_redirect_img'/' .$context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
            }
            
// No new posts at all! The agony!!
            
else
            {
                if (
file_exists($settings['theme_dir'] . '/images/icons/' $board['id'] . '/' $context['theme_variant_url'] . 'off.png'))
                    
$board_nonew_img '/icons/' $board['id'];
                else
                    
$board_nonew_img '';
                echo 
'
                            <img src="'
$settings['images_url'], $board_nonew_img'/' .$context['theme_variant_url'], 'off.png" alt="'$txt['old_posts'], '" title="'$txt['old_posts'], '" />';
            }
            echo 
'
                        </a>
                    </td>
                    <td class="info">
                        <a class="subject" href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a>'

بعد از ويرايش قالب ها حالا بايد آيكن ها را آپلود كنيد

آدرس محل آپلود فايل

forum/Themes/default/images/icons/board_id/_variation/on.png
forum/Themes/default/images/icons/board_id/_variation/on2.png
forum/Themes/default/images/icons/board_id/_variation/off.png
forum/Themes/default/images/icons/board_id/_variation/redirect.png

بايد در قالبي آپلود شود كه در حال استفاده از آن هستيد.
به جاي board_id بايد شماره انجمن را بنويسيد مثلا انجمن آموزشي با شماره 3 هست بايد فولدري ايجاد كنيد با اسم 3 و آيكن مربوط را آنجا آپلود كنيد