vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v2.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 08-06-2005, 09:41 PM
antivirus's Avatar
antivirus antivirus is offline
Member
 
Join Date: Aug 2005
Posts: 72
Question Quick Moderation module

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>
Thanks!
Attached Images
File Type: gif modbox.gif (4.5 KB, 25 views)

Last edited by antivirus; 08-06-2005 at 09:43 PM.
Reply With Quote
  #2  
Old 08-07-2005, 12:43 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Quick Moderation module

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>>
Reply With Quote
  #3  
Old 08-08-2005, 06:06 PM
antivirus's Avatar
antivirus antivirus is offline
Member
 
Join Date: Aug 2005
Posts: 72
Default Re: Quick Moderation module

thanks Bri,
that worked perfectly, you rock!
Reply With Quote
  #4  
Old 08-08-2005, 06:25 PM
antivirus's Avatar
antivirus antivirus is offline
Member
 
Join Date: Aug 2005
Posts: 72
Default Re: Quick Moderation module

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>
to this:
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>
will it then restrict viewing users awaiting moderation based upon the usual usergroup settings?
Please advise, and thanks!
Reply With Quote
  #5  
Old 08-08-2005, 06:32 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Quick Moderation module

No, $show['users'] is not a valid variable, nor is there one that I'm aware of.
Reply With Quote
  #6  
Old 08-08-2005, 10:53 PM
antivirus's Avatar
antivirus antivirus is offline
Member
 
Join Date: Aug 2005
Posts: 72
Default Re: Quick Moderation module

ok thanks for answer!
Reply With Quote
  #7  
Old 03-26-2006, 06:49 AM
theguru theguru is offline
Junior Member
 
Join Date: May 2005
Posts: 10
Default Re: Quick Moderation module

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?????
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 05:03 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.