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 October 25th, 2005, 05:17 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jun 2003
Posts: 110
Add most recent images to home page (php file)

After finally getting the script to work to show the most recenlty loaded images on my index.shtml file - I have a new program that needs that file to be index.php.

I would still like to show the most recent images there - is there a way?

I figure it needs to be something like:
<?php require("gallery/something.php"); ?>

but I don't know what. I know just enough PHP to be dangerous! LOL so I am not sure what to put there.

Patti
stmpspaz is offline   Reply With Quote
Old October 25th, 2005, 05:35 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
If the file is just php just do this

include ('/some/path/o/inc_features.php');

echo "$photopostfeature";
__________________
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 October 25th, 2005, 10:41 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jun 2003
Posts: 110
I am not sure how to use this information.

I placed it in my php file as:

<?php include ('/gallery/inc_features.php');
echo "$photopostfeature"; ?>

I get errors of:
Warning: main(): open_basedir restriction in effect. File(/gallery/inc_features.php) is not within the allowed path(s): (/home/xxxxx/:/usr/local/sqmail/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/xxxxx/public_html/members/indexnew.php on line 163
stmpspaz is offline   Reply With Quote
Old October 25th, 2005, 10:51 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
You must use full server path to the file

/home/xxxxx/public_html/gallery/inc_features.php
__________________
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 October 25th, 2005, 11:03 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jun 2003
Posts: 110
I made that change - but now I get:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/xxxxx/public_html/members/gallery/inc_features.php on line 54

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/xxxxx/public_html/members/gallery/inc_features.php on line 119
stmpspaz is offline   Reply With Quote
Old October 26th, 2005, 09:13 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
In your edit integration settings in admin make sure the proper photopost table prefix exists in there
__________________
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
How do I add the Random Images Block to my home page mackers8923 Photopost Pro How Do I...? 3 December 17th, 2005 08:24 PM
Missing images/home.gif file mawby Classifieds Bug Reports 1 June 25th, 2005 08:06 AM
Newest Images on Gallery home page ConqSoft Bugs From 1.0.0 2 March 1st, 2005 04:51 PM


All times are GMT -5. The time now is 01:59 PM.

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