MyBB Community Forums

Full Version: Sprited Smilies
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
It doesn't work Sad

In {$smilieinserter} (I use it above textarea of showthread_quickreply) smiles are disappeared (gif images).

In firebug I see wrong link for images. I have forum in /forum/ folder but in css there is:

SpritedSmilies.min.css
.smilie-124 {
    background-image: url(/images/smilies/clover.gif);
    background-position: 0;
    width: 19px;
    height: 20px;
}

[class^=smilie-], [class*=" smilie-"] {
    background-image: url(http://my-correct-website/forum/images/SpritedSmilies-1448368568.png);
    background-position: 0 0;
    background-repeat: no-repeat;
    display: inline-block;
    height: 0px;
    width: 0px;
}

If I edit in background-image: url(/forum/images/smilies/clover.gif); it works.


[class^=smilie-], [class*=" smilie-"] works with correct domain.


In dropdown of editor smiles work (still separated images).


I think I have to edit something in:

$css .= sprintf('.smilie-%d{background-image:url(/%s);background-position:0;width:%dpx;height:%dpx;}', $id, $smilie['image'], $smilie['width'], $smilie['height']);

to add {$mybb->settings['bburl']}/

And also unread posts didn't work more..I don't understand why, unread posts plugin hasn't images I think.

In firebug, on unreadpost counter in header I have now:

<!-- start: unreadPosts_counter -->
<img src="" alt="" title="" class="smilie smilie_">
<!-- end: unreadPosts_counter -->

Before of the plugin I had the number of unread posts Sad
(2015-11-24, 12:51 PM)niere8 Wrote: [ -> ]I think I have to edit something in:

$css .= sprintf('.smilie-%d{background-image:url(/%s);background-position:0;width:%dpx;height:%dpx;}', $id, $smilie['image'], $smilie['width'], $smilie['height']);

to add {$mybb->settings['bburl']}/

And also unread posts didn't work more..I don't understand why, unread posts plugin hasn't images I think.

In firebug, on unreadpost counter in header I have now:

<!-- start: unreadPosts_counter -->
<img src="" alt="" title="" class="smilie smilie_">
<!-- end: unreadPosts_counter -->

Before of the plugin I had the number of unread posts Sad

I'll fix it and some other things later when I get time, also I don't give support for other plugins that might interfere with mine.
Pages: 1 2 3