View Full Version : Throwing a restricted image on my portal
April 28th, 2005, 06:48 PM
Hey. So I'm running ya CMPS and the gallery and would like to display a random image on the portal, much like the random image thing that already exists.
However I want this image to omit a catergory (porn) from picking its random image, even if users can normally see it when they go to the gallery.
It doesn't sound unfeasible...
May 5th, 2005, 06:22 PM
I'd really like this, because the random images are nearly all porn now :(
May 5th, 2005, 06:45 PM
Have you browsed through the 'random image on CMPS' and 'random image on forum home' threads? In one of them Brian gave example code on how to modify the query to do exactly that.
May 5th, 2005, 07:42 PM
Been through both threads, I can't find something that addresses this. Not to say it's not there... just not there in one place...
May 5th, 2005, 07:52 PM
Borgs8472, I'm literally heading out the door but as soon as I get home I'll point you in the direction.
May 6th, 2005, 02:13 PM
BORGS8472, This is the link that KW802 way talking about that showed how to block certain galleries from showing in the ramdom image display.
Thanks to KW802 for saying that the thread already existed because I needed the code to.
May 6th, 2005, 02:34 PM
Wilky49, don't forget that you can also set gallery category permissions so that only certain usergroups can see the categories.... and you can also password protect categories (I have some that are flagged as "inactive" so they don't show up in the category listings and then they are password protected so even if somebody finds the category they can't get in it).
Usually the people needing to hard-code the query or those who may have some not-work-safe images and don't want them displaying on the portal page even if the visitor has access to them.
And welcome to vBadvanced. :D
May 7th, 2005, 05:54 PM
It did exactly what it said on the tin! :D
October 3rd, 2005, 02:28 AM
Thanks for making this a part of the latest gallery release!
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.