 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
March 11th, 2005, 06:46 AM
|
#1 (permalink)
| | Registered User
Join Date: Feb 2005
Posts: 8
| 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
|
| |
March 11th, 2005, 10:20 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
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
|
| |
April 3rd, 2005, 02:57 PM
|
#3 (permalink)
| | Junior Member
Join Date: Oct 2002
Posts: 28
|
Where can I find this function? what file is it located in? index???
Aceman
|
| |
April 3rd, 2005, 03:21 PM
|
#4 (permalink)
| | Junior Member
Join Date: Oct 2002
Posts: 28
|
Removed: see below. I figured this out.
Aceman
Last edited by sfm_aceman; April 3rd, 2005 at 03:52 PM.
Reason: fixed problem see below.
|
| |
April 3rd, 2005, 03:50 PM
|
#5 (permalink)
| | Junior Member
Join Date: Oct 2002
Posts: 28
|
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;
Last edited by sfm_aceman; April 3rd, 2005 at 03:53 PM.
|
| |
April 3rd, 2005, 03:51 PM
|
#6 (permalink)
| | Junior Member
Join Date: Oct 2002
Posts: 28
|
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.
|
| |
April 4th, 2005, 12:13 PM
|
#7 (permalink)
| | Member
Join Date: Aug 2002 Location: TeXaS
Posts: 293
|
If you have a lot of categories and only want to show the images from one or two how would you go about that?
|
| |
April 4th, 2005, 12:18 PM
|
#8 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,858
|
You could say:
AND cat IN (XXX,XXX)
where XXX is the cat you want to list from.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
April 4th, 2005, 04:28 PM
|
#9 (permalink)
| | Member
Join Date: Aug 2002 Location: TeXaS
Posts: 293
|
Thanks Michael |
| |
April 4th, 2005, 05:26 PM
|
#10 (permalink)
| | Member
Join Date: Aug 2002 Location: TeXaS
Posts: 293
|
Doesn't seem to work either way using 5.03, I've tried both and the thumbs still come from all cats
|
| |
April 25th, 2005, 04:56 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Jun 2003
Posts: 41
|
$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
|
| |
April 25th, 2005, 05:32 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Feb 2004 Location: Beach/Lost Angeles
Posts: 147
|
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.
|
| |
April 25th, 2005, 07:05 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
$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
|
| |
April 26th, 2005, 05:02 PM
|
#14 (permalink)
| | Registered User
Join Date: May 2004
Posts: 5
| 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?
|
| |
April 26th, 2005, 09:13 PM
|
#15 (permalink)
| | Junior Member Verified Customer
Join Date: Apr 2005
Posts: 19
| 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.  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.
|
| |
April 26th, 2005, 09:18 PM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
its in the file pp-inc.php as stated above
|
| |
April 26th, 2005, 09:27 PM
|
#17 (permalink)
| | Junior Member Verified Customer
Join Date: Apr 2005
Posts: 19
|
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.
|
| |
April 27th, 2005, 07:22 AM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
order number? Your getting me confused here. You input a cat variable you dont want to display in there.
|
| |
April 27th, 2005, 01:31 PM
|
#19 (permalink)
| | Junior Member Verified Customer
Join Date: Apr 2005
Posts: 19
| 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? |
| |
April 27th, 2005, 02:21 PM
|
#20 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
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.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 06:20 AM. | |