Quote:
Originally Posted by txsbmw
I just upgraded to 3.7 beta 4. Everything is still there for this mod, I can see all the old post reports. However now when a user reports a post, it no longer uses this mod. In other words they can not see it in their reported posts link and the mods can no longer see it in the Mod CP (all that shows up is all the old ones that were reported before the upgrade).
Do I need to reinstall or does this not work with 3.7?
|
I pulled out my product and changed the XML to allow it to be installed on 3.7. Everything seems to go back in except I have the same result, when posts are reported, it doesn't make the entry into the postreport table in the DB.
Here's the save reports plugin from the mod, any ideas why this would work on 3.6 and not on 3.7?
PHP Code:
<plugin active="1" executionorder="5">
<title>save reports to database</title>
<hookname>report_send_process</hookname>
<phpcode><![CDATA[$db->query("
INSERT INTO " . TABLE_PREFIX . "postreport
(postid, userid, reporttext, status, dateline)
VALUES
($postid,
" . $vbulletin->userinfo['userid'] . ",
'". addslashes(htmlspecialchars_uni($vbulletin->GPC['reason'])) . "',
0,
" . TIMENOW . ")
");]]></phpcode>
</plugin>