MyBB Community Forums

Full Version: Forum icons don't show up
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm trying to create a new skin. I've created a new theme and a new template set.

I want to use different images for the forum icons (off.gif, on.gif etc.)
I upload the images they have the same name but .png extension. I correct the image file names in the index template so they are like this:

<img src="{$theme['imgdir']}/on.png"

but the old images are displayed next to the forums and not the news. However, in the legend the new ones are shown.

Any idea?

Here is a screenshot as well:

[Image: 2ns9qf6.png]
Whats ur url ?
You also need to edit them in forumbit_depth2_cat and forumbit_depth2_forum.

For the "Click to mark forum as read" function to work, you also need to edit ./jscripts/general.js
(2010-06-14, 03:49 PM)dunlop03 Wrote: [ -> ]Whats ur url ?

I'm testing it on localhost

(2010-06-14, 03:51 PM)AJS Wrote: [ -> ]You also need to edit them in forumbit_depth2_cat and forumbit_depth2_forum.

Those are different. I'm only talking about the main forum page.

(2010-06-14, 03:51 PM)AJS Wrote: [ -> ]For the "Click to mark forum as read" function to work, you also need to edit ./jscripts/general.js

I already changed them in tha javascript file.
(2010-06-14, 04:00 PM)dtommy79 Wrote: [ -> ]
(2010-06-14, 03:51 PM)AJS Wrote: [ -> ]You also need to edit them in forumbit_depth2_cat and forumbit_depth2_forum.
Those are different. I'm only talking about the main forum page.

AJS is right. You said this:

(2010-06-14, 03:44 PM)dtommy79 Wrote: [ -> ]but the old images are displayed next to the forums and not the news. However, in the legend the new ones are shown.

The images you're referring to here, next to the forums, are the forumbit_depth2_cat and forumbit_depth2_forum templates. They wouldn't show the old ones next to the forums only on the index, unless your browser is caching it.
I have this in forumbit_depth2_forum

<tr>
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
<td class="{$bgcolor}" valign="top">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>


What should I edit here? Those images are not here.
img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />

Change the .gif to .png
Thanks, it works now.
The Sammy's Adventures: The Secret Passage Film Image The The Warrior's Way Download Full Movie website to watch Something Borrowed the film film theaters watch Hereafter Where Can I Download The Blitz Download The Eagle Film In Ipod Formats