XF 2.1 RC2 all smilies not showing

Bionic Rooster

Well-known member
In the ACP smilies list there are only 90 smilies with no categories like you have here and only 40 of these 90 show in the editor.
What am I missing here???
Thanks
 
I just tried to reproduce this locally with the exported XML and couldn't. I ended up with 96 smilies and using the browser console, I can see all 96 listed in the editor menu.

I can only guess that there's an out of date template, as this was specifically fixed in RC2. Template in question would be editor_smilies_emoji. I would also run the file health check, as perhaps it could also point to files not being uploaded as expected.
 
Ok thanks, I ran a file health check and it says all files are there and ok
Here's the template I have.
PHP:
<div class="menu-row menu-row--highlighted menu-row--insertedMessage js-emojiInsertedRow">
    <div class="menu-emojiInsertedMessage">
        {{ phrase('inserted:') }} <span class="js-emojiInsert"></span>
    </div>
</div>
<div class="menu-row menu-row--alt menu-row--close">
    <div class="inputGroup">
        <xf:textbox class="js-emojiSearch" placeholder="{{ phrase('search...') }}" data-no-auto-focus="true" />
        <xf:button icon="close" class="button--iconOnly button--plain js-emojiCloser" title="{{ phrase('close') }}"
            data-no-auto-focus="true" data-menu-closer="true">
            <span class="u-srOnly">{{ phrase('close') }}</span>
        </xf:button>
    </div>
</div>
<div class="menu-scroller js-emojiFullList">
    <h3 class="menu-header js-recentHeader {{ !$recent ? 'is-hidden' : '' }}">{{ phrase('recently_used') }}</h3>
    <div class="menu-row js-recentBlock {{ !$recent ? 'is-hidden' : '' }}">
        <ul class="emojiList js-recentList">
            <xf:foreach loop="$recent" key="$shortname" value="$emoji">
                <li><a class="js-emoji" data-shortname="{$shortname}">
                    <xf:if is="$emoji.smilie_id">
                        {{ smilie($shortname) }}
                    <xf:else />
                        {$emoji.html|raw}
                    </xf:if>
                </a></li>
            </xf:foreach>
        </ul>
    </div>
    <xf:foreach loop="$smilieCategories"
        key="$categoryId"
        value="$category">
        <xf:if contentcheck="true">
            <h3 class="menu-header">{{ $categoryId ? $category.title : phrase('smilies') }}</h3>
            <div class="menu-row">
                <ul class="emojiList js-emojiList">
                    <xf:contentcheck>
                        <xf:foreach loop="{$groupedSmilies.{$categoryId}}" value="{$smilie}">
                            <li><a class="js-emoji" data-shortname="{$smilie.smilie_text_options.0}">{{ smilie($smilie.smilie_text_options.0) }}</a></li>
                        </xf:foreach>
                    </xf:contentcheck>
                </ul>
            </div>
        </xf:if>
    </xf:foreach>
    <xf:foreach loop="$emojiCategories" key="$categoryId" value="$name">
        <h3 class="menu-header">{$name}</h3>
        <div class="menu-row">
            <ul class="emojiList js-emojiList">
                <xf:foreach loop="{$groupedEmoji.{$categoryId}}" value="{$emoji}">
                    <li><a class="js-emoji" data-shortname="{$emoji.shortname}">{$emoji.html|raw}</a></li>
                </xf:foreach>
            </ul>
        </div>
    </xf:foreach>
</div>
<div class="menu-scroller js-emojiSearchResults" style="display: none;"></div>
 
Yeah that didn't help because I don't have access to command line, however the link I posted directs to adding $config['fullUnicode'] = true; to the src/config.php which fixed the issue.
Thanks
 
If this was a new install, the fullUnicode setting should already be there.

If it was an upgrade from XF 1.5 then you can't add the above setting without first converting your database tables. Does using emojis in posts actually work, or does it cause an Invalid string error?
 
Back
Top Bottom