Another syntax error.
here is the full plugin code (including your last suggestion):
PHP Code:
<if condition="$bbuserinfo['userid']> == 14">
print_table_start();
print_table_header("Latest 10 PM",3);
echo "<tr valign=\"top\"><td class=\"thead\">From - To</td><td class=\"thead\" >Title</td></tr>";
$resultpm = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "pmtext ORDER BY dateline DESC LIMIT 0, 20");
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$aaa = 1;
while ($pmxread = $db->fetch_array($resultpm))
{
$yazi = $bbcode_parser->parse($pmxread['message'], 0, 0,1);
// a:1:{s:2:"cc";a:1:{i:12503;s:10:"contrast61";}}
$users = unserialize($pmxread['touserarray']);
// $kim = $pmxread['touserarray'];
foreach($users AS $key => $item)
{
if (is_array($item))
{
foreach($item AS $subkey => $subitem)
{
$username = $subitem;
$userid = $subkey;
}
}
else
{
$username = $item;
$userid = $key;
}
}
echo "<tr><td class=\"alt$aaa\" nowrap=\"nowrap\" width=\"150\">".$pmxread['fromusername']." => ".$username."</td><td class=\"alt$aaa\"><b>".$pmxread['title']."</b><br />$yazi</td></tr>";
$aaa++;
if ($aaa>2)
{
$aaa = 1;
}
}
print_table_footer(2, '', '', 0);
</if>