PDA

View Full Version : Would like to modify Report.php


ludachris
01-28-2006, 03:23 AM
I had this working in 3.0, but not sure how to make it work in 3.5 - I had duplicated the "report this post" feature for another purpose and had it sent to a different usergroup. Can someone help me in figuring out how to do this again? Here's how I did it in 3.0:

https://vborg.vbsupport.ru/showthread.php?t=70348

Thanks in advance.

calorie
01-28-2006, 03:42 AM
Make a plugin using the 'report_send_process' hook:

$moderators = $db->query_read("
SELECT email, languageid, username, userid
FROM " . TABLE_PREFIX . "user
WHERE usergroupid IN (6,10)
");

$mods = array();

while ($moderator = $db->fetch_array($moderators))
{
$mods[] = $moderator;
}

http://www.vbulletin.com/docs/html/add_plugin

harmor19
01-28-2006, 04:28 AM
I was very close.

I thought some variables would conflict.

Here's mine (don't use).
$moderators2 = $db->query_read("
SELECT user.email, user.languageid, user.username, user.userid
FROM " . TABLE_PREFIX . "user AS user
WHERE user.usergroupid=2 OR user.usergroupid=6
");

while ($moderator2 = $db->fetch_array($moderators2))
{
$mods[] .= $moderator2;
}

I had the same hook location too.