
01-16-2010, 02:16 PM
|
|
|
Join Date: Jul 2007
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by SecondV
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();
}
//}
}
|
It works.
|