forum.coppermine-gallery.net

Support => Older/other versions => cpg1.1.X Support (standalone) => Topic started by: lmtuxinc on September 22, 2003, 03:27:18 am

Title: Invision Board 1.2 login from Coppermine
Post by: lmtuxinc on September 22, 2003, 03:27:18 am
I installed Coppermine with integration with Invision Board 1.2 final.  
When i try to login to Coppermine, it takes me to the Invision Board login page, where i can log in.
After that it goes to http://www.stjohnssweetair.org/forum/index.php?http://www.stjohnssweetair.org/coppermine/index.php which does nothing. I cant get it to recognize that it is logged in, so I have temporarily turned off the integration. How can i get Coppermine to accept that it is logged in?
Title: Invision Board 1.2 login from Coppermine
Post by: Joachim Müller on September 22, 2003, 06:54:36 am
I don't run Invision Board, so I'm only guessing: I know that there have been several issues with redirect and invision board on the old board - see if there's a var $redirect in invision board and wether you can use it. Please also give us the login data of a test account on your board and the url for your coppermine install.

GauGau
Title: Invision Board 1.2 login from Coppermine
Post by: xarumanx on September 22, 2003, 02:00:41 pm
I already tried to figure out the way invisionboard handles the redirection, but i couldn't wuite figure it out. According to the redirect function in the board it should strip everything before the ? and redirect accordingly, but for some weird reason it doesn't work.
Title: Invision Board 1.2 login from Coppermine
Post by: DARKLORD on September 29, 2003, 11:57:35 pm
i have the same problems...
Title: Invision Board 1.2 login from Coppermine
Post by: xarumanx on September 30, 2003, 12:53:08 pm
THere are several Mod Requests on the invisionboard forums to make the login/logout redirect work, but until today noone came up with a working hack.
For the good news: The creators of Invisionboard want to modularize their software with the next major release. Then it should be possible to create on central login page and you are logged in with any invision script you may be using. And there the login/logout redirection should work as intended.
Title: Invision Board 1.2 login from Coppermine
Post by: xarumanx on September 30, 2003, 02:42:55 pm
Found the link for more info about the IPS Converge, which will be released with IPB 2
http://www.invisionboard.com/converge/index.php
Title: Invision Board 1.2 login from Coppermine
Post by: NorbertGutscher on October 01, 2003, 10:05:09 am
the integration with invision board 1.2 works.
i think there is only a path-definition-problem.

http://www.menschen-foto.de

norbert
Title: Invision Board 1.2 login from Coppermine
Post by: Zerg on October 06, 2003, 08:36:06 am
Where can I get integration of Coppermine Gallery with Invision Board 1.2 Final? Could you provide a link, please?.. :roll:
Title: Invision Board 1.2 login from Coppermine
Post by: xarumanx on October 06, 2003, 08:39:33 am
The needed bridge files are included in the 1.1.1 Dev Version (and soon 1.2) of coppermine.
Just upload everything, correct the settings in the invisionboard bridge file and there you go.
Title: Invision Board 1.2 login from Coppermine
Post by: Zerg on October 06, 2003, 08:45:22 am
Ok. Thanks for answering!
And when will CPG 1.2 will be released (at least approximately)?
Title: Invision Board 1.2 login from Coppermine
Post by: Joachim Müller on October 06, 2003, 09:15:07 am
of course you did a search on this board first - you didn't want to ask the same questions that already have been asked a thousand times over again, so you already know the answer.
Asking developers of open source / free software for a release date is always some kind of... well  :?

GauGau
Title: Invision Board 1.2 login from Coppermine
Post by: Zerg on October 06, 2003, 04:26:49 pm
Ok, sorry. :roll:
Title: Invision Board 1.2 login from Coppermine
Post by: Zerg on October 07, 2003, 09:44:26 am
Perhaps it shouldn`t belong in here, but I though I shouldn`t start another topic.

I installed CPG 1.1.1, integrated it with my Invision 1.2 Final and now can`t understand one thing. There`s no control panel (Create / order my albums Modify my albums My profile), neither for me (admin), nor for users. I didn`t create any custom user groups, there`re default ones, and edited gallery permissions well (even though there`re 2 "banned" groups somehow). What is wrong? How can members add/manage their albums after all?.. :?:
Title: Invision Board 1.2 login from Coppermine
Post by: Joachim Müller on October 07, 2003, 10:58:38 am
please provide a link to your gallery and a test account (of a user that has the right to upload to at least one album).

GauGau
Title: Invision Board 1.2 login from Coppermine
Post by: Zerg on October 07, 2003, 12:29:35 pm
Quote from: "gaugau"
please provide a link to your gallery and a test account (of a user that has the right to upload to at least one album).

GauGau


PM'ed my details to you... :arrow:
Title: Invision Board 1.2 login from Coppermine
Post by: jack on October 07, 2003, 12:38:56 pm
I think I've got this same prob on my test system - I'll look into it tonight.
Title: Invision Board 1.2 login from Coppermine
Post by: Zerg on October 07, 2003, 01:05:34 pm
Quote from: "jack"
I think I've got this same prob on my test system - I'll look into it tonight.

Looking forward to it... :cry:
Title: Invision Board 1.2 login from Coppermine
Post by: dale on October 07, 2003, 04:52:45 pm
Edit:
I take most of this post back  :D  except for the blue. Found an easier fix. read the following posts.

I have also had some of these problems but have ben able to make it work. Even though the team has done some great work here, there are a few hick-ups you need to deal with in the Invision integration.

For one thing, your Members group cannot upload pictures. Its just one of those hick-ups. If you create another group in the Invision CP (call it maybe, PhotoPost), anyone you place into that group can upload pics.

Remember that after making the group in the Invision CP, you have to go into the coppermine groups and set the permissions for the new group (PhotoPost). I have set all members to no for upload approval as it does not work anyway, and gave permission to the new group PhotoPost. You can then move members you want to have permission into this group in the Invision CP.

Also, as an admin, I can create Categories and Albums. But I can only batch add pictures. I also have 2 banned groups.
Title: Invision Board 1.2 login from Coppermine
Post by: jack on October 07, 2003, 05:04:28 pm
That it works for user definaed groups, but not for 'Administrators' or normal users almost confirms where I think the problem to be - thanks.

It's odd that the problem is there, because I am fairly certain I based the YaBB SE bridge off the Invision one - and that works fine  :?
Title: Invision Board 1.2 login from Coppermine
Post by: dale on October 07, 2003, 05:17:04 pm
sorry Jack, We have two posts here that are coming to the same conclusion. Please see:
http://forum.coppermine-gallery.net/viewtopic.php?p=1659#1659

It seems that the Annonamouse and User groups are switched somehow. Setting the Annonamouse for picture upload and the members to not. Allows the members access and vice versa.

Thanks.
Title: Invision Board 1.2 login from Coppermine
Post by: jack on October 07, 2003, 05:54:06 pm
So it looks like the standard groups 'Anonymous', 'Registered', 'Administrator' are being misassigned rather than wrogn permissions being applied to those groups?

I'll give that whole section an overhaul tonight & try to fix it all :)
Title: Invision Board 1.2 login from Coppermine
Post by: Zerg on October 07, 2003, 06:09:31 pm
So, as I`m gathering this, "Anonymous" and "Registered" members are just messed and group permission are supposed to look approximately like this:

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.hot.ee%2Fsotsirh%2Fgroups.jpg&hash=a23853ba7d2c95d439a60c5aec8c1cbd4512087d)

 :?:
Title: Invision Board 1.2 login from Coppermine
Post by: Zerg on October 07, 2003, 06:11:20 pm
Quote from: "jack"
So it looks like the standard groups 'Anonymous', 'Registered', 'Administrator' are being misassigned rather than wrogn permissions being applied to those groups?

I'll give that whole section an overhaul tonight & try to fix it all :)


Okidoki, waiting passionately for your fix! 8)
Title: Invision Board 1.2 login from Coppermine
Post by: Zarsky on October 07, 2003, 06:18:31 pm
SotSirh,

Please do not cross-post...it makes it difficult to keep track of the flow of questions and answers.
Title: Invision Board 1.2 login from Coppermine
Post by: Zerg on October 07, 2003, 06:32:14 pm
Quote from: "zarsky99"
SotSirh,

Please do not cross-post...it makes it difficult to keep track of the flow of questions and answers.

Okay, sorry.
Title: Invision Board 1.2 login from Coppermine
Post by: jack on October 07, 2003, 08:43:16 pm
I've had a look, and this actually looks more like a configuration problem than anything else. It is something we could sort out - in future versions (i.e. when the BBS integration ceaces to be 'experimental') with an installer script .
Nasically, the default group configuration for Coppermine doesn't quite match that for IVB (which probably won't match phpbb, yabbse ettc. etc.)

Background
Groups (at a basic level for both forums and coppermine) are stored in the database one record describing each group.
Each record, at a minimum, has a unique identifier (usually a number) for the group, an editable 'friendly' name for the group, and (usually) some extra data such as group permissions etc.

Users are similarly stored in a database, one user per record.
Each user would, again, have a unique identifier, an editable name, and the identifier of the group the user is a member of.

The system can deal with, say, my account via it's identifier, and easily look up what group I am a member of and what I can and cannot 'do'.

The Problem
There is no universal standard for stating what group should have what identifier.
Coppermine ships with a number of pre-defined groups as follows :-

Code: [Select]
ID    Group
--    -----
 1    Administrators
 2    Registered
 3    Anonymous
 4    Banned


IVB Ships with the following default groups defined :-
Code: [Select]
ID    Group
--    -----
 1    Validating
 2    Guests
 3    Members
 4    Admin
 5    Banned


When you first run Coppermine, it has no way of knowing that these are incorrect. When you are logged into IVF, your admin account had a group id of 4 associated with it .. this is carried over into Coppermine .. however, Coppermine's default 4 group is the 'Banned' Group. (Admin rights are, thankfully, handled slightly differently)

The Solution

This is quite simple, and should be dealt with as part of the configuration procedure..
* After configuring the bridge, log into IVF as an admin user, then goto the coppermine system.
*Click on the 'Groups' button on the admin menu. (This will trigger a synchronisation of the group names
* Configure the access rights you want your default user groups to have.
* Click on the Apply Modifications button.

In the Future
(I will probably put this as part of my to-do list for the version after 1.2..)
Selection of the board integration will be part of the coppermine installation scripts, as part of this, it will prompt you for your board details and populate the coppermine groups and configuration database tables accordingly.
Title: Invision Board 1.2 login from Coppermine
Post by: Zerg on October 07, 2003, 11:42:00 pm
Thanks a lot for detailed explanation, jack!
Title: Invision Board 1.2 login from Coppermine
Post by: dale on October 08, 2003, 05:56:00 pm
Yes Jack thanks for the explination but the solution does not work as it should.

After set-up, the administrators group is actually the first banned group, and the Registered group is actually the Anonymous group. All you have to do is swop the group names after setup and you can set their preferences accordingly.

After doing this my gallery is now functioning perfectly.
Title: Invision Board 1.2 login from Coppermine
Post by: jack on October 08, 2003, 07:42:45 pm
Quote from: "dale"
After set-up, the administrators group is actually the first banned group, and the Registered group is actually the Anonymous group. All you have to do is swop the group names after setup and you can set their preferences accordingly.


It should set them automatically when you click on the 'Groups' button (but not until you have clicked on it), as one of the first things that does is call the group name synchronisation function which reads the group names from the Invision database - it does not modify any permissions.

Sotsirh & Dale :
AFAIK, the version of the Invision bridge I have heara is basically identical to that released in 1.1.1 - Devel. Where did your copy come from?

If possible, can you get into your database (via phpMyAdmin, command-line, whatever) and run the following two queries please (replace the 'inv_' and 'cpg11d_' with whatever the prefixes are in your database) :-

Code: [Select]
select g_id, g_title from inv_groups where g_id < 6;

select group_id, group_name from cpg11d_usergroups where group_id < 6;



Also, what version of Invision are you using (I think  you said 1.1, but I can't find the post) and was it a fresh install (of invision) or an upgrade from a previous version?

Thanks.
Title: Invision Board 1.2 login from Coppermine
Post by: dale on October 09, 2003, 10:16:55 am
I installed a fresh ibf 1.2 final, and got the cpg 1.1.1 dev from this website.

I ran the SQL querys with no change. In Coppermine the admin is still #4banned and the members are still #3 Visitors.

Here is what I got back from phpMyAdmin:
Code: [Select]
SQL-query: SELECT group_id, group_name FROM cpg11d_usergroups WHERE group_id < 6 LIMIT 0, 30;

group_id            
group_name            

1 Admin
2 Members
3 Visitors
4 banned
5 Banned


edit:
In looking at the ibf groups section of my SQL I can see that the list looks like this:
Code: [Select]
SQL-query: SELECT  *  FROM  `ibf_groups`  LIMIT 0, 30;

g_id - g_tittle
4 - Admin
2 - Guests
3 - Members
1 - Validating
5 - Banned


I noticed that the order of the tittles is the same but the ID #s are not sequenced the same.
Title: Invision Board 1.2 login from Coppermine
Post by: jack on October 09, 2003, 10:34:27 am
Odd .. is this before ever clicking on the 'Groups' button?

Are your Invision and Coppermine tables in the same database?

Can you put your board into debug mode, and see if you get any errors when you click on 'groups', please?
Title: Invision Board 1.2 login from Coppermine
Post by: dale on October 09, 2003, 12:05:31 pm
after clicking on groups

Yes they are in the same database, and my Invision board is now in debug mode. I dont see any problems arising.

I installed my IBF, set it up a bit and then installed cpg 1.1.1d. I followed the directions and thought it was quite clear when it stated the step about going to the groups section to syncronize them. But I guess it didnt happen correctly or I missed a step. Do you think my setup is acting different from others?
Title: Invision Board 1.2 login from Coppermine
Post by: DARKLORD on October 11, 2003, 12:30:50 am
Does the bridge file work ?

Last time it didn't work because of the redirect thing.. Dont know if someone has fixed that?

 :roll:
Title: Invision Board 1.2 login from Coppermine
Post by: xarumanx on October 11, 2003, 02:24:48 pm
THe Bridge itself works but redirecting is still unsolved. I may have a look at this issue next week, i already got some ideas to get this thing finally working
Title: Invision Board 1.2 login from Coppermine
Post by: DARKLORD on October 11, 2003, 11:13:11 pm
request:

delete the coppermine cookies and use for the gallery the invision cookies

:D
Title: Invision Board 1.2 login from Coppermine
Post by: Carmine on October 13, 2003, 12:38:34 am
Since theres really no way to fix the redirect, after loggin in can I still get admin access to coppermine? I've tried using the admin.php right after it brings me back to my forums board page, but it doesn't recongnize me as an admin and I'm still logged out.
Title: Invision Board 1.2 login from Coppermine
Post by: Joachim Müller on October 13, 2003, 01:09:28 am
@IBF-users: please look into
http://coppermine.sourceforge.net/oldboard/viewtopic.php?t=2172
and
http://coppermine.sourceforge.net/oldboard/viewtopic.php?t=1789

Let us know if the fixes worked for you

GauGau
Title: Invision Board 1.2 login from Coppermine
Post by: Mina on October 25, 2003, 02:21:56 am
For redirection to anything you want, you can try this:

Code: [Select]

<form action="{$ibforums->base_url}act=Login&amp;CODE=01&amp;return=http://url.to.gallery.com/gallery/" method="post" name='LOGIN' onsubmit='return ValidateForm()'>


You should make a new form on coppermine, a general login screen. Use the URL above for Logging in, but replace "{$ibforums->base_url}" with "http://yoursite.com/index.php?". The "&amp;return=http://url.to.gallery.com/gallery/" at the end of that URL and that should redirect you to any URL you give it once you actually click on submit when the data is sent. Sometimes the cookies might not pick up since this avoids the redirection screen and goes directly to your page after you hit submit. You can always create your own static redirect page that will force the browser to forward to the page and pick up the cookie then.

This is all done in Coppermine, not Invision. The URL should be enough to make the login AND the redirect, I haven't used it on Coppermine yet myself, but it worked for other things I did try it on.

If I took a wild guess, you would put that new form code plus the input fields in an area of Coppermine that would pick up when you are NOT logged in, and make it invisible after you ARE logged in. Also for logging out, the URL should work the same when you add "&amp;return=http://url.to.gallery.com/gallery/", in fact I believe this is all global for InvisionBoard 1.2, not sure, like I said I haven't used it on Coppermine yet, I am at work typing this theory as I did get it to work on something else.
Title: Invision Board 1.2 login from Coppermine
Post by: DARKLORD on October 25, 2003, 08:22:24 pm
i have my coppermine gallery in a <iframe> integrated in my invision board. so i think the redirect doesn't work here. i will give it a try..

why is it not possible to have a autologin? delete the coppermine cookiesystem. Coppermine should "look" for IBF cookies..  :roll:  :roll:
Title: Invision Board 1.2 login from Coppermine
Post by: effacer on November 08, 2003, 09:46:59 pm
Quote from: "DARKLORD"
request:

delete the coppermine cookies and use for the gallery the invision cookies

:D


can this be done actually ?
Title: Invision Board 1.2 login from Coppermine
Post by: Joachim Müller on November 09, 2003, 09:45:02 am
to make this absolutely clear: no matter what bbs you're going to integrate coppermine with, do not use the same cookie name in the bbs and coppermine, but different ones!

GauGau