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 September 10th, 2005, 03:31 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2005
Posts: 11
difficulties with inc_features - please help

To my best knowledge, everything in inc_features at my site should be ok. Photopost itself is running perfectly, but I cant't get inc_features to display pictures on a custom page.

If I run inc_features.phpo, these are the errors I get:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/virtual/site4/fst/var/www/html/gallery/inc_features.php on line 49

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/virtual/site4/fst/var/www/html/gallery/inc_features.php on line 63

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/virtual/site4/fst/var/www/html/gallery/inc_features.php on line 115


If I call inc_features from another .php page like this:

<?
include "/home/virtual/site4/fst/var/www/html/gallery/inc_features.php";

echo "$photopostfeature" ;
?>

I get a display that says "Featured Photos", but doesn't show pictures at all.
So what am I doing wrong here?
observer is offline   Reply With Quote
Old September 10th, 2005, 04:16 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
If you have the forum and photopost in separate databases you need to uncomment the mysql_select_db lines as the instructions state and point to the proper database etc so everything can be found
__________________
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 September 10th, 2005, 06:56 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2005
Posts: 11
I don't. They are in the same database.
observer is offline   Reply With Quote
Old September 10th, 2005, 08:13 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
Okay so you say they are in the same database forum and photopost

Okay in your integration settings make sure you have the proper table prefix entered for photopost
__________________
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 September 11th, 2005, 05:00 AM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2005
Posts: 11
That shouldn't be the problem either.

Forum integration works flawless. It's skinned like vb3, cookies work, everything ok. I just can't get inc_features working.

Addendum:

When I include $pohotopostfeature in the template for forumhome, it displays links with the relative path to picture and the name of the one who posted it, but no picture (no thumbnail).

Last edited by observer; September 11th, 2005 at 06:03 AM.
observer is offline   Reply With Quote
Old September 11th, 2005, 10:41 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
Well obviously you have changed something if your not getting mysql errors now. I need you to post a url so I can see what your doing more than likely in your config-int.php INTEGRATION OPTIONS you have the data url set incorrectly if it is not displaying pictures
__________________
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 September 11th, 2005, 10:51 AM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2005
Posts: 11
Mailed you my config-int.php and the url. Thanks in advance.

Bernhard
observer is offline   Reply With Quote
Old December 6th, 2005, 11:56 AM   #8 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 30
OK, so the inc_features.php file is what folks are using to display a picture(s) on their home page, or any other page in their site - correct? looking at the code it appears that you have a choice between random, most_view, latest for what you want to show. is there a way to display the latest picture in a particular category? I have a category on my site/gallery called Cover Shot. I want to always display the latest shot from that category on my home page plus it's title and description. I'm sure I can write something to do this, it's hardly rocket science, but it would be nice if this were already done & I'm lazy.

thanks...
climber is offline   Reply With Quote
Old December 6th, 2005, 12:04 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
change this say

AND p.cat !=500

to say

AND p.cat=521

where 521 is the cat you want to pull from
__________________
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
inc_features problem lighterrr Photopost Pro Installation & Upgrades 2 October 30th, 2005 09:25 AM
What changed in inc_features iloco Photopost Pro Installation & Upgrades 1 October 19th, 2005 10:22 AM
New members and inc_features iloco Photopost Pro How Do I...? 2 October 7th, 2005 11:58 AM
inc_features.php hendri Photopost Pro How Do I...? 2 May 26th, 2005 07:49 PM


All times are GMT -5. The time now is 02:49 AM.

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