Jump to content

Emoticons - hover description


Clickfinity

Recommended Posts

Not sure if this ever worked, but hovering over the emoticons doesn't tell me what they are / are for, or what the BBCode is for adding them.

Any chance of adding the BBCode as a hover pull-out, e.g.; hover over Thumbs Up emoticon and you see : thumbsup : (can't use the actual code as it renders the smiley ... lol)

Cheers,
Shaun :thumbsup:

Link to comment
Share on other sites

A small change to the ips.editor.js file should do the trick.

Find:

var _emo_html = ' <img src="' + _emo_url + '" class="bbc_emoticon" alt="' + this.unhtmlspecialchars( emo_code ) + '" />';

Change to:

var _emo_html = ' <img src="' + _emo_url + '" class="bbc_emoticon" alt="' + this.unhtmlspecialchars( emo_code ) + '" title="' + this.unhtmlspecialchars( emo_code ) + '" />';



Should do a pop-up of :thumbsup: over :thumbsup:

Would like to see it as default though.

Link to comment
Share on other sites

That won't do the trick wolfie. That will do it when you insert the emoticon into the RTE, but when it's submitted that will simply be removed when the HTML is recreated by the parsing engine.

You'd effectively need to modify admin/sources/classes/bbcode/core.php and find

return "<img src='" . $this->settings['emoticons_url'] . "/{$_emoImage}' class='bbc_emoticon' alt='#EMO_ALT_{$this->emoticon_count}#' />";

and change to

return "<img src='" . $this->settings['emoticons_url'] . "/{$_emoImage}' class='bbc_emoticon' alt='#EMO_ALT_{$this->emoticon_count}#' title='#EMO_ALT_{$this->emoticon_count}#' />";



Now...I'm not sure if that will cause any issues when IPB tries to UNparse it, since I haven't tested, but that should help get you started.

Link to comment
Share on other sites


That won't do the trick wolfie. That will do it when you insert the emoticon into the RTE, but when it's submitted that will simply be removed when the HTML is recreated by the parsing engine.



You'd effectively need to modify admin/sources/classes/bbcode/core.php and find


I had done a search for class="bbc_emoticon", which returned the javascript file. I had neglected to search for it using single quote's. Consistency I tell ya, should be " in both places. :lol:



Any chance of squeezing this into 3.1?


That's no way to beg. Try it the right way, like this...

PLEASE!!!!!! It's such a simple change to make for it to work with additional browsers..
%7Boption%7D
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...