 | |  | | | General Discussion General use discussion forum for PhotoPost products. |
September 8th, 2004, 06:49 PM
|
#1 (permalink)
| | Senior Member
Join Date: Mar 2003
Posts: 1,296
| anyone tried todo a photopostpal with ipb?
Hi..
I'm trying, so far so good...not really
ipb...hmmm doesn't use $ in any templates right? thus if i insert a $photopostfeature or anything like that i'm stuffed... also i'm trying to find the string that holds the ipb.member['id'] - but i cannot use $ in ipb (i'm on v2.0 using 4.8.2) ahh...any help would be greatly recieved
edit, my databases are one, i'm trying to use the membergrouping to view thumbs or if not logged in show another thumb of my choosing, worked on VB... maybe i'll use the photopost group table instead
cheers
-T
Last edited by b6gm6n; September 8th, 2004 at 06:51 PM.
|
| |
September 9th, 2004, 11:07 AM
|
#2 (permalink)
| | Registered User
Join Date: May 2003
Posts: 138
|
What are you trying to do? ...bring IPB into PP as a PAL? If so, I'd be interested in this also.
DM
|
| |
September 9th, 2004, 01:36 PM
|
#3 (permalink)
| | Senior Member
Join Date: Mar 2003
Posts: 1,296
|
no just the recent photos in the ipb index
-T
|
| |
September 9th, 2004, 02:32 PM
|
#4 (permalink)
| | Senior Member
Join Date: Mar 2003
Posts: 1,296
|
where's omegatron...?
i'm stuck, i get and invalid "mysql_fetch_array(): supplied argument is not a valid MySQL result resource"
gotta be right right?
I'm trying to make a photopost pal to show the recent images on my ipb index page, the query is good to my knowledge, i'm not sure if my 'mgroups' line is halting things, actually i removed it and still the same...please advise, i'll keep working Code: Content visible to verified customers only.
|
| |
October 8th, 2004, 05:42 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Oct 2003 Location: NJ
Posts: 31
|
Did anyone get this to work? I would really like to get some random photopost photos on my IPB 2.0 index page.
|
| |
October 8th, 2004, 07:42 PM
|
#6 (permalink)
| | Senior Member
Join Date: Mar 2003
Posts: 1,296
| |
| |
October 9th, 2004, 05:42 AM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Oct 2003 Location: NJ
Posts: 31
|
I see that Toney, but I have mine setup in 2 seperate databases also.
Is there a fix for that?
|
| |
October 9th, 2004, 08:18 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
Yep Toney's problem was he was trying to define variables from ourside of photopost in IBP from looking at the code
If you need to use different databases just use the mysql select database
If they have the same user and password you can use this
mysql_select_db("db1");
If they have different user/password you need to setup a link statement and this
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Not connected : ' . mysql_error());
}
// make foo the current db
$db_selected = mysql_select_db('foo', $link);
if (!$db_selected) {
die ('Can\'t use foo : ' . mysql_error());
}
|
| |
October 9th, 2004, 09:34 AM
|
#9 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,858
| http://www.photopostdev.com is the site we discuss subjects like this that involve coding issues.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
October 9th, 2004, 01:11 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Oct 2003 Location: NJ
Posts: 31
|
omegatron, after trying what you said (mysql_select_db("db1")  , I now get this error "Could not select photopost database"
Got any other ideas? Besides moving the database?
Thanks
|
| |
October 9th, 2004, 01:43 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
As Michael stated this kind of question is not answered on a support forum where we do not discuss hacking but help customers with the normal program
You need to ask your hacking questions at the hack site as I was just being nice and pointing you in the right direction
|
| |
October 9th, 2004, 01:50 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Oct 2003 Location: NJ
Posts: 31
|
Ok, will do, thanks
|
| | |
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 04:35 PM. | |