News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

uneven spaces between board icons

Started by jepot5, June 27, 2008, 07:44:10 AM

Previous topic - Next topic

jepot5

check last post

jepot5

if ($board['new']) {
                        if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on.gif'))                   $board_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on.gif';
                        else
                                $board_new_img=$settings['images_url']. '/on.gif';

                                echo '<img src="', $board_new_img,'" alt="', $txt['no_icon'], '" title="', $txt['no_icon'], '" border="0" />';
                } elseif ($board['children_new']) {
                        if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on2.gif'))                  $childboard_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on2.gif';
                        else
                                $childboard_new_img=$settings['images_url']. '/on2.gif';

                                echo '<img src="', $childboard_new_img,'" alt="', $txt['no_icon'], '" title="', $txt['no_icon'], '" border="0" />';
                 } else {
                         if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/off.gif'))
                                 $board_nonew_img=$settings['theme_url']. '/icons/' . $board['id'] . '/off.gif';
                         else
                                 $board_nonew_img=$settings['images_url']. '/off.gif';

                                 echo '<img src="', $board_nonew_img,'" alt="', $txt['no_icon'], '" title="', $txt['no_icon'], '" border="0" />';
                  }
                  // Is it a redirection board?
                  if ($board['is_redirect'])
                          echo '<img src="', $settings['images_url'], '/redirect.png" alt="*" title="*" border="0" />';


what is wrong there anyway?

jepot5

#2
ok my problem now is a wee bit different
i try to install this mod
Images On Board

and i added this

echo '</a> </td> <td class="windowbg2">'; if (!empty($board['image'])) echo '<div style="float:left; margin-right: 4px;"><img src="' . $settings['default_images_url'] . '/ImagesOnBoard/' . $board['image'] . '" alt="*" /></div>'; echo '

after this

if ($board['new']) {
                        if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on.gif'))                   $board_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on.gif';
                        else
                                $board_new_img=$settings['images_url']. '/on.gif';

                                echo '<img src="', $board_new_img,'" alt="', $txt['no_icon'], '" title="', $txt['no_icon'], '" border="0" />';
                } elseif ($board['children_new']) {
                        if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on2.gif'))                  $childboard_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on2.gif';
                        else
                                $childboard_new_img=$settings['images_url']. '/on2.gif';

                                echo '<img src="', $childboard_new_img,'" alt="', $txt['no_icon'], '" title="', $txt['no_icon'], '" border="0" />';
                 } else {
                         if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/off.gif'))
                                 $board_nonew_img=$settings['theme_url']. '/icons/' . $board['id'] . '/off.gif';
                         else
                                 $board_nonew_img=$settings['images_url']. '/off.gif';

                                 echo '<img src="', $board_nonew_img,'" alt="', $txt['no_icon'], '" title="', $txt['no_icon'], '" border="0" />';
                  }
                  // Is it a redirection board?
                  if ($board['is_redirect'])
                          echo '<img src="', $settings['images_url'], '/redirect.png" alt="*" title="*" border="0" />';

and get this

what do i do?

jepot5


Bulakbol

Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Advertisement: