Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Larsek on October 08, 2015, 05:32:48 AM

Title: Missing icons
Post by: Larsek on October 08, 2015, 05:32:48 AM
Hi,

This is my first post as a newbie here.  :)
No skills what so ever in .php but I`m trying my best to fix issues that comes in the way.

I have a problem with the board not showing the icons for "New posts", "Not new posts" and "Redirected Board".

The icons .png are in the image folder, and the .php lookes like this:

/* 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>
               <td class="info">
                  <a class="subject" href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a>';

Can someone help me to find out what causing the missing icons?

Title: Re: Missing icons
Post by: Larsek on October 08, 2015, 06:55:04 AM

Anyone?
I appreciate all help I can get  :)
Title: Re: Missing icons
Post by: Illori on October 08, 2015, 07:22:46 AM
please dont bump within 24 hours, we are all volunteers and reply if and when we know the answer.

given the very little information and lack of a link i really doubt many will be able to tell you what is going on. given your picture it looks like the size of the icon has been reduced or the icon is larger then the size allowed.
Title: Re: Missing icons
Post by: Larsek on October 08, 2015, 07:53:38 AM
Thanks for your reply Illory.

Yes, I will follow the instuctions about bumping.

The file sizes of the 3 .png icons are 846B, 1KB and 1KB.
Title: Re: Missing icons
Post by: Steve on October 08, 2015, 09:44:18 AM
I believe she meant height and width, not file size.

Side note: when posting code, use the code tags (the button that looks like this: (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1262.photobucket.com%2Falbums%2Fii614%2FOPStuph%2Fall2%2FScreengrab100815.jpg&hash=bbbf91e40009328d4aa50efe302f5ca850bb1e63) ). :)
Title: Re: Missing icons
Post by: Larsek on October 08, 2015, 09:51:33 AM

Yes, I understand.
To be shure I downloaded the originally files in same version from this site and checked both their file size and physical size, and they matched.
Title: Re: Missing icons
Post by: Illori on October 08, 2015, 10:01:05 AM
Quote from: Illori on October 08, 2015, 07:22:46 AM
lack of a link i really doubt many will be able to tell you what is going on.

maybe you can provide the link that was requested and we can actually help you rather then guess at what may be going on.
Title: Re: Missing icons
Post by: Larsek on October 08, 2015, 10:05:14 AM
Yes, here it is
http://interpretsignals.com/index.php (http://interpretsignals.com/index.php)
Title: Re: Missing icons
Post by: Illori on October 08, 2015, 10:16:34 AM
since you dont allow guests to view your forum, i will not be able to assist you further.

also since you do not have a copyright present, we have the right to deny you any support.
Title: Re: Missing icons
Post by: Larsek on October 08, 2015, 10:20:37 AM

Well the site is not "opened" yet and a copyright will be placed where it should be.
Guests are now allowed.
Title: Re: Missing icons
Post by: Steve on October 08, 2015, 04:01:40 PM
You still won't get any help until the copyright is in place. Sorry, but that's the only fair way to do things.
Title: Re: Missing icons
Post by: Larsek on October 09, 2015, 04:17:18 PM
huh, finally I think I got it there. Pls check if its ok now.
:)
Title: Re: Missing icons
Post by: Steve on October 09, 2015, 04:35:10 PM
Looks right and the links are right so the gurus should be able to help now. :)
Title: Re: Missing icons
Post by: Larsek on October 09, 2015, 04:38:33 PM
Great! Thanks Steve. :)

And by the way...it was not intended to remove the copyright, but I have paid for the making of the site and I was not aware of it (even if I know I should) :) .
Anyway, now I have to learn "how to" fix issues that comes in the way, so this was a good start for me.
Title: Re: Missing icons
Post by: Larsek on October 10, 2015, 06:05:34 AM
I tried to reduce the physical sizes of the icons, but still the same problem.  :o
Title: Re: Missing icons
Post by: Gluz on October 10, 2015, 07:19:01 AM
Your site CSS (/css/style.css) is interfering with the Forum CSS (/Themes/default/css/index.css).

That part have .icon class, and in your style.css you have that class too and it overrides the SMF one.

Also your site CSS is not added in the head but in the middle of the header logo, and also have some bad code there and in the copyright section.
Title: Re: Missing icons
Post by: Larsek on October 10, 2015, 09:42:42 AM
Oh, thanks for you feedback Gluz.
Sounds like this is way over my head to solve.
Will it be possible to get support that solves this issue if I upgrade to a Charter membership?
Title: Re: Missing icons
Post by: Illori on October 10, 2015, 10:08:09 AM
this really is not covered under the charter membership as it is custom coding.
Title: Re: Missing icons
Post by: Larsek on October 10, 2015, 11:09:16 AM
Ok, thanks for feedback Illori.
Maybe someone could be interested in private support for this issue against a small fee?
I would love to get a pm from someone if they are interested :)
Title: Re: Missing icons
Post by: Steve on October 10, 2015, 01:44:51 PM
You can ask for help here: http://www.simplemachines.org/community/index.php?board=50.0

The pinned thread indicates that this isn't what the board is for but looking over the threads there I think it is. If it isn't, one of the support team will move the thread to the appropriate place.