![]() |
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 |
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. |
Re: Gallery Moderation added to 2 moderation SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "adv_gallery_images WHERE valid = 0 |
Re: Gallery Moderation added to 2 moderation cheers! :) |
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. |
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. |
Re: Gallery Moderation added to 2 moderation I added this: Is that fine: Code: Content visible to verified customers only. |
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