PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   difficulties with inc_features - please help (http://www.photopost.com/forum/photopost-pro-how-do-i/115645-difficulties-inc_features-please-help.html)

observer September 10th, 2005 02:31 PM

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?

Chuck S September 10th, 2005 03:16 PM

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

observer September 10th, 2005 05:56 PM

I don't. They are in the same database.

Chuck S September 10th, 2005 07:13 PM

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

observer September 11th, 2005 04:00 AM

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).

Chuck S September 11th, 2005 09:41 AM

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

observer September 11th, 2005 09:51 AM

Mailed you my config-int.php and the url. Thanks in advance.

Bernhard

climber December 6th, 2005 10:56 AM

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...

Chuck S December 6th, 2005 11:04 AM

change this say

AND p.cat !=500

to say

AND p.cat=521

where 521 is the cat you want to pull from


All times are GMT -5. The time now is 08:52 AM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97