News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Missing icons

Started by Larsek, October 08, 2015, 05:32:48 AM

Previous topic - Next topic

Larsek

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?


Larsek


Anyone?
I appreciate all help I can get  :)

Illori

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.

Larsek

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.

Steve

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: ). :)
DO NOT pm me for support!

Larsek


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.

Illori

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.

Larsek

#7
Yes, here it is
http://interpretsignals.com/index.php [nofollow]

Illori

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.

Larsek


Well the site is not "opened" yet and a copyright will be placed where it should be.
Guests are now allowed.

Steve

You still won't get any help until the copyright is in place. Sorry, but that's the only fair way to do things.
DO NOT pm me for support!

Larsek

huh, finally I think I got it there. Pls check if its ok now.
:)

Steve

Looks right and the links are right so the gurus should be able to help now. :)
DO NOT pm me for support!

Larsek

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.

Larsek

I tried to reduce the physical sizes of the icons, but still the same problem.  :o

Gluz

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.

Larsek

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?

Illori

this really is not covered under the charter membership as it is custom coding.

Larsek

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 :)

Steve

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.
DO NOT pm me for support!

Advertisement: