MyBB Community Forums
Get more smileys button - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Get more smileys button (/thread-225982.html)

Pages: 1 2


Get more smileys button - papa2fois - 2020-01-08

Hi,
In the editor the get-more-smileys button has no effect, except the up and down slider disappears (overlay pb?)
After upgrading from mybb 1.8.10 to 21

Seems related to javascript, may be related also to this problem of the same kind : https://community.mybb.com/thread-224798.html

Not found a solution on this forum.
Thanks


RE: Get more smileys button - noyle - 2020-01-08

MyBB 1.8.21 has some changes on the editor, not sure if it's relating to your issue though.
Check this thread https://community.mybb.com/thread-223638.html and try to see if it'd help.


RE: Get more smileys button - papa2fois - 2020-01-08

Thx, I overlooked this important thread. But I am not so experienced and would prefer an MYBB-approved solution. Isnt worth to go directly to 1.8.22 instead ?
Tkx for your support


RE: Get more smileys button - noyle - 2020-01-08

Read 1.8.22 release note here: http://blog.mybb.com/2019/12/30/mybb-1-8-22-released-security-maintenance-release/ , it has several security issues addressed and functional bugs fixed.

Anyway, you have to check if your updated forum has the SCEditor issue fixed, because the changes to the SCeditor is since 1.8.21.


RE: Get more smileys button - papa2fois - 2020-01-08

Well, my editor is working except the get more smileys button, so I guess the problem comes from some template that uses an erroneous javascript, but not able to do it myself. Disabling all plug-ins dont solve the problem.
Thx


RE: Get more smileys button - noyle - 2020-01-08

Try to troubleshoot it with the browser's developer tools. For example, Firefox's: https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_are_browser_developer_tools

On the console tab, there might be printing some error output for JavaScript errors.


RE: Get more smileys button - papa2fois - 2020-01-08

Dont see errors
I found in Default templates/smilieinsert_getmore :

<tr>
<td class="trow2" align="center"><span class="smalltext"><strong>[<a href="javascript:void(0)" onclick="MyBB.popupWindow('/misc.php?action=smilies&popup=true&amp;editor=MyBBEditor&modal=1'); return false;">{$lang->smilieinsert_getmore}</a>]</strong></span></td>
</tr>

that develops in html as :

<tr>
<td class="trow2" align="center"><span class="smalltext"><strong>[<a href="javascript:void(0)" onclick="MyBB.popupWindow('/misc.php?action=smilies&popup=true&editor=MyBBEditor&modal=1'); return false;">plus</a>]</strong></span></td>
</tr>

I guess it is the template that triggers the new window with more smilies.
Is that correct for V1.8.21?


RE: Get more smileys button - NoRules - 2020-01-08

Hi,

you have a problem with your modals, so check the answer given by HLFadmin and add this code in your headerinclude template:

var templates = {
		modal: '{$jsTemplates['modal']}',
		modal_button: '{$jsTemplates['modal_button']}'
	};

After var MyBBEditor = null; for example.


RE: Get more smileys button - papa2fois - 2020-01-08

(2020-01-08, 01:40 PM)NoRules Wrote: Hi,

you have a problem with your modals, so check the answer given by HLFadmin and add this code in your headerinclude template:

var templates = {
		modal: '{$jsTemplates['modal']}',
		modal_button: '{$jsTemplates['modal_button']}'
	};

After var MyBBEditor = null; for example.


I have made the change to no avail, same behaviour.
Can you give me the full headerinclude of the standard 1.8.21?
THX a lot.


RE: Get more smileys button - noyle - 2020-01-08

(2020-01-08, 02:01 PM)papa2fois Wrote: I have made the change to no avail, same behaviour.
Can you give me the full headerinclude of the standard 1.8.21?
THX a lot.

If you're on MyBB 1.8.21, for modified templates that are highlighted in green (none modified, i.e., same as default, are in blue) you can click right-hand "Option" button and click "Diff Report" to see changes between your version's and the standard 1.8.21's.