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 Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old April 4th, 2006, 01:55 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Location: Lafayette, CA
Posts: 31
Send a message via AIM to flavoflav Send a message via Yahoo to flavoflav
inc_photopost.php and inc_features.php

Okay I run photopost pro and have tried to integrate it with my vbulletin board. I have it running and it works, but it has strange behavior. I have 3 thumbnails - I have it set to the Random feature and it will not show member galleries. I have inc_photopost.php set to show member galleries on the index - I allow non logged in people to view all my galleries.

These are the sql select statements from inc_features.php - what can I add to have them include the member galleries?

switch ($q_switch) {
case "most_view":
$query = "SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.height,p.width,c.catname,c.photos,c.posts
FROM {$pp_db_prefix}photos p
LEFT JOIN {$pp_db_prefix}categories c ON c.id = p.cat
WHERE c.cattype = 'c' AND p.cat != 500 AND p.storecat = 0
ORDER BY views DESC";
break;

case "latest":
$query = "SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.height,p.width,c.catname,c.photos,c.posts
FROM {$pp_db_prefix}photos p
LEFT JOIN {$pp_db_prefix}categories c ON c.id = p.cat
WHERE c.cattype = 'c' AND p.cat != 500 AND p.storecat = 0
ORDER BY date DESC";
break;

default:
$query = "SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.height,p.width,c.catname,c.photos,c.posts
FROM {$pp_db_prefix}photos p
LEFT JOIN {$pp_db_prefix}categories c ON c.id = p.cat
WHERE c.cattype = 'c' AND p.cat != 500 AND p.storecat = 0
ORDER BY RAND()";
flavoflav is offline   Reply With Quote
Old April 4th, 2006, 09:07 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,666
It is not designed to show member gallery photos

You would need to remove this from the queries

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old April 5th, 2006, 01:52 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Location: Lafayette, CA
Posts: 31
Send a message via AIM to flavoflav Send a message via Yahoo to flavoflav
thanks

that worked great...
flavoflav 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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
inc_photopost.php What does it do? Schahab Photopost Pro Installation & Upgrades 3 January 27th, 2006 10:00 AM
inc_features.php help s2kinteg916 Photopost Pro How Do I...? 15 December 19th, 2005 12:41 PM
inc_features.php hendri Photopost Pro How Do I...? 2 May 26th, 2005 07:49 PM
inc_photopost.php stopped showing pics HxC Photopost Pro Installation & Upgrades 2 February 28th, 2005 03:19 PM


All times are GMT -5. The time now is 09:36 AM.

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