Clickfinity Posted May 7, 2010 Share Posted May 7, 2010 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 More sharing options...
Wolfie Posted May 7, 2010 Share Posted May 7, 2010 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 More sharing options...
Clickfinity Posted May 7, 2010 Author Share Posted May 7, 2010 Cor blimey ... that looks nice and simple. Could it be included in 3.1? <Pretty please .... :thumbsup: > Cheers, Shaun Link to comment Share on other sites More sharing options...
bfarber Posted May 7, 2010 Share Posted May 7, 2010 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 findreturn "<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 More sharing options...
Abomination Posted May 7, 2010 Share Posted May 7, 2010 Brandon (or anyone), that is considered a file edit, which would need to be re-done after every subsequent upgrade, correct? Link to comment Share on other sites More sharing options...
Michael Posted May 7, 2010 Share Posted May 7, 2010 Brandon (or anyone), that is considered a file edit, which would need to be re-done after every subsequent upgrade, correct? Correct. Link to comment Share on other sites More sharing options...
Clickfinity Posted May 7, 2010 Author Share Posted May 7, 2010 Any chance of squeezing this into 3.1? Link to comment Share on other sites More sharing options...
Wolfie Posted May 7, 2010 Share Posted May 7, 2010 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.. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.