https://www.icyphoenix.com/viewtopic.php?f=26&t=2762&p=19410#p19410 ----------------------------------- newguy78 Sat 08 Sep, 2007 14:20 FAP CUSTOMIZATION - Restricting Personal Galleries From Being Displayed ----------------------------------- Hello, I am using the photo outside pics mod but I'm noticing that personal gallery pics are showing up, but I do not want them to. At one point of time, I was using the smartor portal with kooky's photo album block, which allowed you to restrict personal gallery pics from being displayed. Does anyone know how I can achieve this? Below I have attached the code to the photo album outside pics mod. Thank you [code linenumbers=false]"; print "". $lang['Random_Pics'] .""; print ""; for ($i=0;$i<4;$i++) //set number of pictures for the displayed line { while ($cat['cat_view_level'] != '-1') { $sql = "SELECT pic_id, pic_desc, pic_cat_id FROM ". ALBUM_TABLE ." ORDER BY RAND() LIMIT 1"; $result = $db->sql_query($sql) or die ("SQL Error"); $row = $db->sql_fetchrow($result); $sql = "SELECT * FROM ". ALBUM_CAT_TABLE ." WHERE cat_id = '". $row['pic_cat_id'] ."'"; $result = $db->sql_query($sql) or die ("SQL Error"); $cat = $db->sql_fetchrow($result); } $cat['cat_view_level'] = '0'; print "
" . $row['pic_title'] . "
" . $row[
"; } print ""; print ""; print ""; print ""; for ($i=0;$i<4;$i++) //set number of pictures for the displayed line { while ($cat['cat_view_level'] != '-1') { $sql = "SELECT pic_id, pic_desc, pic_cat_id FROM ". ALBUM_TABLE ." ORDER BY RAND() LIMIT 1"; $result = $db->sql_query($sql) or die ("SQL Error"); $row = $db->sql_fetchrow($result); $sql = "SELECT * FROM ". ALBUM_CAT_TABLE ." WHERE cat_id = '". $row['pic_cat_id'] ."'"; $result = $db->sql_query($sql) or die ("SQL Error"); $cat = $db->sql_fetchrow($result); } $cat['cat_view_level'] = '0'; print ""; } print ""; print "
" . $row['pic_title'] . "
" . $row[
"; ?> [/code]