2011-08-11, 12:03 PM
$plugins->add_hook("modcp_reports", "socialgroups_reported_posts");
function socialgroups_reported_posts()
{
global $db, $mybb, $lang;
if ($report['type']==1)
{
$report['postlink'] ="<a href='$settings[\'bburl\']/groupthread.php?pid=$report[\'pid\']' target='_blank'>$report['pid']</a>";
$report['threadlink'] ="<a href='$settings[\'bburl\']/groupthread.php?conid=$report[\'tid\']' target='_blank'>$report['tid']</a>";
}
}
In short, this is supposed to separate reported posts since I'm working on a social groups type feature that vbulletin has. I'm getting close to finishing it, but I'm getting a parse error on the line that says
$report['postlink'] ="<a href='$settings[\'bburl\']/groupthread.php?pid=$report[\'pid\']' target='_blank'>$report['pid']</a>";
I can't seem to figure out why.