Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted May 7, 201014 yr 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:
May 7, 201014 yr 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.
May 7, 201014 yr Author Cor blimey ... that looks nice and simple. Could it be included in 3.1? <Pretty please .... :thumbsup: > Cheers, Shaun
May 7, 201014 yr 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.
May 7, 201014 yr Brandon (or anyone), that is considered a file edit, which would need to be re-done after every subsequent upgrade, correct?
May 7, 201014 yr Brandon (or anyone), that is considered a file edit, which would need to be re-done after every subsequent upgrade, correct? Correct.
May 7, 201014 yr 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..
Archived
This topic is now archived and is closed to further replies.