Quote:
Originally Posted by Megatr0n
See attachment.
It sort of stretches our editor and I don't like it doing that.
Anyway arounnd this?
|
Quote:
Originally Posted by nascartr
Yeah, I now see everyone's smilies as well. That's not too bad I guess...
|
In the next version, I will add an admin option to where you can choose if all user smilies are added to the editor, or just the current userid's smilies.
If you'd like to try that, could you test this for me?
In the editor_toolbar_start hook, titled "Setup The Smilies For The HTML Box", try replacing:
PHP Code:
foreach ($vbulletin->sv_mysmiliesvb AS $smilie)
{
//while ($i++ < $vbulletin->options['smtotal'])
//{
$mysmilieurl = $vbulletin->options['mysmiliesvb_option_smiliesurl'] . "/mysmilie_{$smilie['mysmiliesvbid']}.gif";
$smiliehtml = "<img src=\"$mysmilieurl\" id=\"{$editorid}_smilie_9999{$smilie['mysmiliesvbid']}\" alt=\"{$smilie['smilietext']}\" title=\"{$smilie['smilietext']}\" border=\"0\" />";
eval('$bits[] = "' . fetch_template('editor_smilie') . '";');
if (sizeof($bits) == $vbulletin->options['smcolumns'])
{
$smiliecells = implode('', $bits);
eval('$smiliebits .= "' . fetch_template('editor_smiliebox_row') . '";');
$bits = array();
}
//}
}
With:
PHP Code:
foreach ($vbulletin->sv_mysmiliesvb AS $smilie)
{
if ($smilie['userid'] != $vbulletin->userinfo['userid'])
{
continue;
}
//while ($i++ < $vbulletin->options['smtotal'])
//{
$mysmilieurl = $vbulletin->options['mysmiliesvb_option_smiliesurl'] . "/mysmilie_{$smilie['mysmiliesvbid']}.gif";
$smiliehtml = "<img src=\"$mysmilieurl\" id=\"{$editorid}_smilie_9999{$smilie['mysmiliesvbid']}\" alt=\"{$smilie['smilietext']}\" title=\"{$smilie['smilietext']}\" border=\"0\" />";
eval('$bits[] = "' . fetch_template('editor_smilie') . '";');
if (sizeof($bits) == $vbulletin->options['smcolumns'])
{
$smiliecells = implode('', $bits);
eval('$smiliebits .= "' . fetch_template('editor_smiliebox_row') . '";');
$bits = array();
}
//}
}