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 December 18th, 2005, 12:36 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 251
inc_features.php help

Can i use inc_featueres.php to pull up recent photos on a regular .php page ?
s2kinteg916 is offline   Reply With Quote
Old December 18th, 2005, 05:17 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,666
You would include it much the same way as vb

include the file and print the contents by echoing this

echo "$photopostfeature";

where you want it to display
__________________
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 December 18th, 2005, 07:39 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 251
i am getting errors

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

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

i already checked the... photopost prefix and its set to pp_
s2kinteg916 is offline   Reply With Quote
Old December 18th, 2005, 09:16 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,666
Right but that would mean whatever page your running this on is not in the same database as photopost I assume here,

So just like the instructions for vbulletin state when using with vbulletin in a separate database you would need to uncomment and fill out the proper variables in the $link and mysql_select_db lines for it to work.
__________________
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 December 18th, 2005, 11:06 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 251
ive uncommented both lines

Quote:
$link = mysql_connect ("localhost", "$dbuserid", "$dbuserpassword") or die('I cannot connect to the database.');
mysql_select_db ("pp_database")or die("Could not select photopost database");
do i need to set this to something ?

pp_database

i have photopost and the vb in the same database with pp_ as the prefix for photopost
s2kinteg916 is offline   Reply With Quote
Old December 18th, 2005, 11:09 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,666
yes you need to fill in database names and on the link line host username and password to the photopost database
__________________
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 December 19th, 2005, 12:42 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 251
what do i put here ?

pp_database ?
s2kinteg916 is offline   Reply With Quote
Old December 19th, 2005, 09:01 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,666
Read post 6
__________________
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 December 19th, 2005, 11:04 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 251
i have modified this info for my settings

$link = mysql_connect ("localhost", "$dbuserid", "$dbuserpassword") or die('I cannot connect to the database.');

and im getting this

Could not select photopost database
s2kinteg916 is offline   Reply With Quote
Old December 19th, 2005, 11:27 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,666
If you modified that line with the correct database info and the mysql_select_db to input your database name then it will connect.

The error your posting says something is not set right cause it can not establish a connection
__________________
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 December 19th, 2005, 11:32 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 251
i did not modify this line

mysql_select_db ("pp_database")or die("Could not select photopost database");

i asked you what info do i put in for pp_database
in post #7 and you referenced me to

inc_features.php help

which does not tell me to change pp_database
s2kinteg916 is offline   Reply With Quote
Old December 19th, 2005, 11:57 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,666
In post 5 you asked and in post 6 I responded accordingly

inc_features.php help
__________________
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 December 19th, 2005, 12:08 PM   #13 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 251
Quote:

do i need to set this to something ?

pp_database

i have photopost and the vb in the same database with pp_ as the prefix for photopost
i already set db name and password which was provided by your instructions.

I am still loss as far as what variable i put in for pp_database

post 6-12 or whatever number it is does not answer what this setting is it only tells me to setup dbname and password which i inputted already.

Last edited by s2kinteg916; December 19th, 2005 at 12:11 PM.
s2kinteg916 is offline   Reply With Quote
Old December 19th, 2005, 12:23 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,666
inc_features.php help

The first thing I stated is to fill in your database name
__________________
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 December 19th, 2005, 12:27 PM   #15 (permalink)
Member
Verified Customer
 
Join Date: Aug 2003
Posts: 251
so i change pp_database to the same database as where vbulleitn and photopost are installed in ?
s2kinteg916 is offline   Reply With Quote
Old December 19th, 2005, 12:41 PM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,666
You change the first select to your photopost database and the one at the bottom to your vbulletin database
__________________
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.php usage Steve_UK Photopost Pro How Do I...? 2 November 26th, 2005 09:59 AM
inc_features.php error upgrade 5.1 > 5.2 cpmike Photopost Pro Installation & Upgrades 2 October 4th, 2005 04:09 PM
inc_features.php woes vb3 sross Photopost Pro Installation & Upgrades 1 September 17th, 2005 09:41 AM
inc_features.php hendri Photopost Pro How Do I...? 2 May 26th, 2005 07:49 PM
inc_features.php question cpmike Photopost Pro How Do I...? 2 January 12th, 2005 04:32 PM


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

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