PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   How Do I? - vBulletin 3.0.X (http://www.photopost.com/forum/how-do-i-vbulletin-3-0-x/)
-   -   Gallery Moderation added to 2 moderation (http://www.photopost.com/forum/how-do-i-vbulletin-3-0-x/119181-gallery-moderation-added-2-moderation.html)

MRGTB September 19th, 2005 08:38 PM

Gallery Moderation added to CMPS 2 moderation block
 
How can I add a link in the CMPS 2 Moderation block to show galley images awaiting moderation.

Just like you have done with the adv_links directory Brian

MRGTB September 21st, 2005 10:31 AM

Re: Gallery Moderation added to 2 moderation
 
Anybody?

I know how to use the same links directory method here: http://www.vbadvanced.com/forum/showthread.php?t=1909

To add the a link to the moderator block section on the cmps page for the Gallery. I just need to know the MSQL Query I need to add to the moderator.php file in the modules folder for it to work so it counts images waiting to be validated in the cmps moderator block.

Brian September 21st, 2005 12:00 PM

Re: Gallery Moderation added to 2 moderation
 
SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "adv_gallery_images WHERE valid = 0

MRGTB September 21st, 2005 12:39 PM

Re: Gallery Moderation added to 2 moderation
 
cheers! :)

MRGTB September 21st, 2005 01:13 PM

Re: Gallery Moderation added to 2 moderation
 
Can I just ask you if this is right Brian below. I have highlighted the line add for the gallery in red. Can just check the full code over for me to make sure I add it correctly using adv_gallery_images name in the path. I'm not sure if that is correct!

Code:

Content visible to verified customers only.

Brian September 21st, 2005 01:21 PM

Re: Gallery Moderation added to 2 moderation
 
It doesn't really matter what you use for the variable, but $adv_gallery_images should be good since it will be unique. Now just add $adv_gallery_images[count] in your moderation template and that should do the trick.

MRGTB September 21st, 2005 01:24 PM

Re: Gallery Moderation added to 2 moderation
 
I added this: Is that fine:

Code:

Content visible to verified customers only.

Brian September 21st, 2005 01:29 PM

Re: Gallery Moderation added to 2 moderation
 
Looks fine to me.


All times are GMT -5. The time now is 08:10 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97