Try this for me?
Change the query in that plugin to:
PHP Code:
if (isset($GLOBALS['postinfo']['userid']) AND $GLOBALS['postinfo']['userid'] > 0)
{
$smilies_where = "userid IN('{$GLOBALS['postinfo']['userid']}', '{$GLOBALS['mysmiliesvb_userid']}')";
}
else
{
$smilies_where = "userid = '{$GLOBALS['mysmiliesvb_userid']}'";
}
$smilies = $this->registry->db->query_read_slave("
SELECT *
FROM " . TABLE_PREFIX . "mysmiliesvb
WHERE $smilies_where
");
And see if that works for you.
Quote:
Originally Posted by Oblivion Knight
Regarding the quote box bug..
It can be fixed by removing this from the query on the bbcode_parse_complete plugin:
Code:
WHERE userid='{$GLOBALS['mysmiliesvb_userid']}'
..But it's not at all recommended if you have a large board with many users who make use of custom smilies. I've done it because I have a small board, with not so many users and have limited the smilies per user to 20.
Perhaps somehow grabbing the quoted user's userid and adding it to the query is a possibility?
I was looking at some code from an old " Who Quoted Me?" plugin. While it would need reworking for use here, I think it could be a possibility..
|