PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 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
Vickie is offline   Reply With Quote
Old March 11th, 2005, 10:20 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 3rd, 2005, 02:57 PM   #3 (permalink)
Junior Member
 
Join Date: Oct 2002
Posts: 28
Send a message via ICQ to sfm_aceman
Where can I find this function? what file is it located in? index???

Aceman
sfm_aceman is offline   Reply With Quote
Old April 3rd, 2005, 03:21 PM   #4 (permalink)
Junior Member
 
Join Date: Oct 2002
Posts: 28
Send a message via ICQ to sfm_aceman
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.
sfm_aceman is offline   Reply With Quote
Old April 3rd, 2005, 03:50 PM   #5 (permalink)
Junior Member
 
Join Date: Oct 2002
Posts: 28
Send a message via ICQ to sfm_aceman
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.
sfm_aceman is offline   Reply With Quote
Old April 3rd, 2005, 03:51 PM   #6 (permalink)
Junior Member
 
Join Date: Oct 2002
Posts: 28
Send a message via ICQ to sfm_aceman
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.
sfm_aceman is offline   Reply With Quote
Old 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?
Rids is offline   Reply With Quote
Old 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.
Michael P is offline   Reply With Quote
Old April 4th, 2005, 04:28 PM   #9 (permalink)
Member
 
Join Date: Aug 2002
Location: TeXaS
Posts: 293
Thanks Michael
Rids is offline   Reply With Quote
Old 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
Rids is offline   Reply With Quote
Old 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
LMer is offline   Reply With Quote
Old 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.
mlucek is offline   Reply With Quote
Old April 25th, 2005, 07:05 PM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 26th, 2005, 05:02 PM   #14 (permalink)
Registered User
 
Join Date: May 2004
Posts: 5
Question 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?
digitaldame is offline   Reply With Quote
Old 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.
The Great Hitoki is offline   Reply With Quote
Old April 26th, 2005, 09:18 PM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
its in the file pp-inc.php as stated above
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
The Great Hitoki is offline   Reply With Quote
Old April 27th, 2005, 07:22 AM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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?
The Great Hitoki is offline   Reply With Quote
Old April 27th, 2005, 02:21 PM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Category not saving email addess added MRGTB Installs and Upgrade - vBulletin 3.0.X 10 January 13th, 2006 02:05 PM
Is it possible to but a block of recently upload images.. Mrs B How Do I? - vBulletin 3.0.X 1 September 5th, 2005 05:34 PM
Display images by last added rather than alphabetically Borgs8472 How Do I? - vBulletin 3.0.X 4 June 10th, 2005 07:44 AM
new comments not getting added sabret00the Installs and Upgrade - vBulletin 3.0.X 2 May 14th, 2005 11:54 AM


All times are GMT -5. The time now is 06:20 AM.

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