 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
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?
|
| |
September 10th, 2005, 04:16 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
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
|
| |
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.
|
| |
September 10th, 2005, 08:13 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
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
|
| |
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.
|
| |
September 11th, 2005, 10:41 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
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
|
| |
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
|
| |
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...
|
| |
December 6th, 2005, 12:04 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
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
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 02:49 AM. | |