antivirus
08-06-2005, 10:41 PM
I need to make the phrases for threads, posts, attachments, etc... awaiting moderation red so they stand out, but only if there are 1 or more of anything awaiting moderation. For instance, in the attachment below, since there's 1 event awaiting moderation, i would want the phrase for the word "Events" to show up in red.
I know this has to be done in the adv_portal_moderation template, i'm just not shure how to phrase the conditional. Can anyone help?
<tr>
<td class="$bgclass">
<if condition="$show['threads']">
<div><phrase 1="$threads[count]" 2="$vboptions[bburl]/$modcpdir/moderate.php?do=posts">$vbphrase[x_threads]</phrase></div>
</if>
<if condition="$show['posts']">
<div><phrase 1="$posts[count]" 2="$vboptions[bburl]/$modcpdir/moderate.php?do=posts#postlist">$vbphrase[x_posts]</phrase></div>
</if>
<if condition="$show['events']">
<div><phrase 1="$events[count]" 2="$vboptions[bburl]/$modcpdir/moderate.php?do=events">$vbphrase[x_events]</phrase></div>
</if>
<if condition="$show['attachments']">
<div><phrase 1="$attachments[count]" 2="$vboptions[bburl]/$modcpdir/moderate.php?do=attachments">$vbphrase[x_attachment]</phrase></div>
</if>
<div><phrase 1="$users[count]" 2="$vboptions[bburl]/$admincpdir/user.php?do=moderate">$vbphrase[x_users]</phrase></div>
</td>
</tr>
Thanks!
I know this has to be done in the adv_portal_moderation template, i'm just not shure how to phrase the conditional. Can anyone help?
<tr>
<td class="$bgclass">
<if condition="$show['threads']">
<div><phrase 1="$threads[count]" 2="$vboptions[bburl]/$modcpdir/moderate.php?do=posts">$vbphrase[x_threads]</phrase></div>
</if>
<if condition="$show['posts']">
<div><phrase 1="$posts[count]" 2="$vboptions[bburl]/$modcpdir/moderate.php?do=posts#postlist">$vbphrase[x_posts]</phrase></div>
</if>
<if condition="$show['events']">
<div><phrase 1="$events[count]" 2="$vboptions[bburl]/$modcpdir/moderate.php?do=events">$vbphrase[x_events]</phrase></div>
</if>
<if condition="$show['attachments']">
<div><phrase 1="$attachments[count]" 2="$vboptions[bburl]/$modcpdir/moderate.php?do=attachments">$vbphrase[x_attachment]</phrase></div>
</if>
<div><phrase 1="$users[count]" 2="$vboptions[bburl]/$admincpdir/user.php?do=moderate">$vbphrase[x_users]</phrase></div>
</td>
</tr>
Thanks!