View Full Version : members only catergory
May 13th, 2005, 05:38 PM
if i have a members only catergory, how do i make sure that none of the previews i.e. random and new images show guests images in that cat?
May 14th, 2005, 10:15 AM
Just for the new and random images? If so, just look in your gallery/index.php file for 2 instances of this code:
$privcatids valid = 1
And change both to this:
$privcatids valid = 1 AND images.userid != 0
May 14th, 2005, 10:51 AM
sorry just checked and the actual setting should be for members too, if it's in the a specific catergory then it should not appear on the index in the "Newest Images" or the "Random Images" table, how would i go about this, sorry about this.
May 14th, 2005, 11:30 AM
Add this at the end of the line above:
AND images.catid NOT IN(X, Y, Z)
(Replace X, Y, and Z with the catids.)
May 14th, 2005, 11:36 AM
you're a genius, worked a charm :)
May 15th, 2005, 10:02 AM
Glad to help. :)
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.