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 January 14th, 2006, 01:45 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jan 2002
Posts: 54
inc_features...pulling from one cat (not specified in inc_features)...Ideas?

For some reason I can't get random photos on my home page to work quite right. Actually, on one site (same server) it works perfectly, while in this case, it shows random pictures from one specific category (id 3022), but I can't get the thing to pull from cat 500 for the life of me. I even copied the inc_features from the other site in case it was dorked up. Still, I get random pics from the one cat.

Please help! It just so happens that the one cat I don't want showing IS showing. I have tried specifying specific cats with no luck too.

thoughts?

current inc_features settings (all photos are showing from cat 3022):


FROM {$pp_db_prefix}photos p
LEFT JOIN {$pp_db_prefix}categories c ON c.id = p.cat
WHERE c.cattype = 'c' AND p.storecat = 0
ORDER BY RAND()";

Last edited by cobradude; January 14th, 2006 at 02:06 PM.
cobradude is offline   Reply With Quote
Old January 15th, 2006, 09:55 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
Well in a default inc_features.php it does not pull from the members gallery at all. That would be because of the query including this

AND p.cat != 500

The query above will pull random photos from any category that is not an album so it would pull member gallery photos but just a thought here check your member's gallery permissions in admin edit categories because the mod will only show photos you have permission to view.
__________________
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 January 15th, 2006, 12:20 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jan 2002
Posts: 54
I checked all of the permissions. The one category that shows is the one that requires membership. Did some testing with permissions and here's what I found.

Only category that wasn't wide open to viewing, etc was 3022 which is the only one that showed up. Hmmmm....

Changed category 3022 to be wide open to viewing, etc, (all boxes checked), and it stopped showing on the home page (nothing shows)

changed another category to not show for people waiting on email notification and now it shows on the home page.

Changed a bunch of other categories in the same way and they all show.

Log out and view the home page and guess what, the one category 3022 which shouldn't show images if the person is unregistered show just fine. That's bad.

On the site where everything works the ability to view the photos for every category has every box checked and the only difference between the sites is that the one that seems to work has vb3.5 and the one that doesn't is vb2x. There's some sort of permissions bug here, but I can't figure it out. The only way I can make the category 3022 not show on the home page seems to be to open it up (don't want to do) OR add AND p.cat != 3022 to inc_features.

Thoughts?
cobradude is offline   Reply With Quote
Old January 15th, 2006, 12:32 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
Not without seeing your setup Nope. The inc_features.php script as supported in our software is written to show photos that are in regular categories and not in the members gallery or albums.
__________________
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 January 15th, 2006, 01:07 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jan 2002
Posts: 54
What do you need from me to check settings, etc?
cobradude is offline   Reply With Quote
Old January 15th, 2006, 01:10 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
Well url's and maybe an admin login would be needed. You could send ftp if you want.
__________________
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 January 15th, 2006, 02:52 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jan 2002
Posts: 54
Just sent you a pm with username/password.
cobradude is offline   Reply With Quote
Old January 15th, 2006, 04:32 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
I clicked the link you sent me and I see random photos from over 5 categories when I view that page it appears to work just fine.
__________________
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 January 15th, 2006, 10:34 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Jan 2002
Posts: 54
It only works because like I said above, I unchecked one (any one or more) of the boxes for viewing those categories. If I didn't exclude 3022 from inc_features it would show too even though I had the permissions set to not viewable by unregistered users. Likewise, if I have a category that has the images viewable by all groups, it will not show on the front page. I am ok with the results at this point as I have worked around a problem, but it's not absolutely correct behavior.
cobradude is offline   Reply With Quote
Old January 16th, 2006, 08:18 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
The inc file itself checks your permissions and shows categories that a user has view permission for.

Have you done anything like switch integrations lately any major changes?
__________________
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 January 16th, 2006, 10:54 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Jan 2002
Posts: 54
I upgraded only from 4.5.
cobradude 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
What changed in inc_features iloco Photopost Pro Installation & Upgrades 1 October 19th, 2005 09:22 AM
New members and inc_features iloco Photopost Pro How Do I...? 2 October 7th, 2005 10:58 AM
inc_features.php hendri Photopost Pro How Do I...? 2 May 26th, 2005 06:49 PM


All times are GMT -5. The time now is 04:32 AM.

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