(2010-12-31, 07:37 AM)Gregor.J Wrote: [ -> ]Unfortunately, I have a big problem with the Sky Theme Apart, the Chrome browser, I get this presentation shown.
Can you help ...
http://community.mybb.com/attachment.php?aid=21065
Though it appears you are no longer using Apart, this also seems to be a frequent issue, so I will address this in a general manner. First, let me say that this is entirely the fault of modifications you have made to the theme. The top links menu in Apart is designed differently than the default top links menu, and has different code considerations. You cannot use the format you are used to using when adding top links.
Let me say that again:
You cannot use the normal MyBB top links format when adding links to an Apart theme. The top links menu in Apart is designed differently to use CSS for the images.
By the "normal" format, I mean this, where you have a list item, link, and image embedded in the link:
<li><a href="http://example.com/gallery.php"><img src="http://example.com/images/IMAGE" alt="" title="" />Gallery</a></li>
This will
not work properly and will cause the issue you are experiencing. Instead, in the header template, you must add code similar to the following to the top links menu (matching the existing links):
<li><a href="http://example.com/gallery.php" class="CLASS">Gallery</a></li>
Then, for the image to be shown, you must edit
global.css in
Advanced Mode and, after the following:
#panel .upper ul.top_links a.help {
background-image: url(../../../images/dawn/icons/help.gif);
}
add:
#panel .upper ul.top_links a.CLASS {
background-image: url(../../../images/IMAGE);
}
where
CLASS is the class name you used above and
IMAGE is the path to the original image (from the MyBB images directory). For instance, for the above link (where you're linking to a gallery), you could use gallery as the class and icons/photo.gif for the image, assuming you have an image called photo.gif in your MyBB images/icons directory.
If you have any questions with this issue, please ask.
Thanks.