ok chill, i get no error messages just nothing shows
PHP Code:
$fentries= $DB_site->query("SELECT entry_id,entrytitle,entrytext,entrydate,entry_totalvotes,entry_totalrating,private,whocanview FROM ".TABLE_PREFIX."journal_entries WHERE journal_id='".$_REQUEST['j']."' AND entry_active='1' ORDER BY entrydate ASC");
$check= $DB_site->num_rows($fentries);
if($check=="0")
{
$entrybits= $vbphrase['journalnoentries'];
}
else
{
while($entry= $DB_site->fetch_array($fentries))
{
$count= $DB_site->query_first("SELECT COUNT(*) AS comments FROM ".TABLE_PREFIX."journal_comments WHERE journal_id='".$_REQUEST['j']."' AND entry_id='".$entry['entry_id']."'");
$entry['date']= vbdate($vboptions['dateformat'], $entry['entrydate'], 1);
$entry['time']= vbdate($vboptions['timeformat'], $entry['entrydate']);
if(empty($entry['entry_totalrating']) OR empty($entry['entry_totalvotes']))
{
$rating= "0";
}
else
{
$calcrating= $entry['entry_totalrating']/$entry['entry_totalvotes'];
$rating= round($calcrating);
}
$text= nl2br($entry['entrytext']);
$wcv_entry= $entry['whocanview'];
if($entry['private']=="1" AND in_array($bbuserinfo['userid'], explode(',', $wcv_entry)))
{
eval('$entrybits .= "' . fetch_template('journal_entrybits') . '";');
}
elseif($bbuserinfo['usergroupid']=="6")
{
eval('$entrybits .= "' . fetch_template('journal_entrybits') . '";');
}
elseif($bbuserinfo['userid'] == $journalinfo['journalist_id'])
{
eval('$entrybits .= "' . fetch_template('journal_entrybits') . '";');
}
elseif($entry['private']!="1")
{
eval('$entrybits .= "' . fetch_template('journal_entrybits') . '";');
}
else
{
$entrybits="";
}
}
}
eval('print_output("' . fetch_template('journal_journalpage') . '");');