![]() |
|
#1
|
||||
|
||||
|
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? Code:
<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> Last edited by antivirus; 08-06-2005 at 09:43 PM. |
|
#2
|
||||
|
||||
|
If you change each <div> tag there to something more like this then that will at least change the numbers to appear red. Unless I'm missing something though, changing all of the text would require a little more work.
<div<if condition="$threads['count']"> style="color:red"</if>> |
|
#3
|
||||
|
||||
|
thanks Bri,
that worked perfectly, you rock!
|
|
#4
|
||||
|
||||
|
one more thing i noticed about this moderation module's template... I notice the moderate users string doesn't have a conditional to show it. If I change the following:
Code:
<div<if condition="$users['count']"> style="color:red"</if>><phrase 1="$users[count]" 2="$vboptions[bburl]/$admincpdir/user.php?do=moderate">$vbphrase[x_users]</phrase></div> Code:
<if condition="$show['users']"> <div<if condition="$users['count']"> style="color:red"</if>><phrase 1="$users[count]" 2="$vboptions[bburl]/$admincpdir/user.php?do=moderate">$vbphrase[x_users]</phrase></div> </if> Please advise, and thanks! |
|
#5
|
||||
|
||||
|
No, $show['users'] is not a valid variable, nor is there one that I'm aware of.
|
|
#6
|
||||
|
||||
|
ok thanks for answer!
|
|
#7
|
|||
|
|||
|
I have just discovered an issue that has got me completely puzzeled.
We used to have only Super Moderators and the Quick Moderation module worked fine. We have now moved our Super Mods to regular Mods and the module has stopped working. When logged in as a Mod it only shows the Users line??? I took the conditionals off the other lines, but all it displays is 'Threads ()' ... what happened to the count????? |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Add Links Awaiting Moderation to Your vBa CMPS Quick Moderation Module | Brian | Modifications | 27 | 10-09-2010 02:21 PM |
| Quick Moderation Problem | drl2005 | Troubleshooting / "How do I..." Questions | 3 | 12-11-2005 06:24 PM |
| Turned off Quick Moderation module, and not it wont work anymore | cmiller1014 | Troubleshooting / "How do I..." Questions | 1 | 04-03-2005 10:03 PM |
| Quick Moderation Issue | joeychgo | Troubleshooting / "How do I..." Questions | 4 | 08-29-2004 11:02 AM |
| quick moderation module not showing members awaiting moderation | Mont | Bugs & Other Issues | 6 | 08-05-2004 09:45 AM |