Author Topic: Dont Want Private Categ.. Images In Random pics  (Read 8387 times)

0 Members and 1 Guest are viewing this topic.

Offline greg2005

  • Newbie
  • *
  • Posts: 10
    • View Profile
Dont Want Private Categ.. Images In Random pics
« on: August 24, 2005, 11:34:01 AM »
Sorry for my bad english but i wanna ask i dont want private category images in random images pic is there is any way i can do that or someone can make that possible or no ? if there is any topic like this plz direct me there thanks in advance.


EAST OR WEST 4 IMAGES IS THE BEST   :wink:

TheOracle

  • Guest
Re: Dont Want Private Categ.. Images In Random pics
« Reply #1 on: August 24, 2005, 01:51:29 PM »
The following statement is untested.

In includes/functions.php file,

find :

Quote

if (SHOW_RANDOM_CAT_IMAGE) {


replace with :

Code: [Select]

if (SHOW_RANDOM_CAT_IMAGE && $cat_cache[$category_id]['cat_name'] != AUTH_ACL) {


Offline RoadDogg

  • Sr. Member
  • ****
  • Posts: 488
    • View Profile
    • Düsipixel
Re: Dont Want Private Categ.. Images In Random pics
« Reply #2 on: August 24, 2005, 09:25:42 PM »
what if some categories (for example: catid: 7,12, 52...) should be excluded?
For support requests please don´t forget link to your Gallery/to phpinfo.php
Code: [Select]
<?
phpinfo()
?>
safe_mode must turned OFF
Please check Error Messages

TheOracle

  • Guest
Re: Dont Want Private Categ.. Images In Random pics
« Reply #3 on: August 24, 2005, 09:29:22 PM »
Quote

what if some categories (for example: catid: 7,12, 52...) should be excluded?


And ... on which permissions they've been set ?

Offline Xyu BAM

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Re: Dont Want Private Categ.. Images In Random pics
« Reply #4 on: August 25, 2005, 01:56:28 AM »
Code: [Select]

if (SHOW_RANDOM_CAT_IMAGE && $cat_cache[$category_id]['cat_name'] != AUTH_ACL) {

wrong condition, should be:
Code: [Select]
if (SHOW_RANDOM_CAT_IMAGE && $cat_cache[$category_id]['auth_viewcat'] != AUTH_ACL) {or
Code: [Select]
if (SHOW_RANDOM_CAT_IMAGE && $cat_cache[$category_id]['auth_viewcat'] != AUTH_ACL && $cat_cache[$category_id]['auth_viewimage'] != AUTH_ACL ) {

TheOracle

  • Guest
Re: Dont Want Private Categ.. Images In Random pics
« Reply #5 on: August 25, 2005, 05:11:18 AM »
Quote

if (SHOW_RANDOM_CAT_IMAGE && $cat_cache[$category_id]['auth_viewcat'] != AUTH_ACL) {


Forgive me for asking but ... where else did you see this sorth of statement use in the script to say that my last condition is wrong ?

Offline Xyu BAM

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Re: Dont Want Private Categ.. Images In Random pics
« Reply #6 on: August 25, 2005, 05:46:58 AM »
well, obviosly this IS wrong:
if (SHOW_RANDOM_CAT_IMAGE && $cat_cache[$category_id]['cat_name'] != AUTH_ACL) {

TheOracle

  • Guest
Re: Dont Want Private Categ.. Images In Random pics
« Reply #7 on: August 25, 2005, 05:48:52 AM »
I see. It would seems that you are right. I just saw some samples from admin/usergroups.php file.

In the mean time, this one would be more appropriated as it verifys on both ways for the cat and images :

Quote

if (SHOW_RANDOM_CAT_IMAGE && $cat_cache[$category_id]['auth_viewcat'] != AUTH_ACL && $cat_cache[$category_id]['auth_viewimage'] != AUTH_ACL ) {


Thanks for the note. ;)

Offline Xyu BAM

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Re: Dont Want Private Categ.. Images In Random pics
« Reply #8 on: August 25, 2005, 05:52:46 AM »
Really ? Well, if so - find me the results about your statement and mine regarding the $cat_cache string from your local search and confirm again if this is wrong. ;)
I have no idea what u just said...
if u belive that your condition u've posted above is correct, then sorry to tell u that: u dont know what u are talking about (btw, I've noticed that in more then half of your posts here)

TheOracle

  • Guest
Re: Dont Want Private Categ.. Images In Random pics
« Reply #9 on: August 25, 2005, 05:54:32 AM »
In case you haven't noticed, I have just modified my post above.

As for :

Quote

then sorry to tell u that: u dont know what u are talking about (btw, I've noticed that in more then half of your posts here)


If so, I wouldn't be able to post all the MODs I did already wouldn't I ? If I see some of your MOD versions, as big as I posted already for users, I'd be happy to see them !