Quote:
Originally Posted by Scutter
Nice work dark, that got it. I now have the following problem, it displays fine when logged on as admin, but when logged on as a user with view and add permissions only, the screen looks like this...
|
Edit your VBUGS template with the following:
find this:
Code:
$buglist
</tr></table>
change to this:
Replace the entire contents of the vbugs_listbit with the following:
Code:
<tr>
<if condition="$admin">
<td class="alt1">$vbugs_id</td>
<td class="alt2">
<div>
<span style="float:right"></span>
<a href="vbugs.php?do=view&vbugs_id=$bug[vbugs_id]">$title</a></span>
$moderateicon $privateicon $unassignedicon
</div>
<else />
<td class="alt1">$vbugs_id</td>
<td class="alt2">
<div>
<span style="float:right"></span>
<a href="vbugs.php?do=view&vbugs_id=$bug[vbugs_id]">$title</a>
</div>
</if>
<div class="smallfont">
<span style="float:right">$date <span class="time">$time</span></span>
<strong onclick="window.location='member.php?u=$bug[userid]';" style="cursor:pointer">$username</strong>
</div>
</td>
<td class="alt1"><span class="smallfont">$typename: <strong>$statusname</strong><br /><em><if condition="$bug[adminid]">$adminname<else />$vbphrase[vbugs_unassigned]</if></em></span></td>
<td class="alt2"><div class="smallfont" style="white-space:nowrap">$lastreplydate <span class="time">$lastreplytime</span></div><div class="smallfont">by <a href="member.php?u=$bug[lastreplyuid]">$lastreplyname</a></div></td>
</tr>