coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: mrpcpro on February 03, 2005, 05:10:31 AM

Title: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 05:10:31 AM
Can somebody please help me integrate coppermine with invisionboard. This is chinese to me.

Thanks

CG
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: donnoman on February 03, 2005, 05:16:20 AM
search the boards for "invision" or "IPB", there are many posts on the subject.
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: Tranz on February 03, 2005, 05:17:56 AM
Did you read the instructions? http://coppermine.sourceforge.net/manual.php#integrating

You have to ask more specific questions.
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 05:28:11 AM
I read the instructions. Coppermine works fine without the integration. As soon as I integrate I get weird errors. LIke I can't use the e-card system. I'm going to install it again then give you my files to look at.

CG
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 05:29:48 AM
FIRST I MADE SURE I INSTALLED COPPERMINE IN THE SAME TABLE AS INVISIONBOARD

Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 05:33:10 AM
I Chmod 777 albums and include
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: Tranz on February 03, 2005, 05:34:35 AM
A good start is to provide us with the error messages you are getting.
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 05:38:24 AM
While executing query "SELECT name as user_name, mgroup, email as user_email, joined as user_regdate, location as user_location, interests as user_interests, website as user_website FROM `fightwor_ipowerb`.ibf_members WHERE id = '335'" on 0

mySQL error: Unknown column 'location' in 'field list'
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 05:38:57 AM
the above happens when I'm logged in as an admin. But as a guest I can use the e-card system

cg
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 05:41:46 AM
/home/fightwor/public_html/ipowerb/copper/include/functions.inc.php - Line: 105
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 05:50:15 AM
actually it happens checking groups I guess. When I don't login I can access e-card system. When I login I get the error above.

CG
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: Hein Traag on February 03, 2005, 07:58:47 AM
This board isnt slowchat. Try posting more text per post instead of posting 1 sentence per post every few minutes.
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 01:12:20 PM
Quote from: Hein on February 03, 2005, 07:58:47 AM
This board isnt slowchat. Try posting more text per post instead of posting 1 sentence per post every few minutes.

Is this your professional guess at what's the problem?  ::)
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: kegobeer on February 03, 2005, 01:46:03 PM
Come on man, help us out.  It's so much easier to read when you compose a complete message instead of posing several one line messages.
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 01:54:25 PM
Quote from: kegobeer on February 03, 2005, 01:46:03 PM
Come on man, help us out.  It's so much easier to read when you compose a complete message instead of posing several one line messages.

So here it is all in one shot.

I installed Coppermine in the invision board database, I edited the files that come with coppermine 1.3.2 and uploaded them to the correct directory. When I login to Invisionboard then go to the coppermine index.php it logs me in automatically. I knows I'm an admin and all of the features seem to work fine except that as soon as I try to use the e-card system I get this error:

While executing query "SELECT name as user_name, mgroup, email as user_email, joined as user_regdate, location as user_location, interests as user_interests, website as user_website FROM `fightwor_ipowerb`.ibf_members WHERE id = '335'" on 0

mySQL error: Unknown column 'location' in 'field list'


File: /home/fightwor/public_html/ipowerb/copper/include/functions.inc.php - Line: 105


Here is the debug info:

USER:
------------------
Array
(
    [ID] => 231ef02fb25b7c182e10805d243b28c6
    [am] => 1
    [liv] => Array
        (
           
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: Nibbler on February 03, 2005, 01:59:28 PM
Same goes as in this thread:

http://forum.coppermine-gallery.net/index.php?topic=12067.0
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 02:01:34 PM
Quote from: Nibbler on February 03, 2005, 01:59:28 PM
Same goes as in this thread:

http://forum.coppermine-gallery.net/index.php?topic=12067.0

I see, but that problem has no resolution? Is this the same case for my problem?

CG
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: Nibbler on February 03, 2005, 02:02:46 PM
The solution lies in your hands, you need to look at the database and modify the query to fit what you can see.
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 02:04:14 PM
Quote from: Nibbler on February 03, 2005, 02:02:46 PM
The solution lies in your hands, you need to look at the database and modify the query to fit what you can see.

would removing that portion of the query damage the program, in your opinion?

CG
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: Nibbler on February 03, 2005, 02:08:01 PM
Try it and see. If it breaks then try changing 'location as user_location' to ' '' AS user_location'
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 02:11:27 PM
Quote from: Nibbler on February 03, 2005, 02:08:01 PM
Try it and see. If it breaks then try changing 'location as user_location' to ' '' AS user_location'

I'll try it now Sir.  Thanks

CG
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 02:22:56 PM
I think I see the problem. The data requested by the sql statement is not only in the members table but the member_extra table. wouldn't these two tables have the be joined based on UserID so the SQL statement is able to retrieve the databa?

CG
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: Hein Traag on February 03, 2005, 02:29:01 PM
Quote from: mrpcpro on February 03, 2005, 01:12:20 PM
Quote from: Hein on February 03, 2005, 07:58:47 AM
This board isnt slowchat. Try posting more text per post instead of posting 1 sentence per post every few minutes.

Is this your professional guess at what's the problem? ::)

It's my opinion on your way of posting. See it as advice to shorten the threads you open and getting a quicker answer from those who are kind enough to help out.
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 02:35:56 PM
Quote from: Hein on February 03, 2005, 02:29:01 PM
Quote from: mrpcpro on February 03, 2005, 01:12:20 PM
Quote from: Hein on February 03, 2005, 07:58:47 AM
This board isnt slowchat. Try posting more text per post instead of posting 1 sentence per post every few minutes.

Is this your professional guess at what's the problem? ::)

It's my opinion on your way of posting. See it as advice to shorten the threads you open and getting a quicker answer from those who are kind enough to help out.

I understand, but your smart ass "this isn't slow chat" comment was necessary. I'm trying to do the best I can, I'm sorry that doesn't please you.

CG




Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 02:51:24 PM
I think I know what I'm going to try. Since I know joined isn't a field I'll replace it with another field I know exists. I'll let you know when I blow up my computer
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 03:06:34 PM
well that did the trick! I replaced the fields that I know don't exist in the members table with fields I know do exist. Obviously what would be better would be to join members and members extra table to get the original query to work.

Any ideas on how to do that? Hein, you've been brilliant so far. Maybe you have some ideas?
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: Hein Traag on February 03, 2005, 03:09:03 PM
QuoteCome on man, help us out.  It's so much easier to read when you compose a complete message instead of posing several one line messages.

That's another way of saying it. Seeing how well you take advice on how to post i wish you the best of luck with coppermine and this board. You might want to read the HowTo on posting on this board while your at it.
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 03:14:09 PM
Quote from: Hein on February 03, 2005, 03:09:03 PM
QuoteCome on man, help us out.  It's so much easier to read when you compose a complete message instead of posing several one line messages.

That's another way of saying it. Seeing how well you take advice on how to post i wish you the best of luck with coppermine and this board. You might want to read the HowTo on posting on this board while your at it.

Well I did do that. After he explained why it was better I immediately posted everything in one shot.

I think you are the one with the problem. Not everyone can take jokes very well. Your first post was to make fun of me rather then help. If this is your contribution to my question then why bother? I'm not being nasty or anything to you. I simply said I needed help and you just make fun of me. That's not fair.

Anyway, I really don't understand why those fields are requested in the SQL statement because they are not used in the e-card system. Pretty silly if you ask me
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 03:24:20 PM
I hope my solution helps somebody. It's not the greatest solution, but it's certainly better then "IT'S UP TO YOU TO FIX IT" answers I've seen.

I guess the biggest problem with Invision board support is that you have to buy Invision Board in order to understand what someone is experiencing. So it must be hard for the open source people to integrate with this board without having to spend lots of $$$

I really think it sucks that Invision board is paid now, but it's a pretty amazing board with tons of options.I hope SMF becomes better and stays free so I can switch over to this board. It's pretty nice.

Finally, I still don't know why that SQL statement asks for location, website, and other stuff because it doesn't use it. Maybe it's somewhere else and I can't find it.

I'll report back to see if I can find it
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 03:28:26 PM
simple enough, it's under Profile. When you pull up a user's profile you get the results of the fields I substituted. For "Location in user_location" is used "posts in user_location" so when you pull up a profile rather then "location" you will get "posts". So to fix the error you would have to join members and members_extra table and then run the original query.

The above is just my guess.

CG
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: Hein Traag on February 03, 2005, 04:00:43 PM
Just for the sake of argument. My first post was not ment to make fun of you but merely to point out you were kinda flooding the thread with one-liners, as kegobeer points out as wel. EOF
Title: Re: I'M AN IDIOT PLEASE HELP
Post by: mrpcpro on February 03, 2005, 04:13:42 PM
Quote from: Hein on February 03, 2005, 04:00:43 PM
Just for the sake of argument. My first post was not ment to make fun of you but merely to point out you were kinda flooding the thread with one-liners, as kegobeer points out as wel. EOF

OK. Thanks Hein. I guess it was my mistake. Sorry

CG