PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Excluding a category from Recently Added? (http://www.photopost.com/forum/photopost-pro-how-do-i/112737-excluding-category-recently-added.html)

Vickie March 11th, 2005 05:46 AM

Excluding a category from Recently Added?
 
Hi,

I have a website that has some graphic pictures on it (labor and birth pictures) and I want to know if it is possible to exclude display of pictures in this category in the Recently added display?

Thanks,
Vickie

Chuck S March 11th, 2005 09:20 AM

Just edit the function display_gallery and add a clause in the function like so where cat is the cat you dont want displayed

$exclude_cat="AND cat != 'SOMECATNUMBER'";

Thats it

sfm_aceman April 3rd, 2005 01:57 PM

Where can I find this function? what file is it located in? index???

Aceman

sfm_aceman April 3rd, 2005 02:21 PM

Removed: see below. I figured this out.

Aceman

sfm_aceman April 3rd, 2005 02:50 PM

Got it working:

at line 454 in file "pp-inc.php":

$catquery = ""; $cattype = "c";
$exclude_cat="AND cat NOT IN (6019,6020,6021,6022,6023,6024,6025,6026,6027,6028,6029,6030,6031,6032,6033,6034,6035)";

if ($rcols < 0) $rcols = 4;

sfm_aceman April 3rd, 2005 02:51 PM

This excludes all the categories I do not want showing in the latest images, Most Popular, and Random Images areas on the gallery index page.

Rids April 4th, 2005 11:13 AM

If you have a lot of categories and only want to show the images from one or two how would you go about that?

Michael P April 4th, 2005 11:18 AM

You could say:

AND cat IN (XXX,XXX)

where XXX is the cat you want to list from.

Rids April 4th, 2005 03:28 PM

Thanks Michael :)

Rids April 4th, 2005 04:26 PM

Doesn't seem to work either way using 5.03, I've tried both and the thumbs still come from all cats

LMer April 25th, 2005 03:56 PM

$exclude_cat doesn't seem to work in pp5. The only query that $exclude_cat seems to be part of is in search.php. Does anyone know which query $exclude_cat should be added to prevent specific categories from appearing in the "recently added" section?

Thanks

mlucek April 25th, 2005 04:32 PM

How about adding an option to each category to tell whether to include in the random/recent/top-rated/etc. views ?

This seems to be a common request I've seen more than a few times.

Chuck S April 25th, 2005 06:05 PM

$exclude_cat will work if you place it in the proper place. My post above is an example to add it to the display_gallery function

digitaldame April 26th, 2005 04:02 PM

Exclude user
 
I'd like to excude a specific user from showing up in most recent. Is there a way for me to modify the code to do that?

The Great Hitoki April 26th, 2005 08:13 PM

Quote:

Originally Posted by omegatron
Just edit the function display_gallery and add a clause in the function like so where cat is the cat you dont want displayed

$exclude_cat="AND cat != 'SOMECATNUMBER'";

Thats it


I cant find display_gallery in my FTP. :confused: Can you be more specific in which files I would have to go into to find it? I apologize for I am still very new with all this.

Chuck S April 26th, 2005 08:18 PM

its in the file pp-inc.php as stated above

The Great Hitoki April 26th, 2005 08:27 PM

OO ok now I have found it. The question I have now is what is the catnumber and where do I find that? Is it the order number because I tried that and it did not work.

Chuck S April 27th, 2005 06:22 AM

order number? Your getting me confused here. You input a cat variable you dont want to display in there.

The Great Hitoki April 27th, 2005 12:31 PM

Quote:

Originally Posted by omegatron
order number? Your getting me confused here. You input a cat variable you dont want to display in there.


Well I dont know where to find the cat variable. Ive checked in the admin statistic log and found cat id's and I input them into the code above in my FTP but that did not work. So my question is where do I find the cat variable? :confused:

Chuck S April 27th, 2005 01:21 PM

Okay a cat variable would be whichever category you do not want photos not showing from in the recent uploads etc.

Say you have a cat that has a numeric id of 507 and want to exclude those photos you would put 507 in there.


All times are GMT -5. The time now is 11:25 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97