[QUOTE=Swedie;2273791]I figured it out pretty decently what caused it. It was the first preg_match but also for me I needed /is for case incensitive version.
Replace all the code in the plugin for this mod: Find Quotes
Code:
if(preg_match("/\[quote=(.*)\](.*)\[\/quote\]/is", $post['message']))
{
preg_match_all("/\
Quote:
Originally Posted by (.*?)\
(.*?)\[\/quote\]/is", $post['message'], $quotematch);
$quotecount = count($quotematch[0]);
$tempcount = 0;
$quotearray = array();
while ($tempcount < $quotecount)
{
$username = explode(';', $quotematch[1][$tempcount]);
$quoteduserid = $vbulletin->db->query_first(
"SELECT userid FROM " . TABLE_PREFIX . "user
WHERE username = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username[0])) . "'"
);
if (!in_array($quoteduserid['userid'], $quotearray))
{
if ($quoteduserid['userid'] > 0)
{
$vbulletin->db->query_write("
INSERT INTO " . TABLE_PREFIX . "quotedatanew (quoted,quoter,postid,dateline)
VALUES ('" . $quoteduserid['userid'] . "','" . $vbulletin->userinfo['userid'] . "','" . $post['postid'] . "','" . time() . "')"
);
$quotearray[] = $quoteduserid['userid'];
}
}
$tempcount++;
}
}
|
Quote:
Originally Posted by (.*?)\
This means this mod works up to version 4.x.x.
|
Is there a way to wrap this in a forumid array check to turn off specific forums?
Thanks!