The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Few Queries
I need some code which will give me two variable which i can use on forumhome to display the number of threads awaiting moderation and the number of attachments awaiting moderation.
Regards - miSt |
#2
|
||||
|
||||
Mist, I would put two counter variables in. One for threads, one for attachments. I would increment the counter when a thread or an attachment goes into the mod queue and decrement the counter when the thread or attachment goes out of the queue.
Boom. No extra queries Amy |
#3
|
||||
|
||||
Can i have the code then hehe ?
- miSt |
#4
|
||||
|
||||
Oy. I don't moderate threads or attachments. However, I'm procrastinating doing the things I should be doing so I shall go take a peek.
Amy |
#5
|
||||
|
||||
Thanks amy - i looke forward to your help
Regards - miSt |
#6
|
||||
|
||||
Strike what I said above. It would still need queries. You would have to store the counters somewhere. Is this code for moderators or just admins?
If it's for admins, you will need two queries. 1 to get the count of all threads where visible=0 and one for attachments where visible=0. However, if it's for mods, you would need to do a bit more. You would need to get the forumid of those threads or attachments and do an ismod check. |
#7
|
||||
|
||||
I want it displayed for those who have permission. So anyone who can access the modcp will be able to view these stats on index.php
- miSt |
#8
|
||||
|
||||
^ ?amy?
- miSt |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|