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 > General Forums > General Discussion

General Discussion General use discussion forum for PhotoPost products.

Reply
 
Thread Tools Rate Thread Display Modes
Old June 3rd, 2005, 12:10 PM   #1
dkmulford
Registered User
 
Join Date: May 2003
Posts: 138
Random pics from a specific category

A while back on photopostdev there was some discussion about trying to do a PAL that would select random pictures from a specific category (versus from all categories). See the link below.

Has anyone done this mod yet?

Thanks,
Darren

http://www.photopostdev.com/showthre...=5525#post5525
dkmulford is offline   Reply With Quote
Old June 3rd, 2005, 12:53 PM   #2
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,419
Just use any of the features block hacks and adjust your query to limit the returns to the cat your want like so'

AND cat='511'
__________________
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 June 6th, 2005, 05:09 PM   #3
dkmulford
Registered User
 
Join Date: May 2003
Posts: 138
Chuck,

I did a search for "features block hack" and I didn't come up with anything. Are you refering to the PAL hack that Michael posted at the link below?

http://www.photopostdev.com/showthre...=5525#post5525

Thanks,
Darren
dkmulford is offline   Reply With Quote
Old June 6th, 2005, 05:29 PM   #4
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,419
I am saying you can use the inc_features.php file as a model or any of the random thumbnailer hacks as a model. You just adjust the query as I noted to adjust it to only pull from one category
__________________
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 June 7th, 2005, 08:08 AM   #5
dkmulford
Registered User
 
Join Date: May 2003
Posts: 138
Ah, you are talking about the hack used to display thumbnails in VB, etc.? ...that is one discussion I never followed. I'll do a search on inc_features.php to find it. Thanks.

...I am also wondering if I could hack one of the PAL files?

Darren
dkmulford is offline   Reply With Quote
Old June 7th, 2005, 10:38 AM   #6
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,419
Your best bet to hack a script to display thumbs elsewhere is to mock the inc-features script or get a compatible thumbnailer hack off photopostdev.com
__________________
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 June 7th, 2005, 11:57 AM   #7
dkmulford
Registered User
 
Join Date: May 2003
Posts: 138
Chuck,

I'm only wanting to show random photos/videos from a specific category on PP's index page only. .....I really don't need to show them anywhere else. This is why I am wondering if I could just mod the PALs.

Darren
dkmulford is offline   Reply With Quote
Old June 7th, 2005, 12:09 PM   #8
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 75,419
In my first post in this thread modify in pp-inc.php function display_gallery and add in the cat restrictor I state in the queries
__________________
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 June 7th, 2005, 12:17 PM   #9
dkmulford
Registered User
 
Join Date: May 2003
Posts: 138
Thanks Chuck! I'll give it a try.
dkmulford is offline   Reply With Quote
Old June 7th, 2005, 09:51 PM   #10
dkmulford
Registered User
 
Join Date: May 2003
Posts: 138
Chuck,

I'm not quite sure where to add the "AND cat='511'"? See the bold below...this crashes.

Thanks,
Darren

Code:
Content visible to verified customers only.
dkmulford 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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Link to a specific / random photo ? Matthijs General Discussion 13 September 24th, 2005 10:33 PM
htaccess for specific category? shamrox General Discussion 4 August 25th, 2004 12:09 PM


All times are GMT -5. The time now is 02:47 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.