popup(this.href, 750, 350, '_phpbbsmilies')
._phpbbsmilies
as the window name. Which means yes, if there is already a previously-created window with that name, the "more smilies" list is going to open/refresh in that existing window; rather than opening a new or additional window._blank
instead of _phpbbsmilies
. e.g. In phpBB 3.2.8's /styles/prosilver/template/posting_editor.html, change line 51 to:Code: Select all
<br /><a href="{U_MORE_SMILIES}" onclick="popup(this.href, 750, 350, '_blank'); return false;">{L_MORE_SMILIES}</a>
_phpbbsmilies
name is "important". But I guess we'll see, based on what your results are.Oh, it is important - it prevents a user opening more than one (smilie) window at a time. When no name is given (
_blank
instead), every click on more smilies
will open a additional window.Thanks. That's the behavior they are asking for; or at least the fall back behavior they wanted to achieve, absent being able to force another existing browser window to come back to the foreground. (Which I expect is impossible for this type of window, and/or as a cross-platform guaranteed behavior.)canonknipser wrote: ↑Tue Oct 22, 2019 7:32 pmOh, it is important - it prevents a user opening more than one (smilie) window at a time. When no name is given (_blank
instead), every click onmore smilies
will open a additional window.
_blank
to intentionally allow a new pop-up to be created instead, will it work for the purpose of inserting smilies to the correct open message editor. From what I'm seeing in code I'm expecting "yes", but haven't setup a board with "more smilies" to actually test and confirm.I should have also confirmed and recommended there: Be sure and flush your phpBB cache from ACP in order to see the effect of this change.EA117 wrote: ↑Tue Oct 22, 2019 4:50 pmIn phpBB 3.2.8's /styles/prosilver/template/posting_editor.html, change line 51 to:
Code: Select all
<br /><a href="{U_MORE_SMILIES}" onclick="popup(this.href, 750, 350, '_blank'); return false;">{L_MORE_SMILIES}</a>
_blank
works fine