Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 2 [3] 4   Go Down

Author Topic: CPG 1.2/PhpBB2  (Read 51774 times)

0 Members and 1 Guest are viewing this topic.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
CPG 1.2/PhpBB2
« Reply #40 on: March 09, 2004, 08:01:12 am »

you'll have to enable "Users can can have private albums" in coppermine config (this is a strange way of setting things up, since those two items don't seem to be related - I know. This will have to be reviewed in future versions of coppermine).

GauGau
Logged

osfdeath

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
CPG 1.2/PhpBB2
« Reply #41 on: March 09, 2004, 03:58:01 pm »

erm...ok lol

Worked but I do see a potenial problem
I'm in the Admin group and set it to Can be viewed by Members Group
Then I can't see it anymore lol

Needs to be some sort of permission check boxes for multiple permissions

Idea on the login problem? (not keeping me logged in)
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
CPG 1.2/PhpBB2
« Reply #42 on: March 09, 2004, 06:45:21 pm »

This is another of the things being changed in the next release.  For you to see these restricted albums, go into config and change 'show private album icon to unlogged user' to YES.  You will now be able to see and edit these albums.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Gregski24

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
CPG & PHPBB2 integration problem
« Reply #43 on: April 17, 2004, 12:08:29 am »

I installed CPG 1.2.1(?) and integrated it with PHPBB2.  It works great except for one issue.  While in admin mode, if I click on the "USERS" button I get "You are not authorized to view this page".  All the other features work in Admin mode, including "Groups".  I can see that a redirect to "phpbb2/admin/index.php" occurs just prior to the error, but I can't find a reason for it.  I searched this board, but I was unable to locate the same problem with a solution.  (also, the search function seems to not be available at the moment)

http://www.gregski24.com/phpbb2/portal.php
User: gallerytest
Password: test
Logged

Gregski24

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
CPG 1.2/PhpBB2
« Reply #44 on: April 17, 2004, 03:20:18 pm »

So after tinkering with it all day, I've come to the conclusion that you can't edit users in Coppermine when it's integrated with PHPBB2.  You have to do it from the admin panel in your board.  Is that correct?
By the way, I disabled the gallery test user, so you will need to contact me before attempting to use it.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
CPG 1.2/PhpBB2
« Reply #45 on: April 18, 2004, 07:30:26 am »

Quote from: "Gregski24"
you can't edit users in Coppermine when it's integrated with PHPBB2.  You have to do it from the admin panel in your board.
correct.
Quote from: "Gregski24"
While in admin mode, if I click on the "USERS" button I get "You are not authorized to view this page".
Expected behaviour, "user mode" sort of "simulates" for the admin how the gallery will look like if a user views the gallery. If you're on a page only the admin has access to and you switch to user mode, you will get this error. If you don't like it, never switch to user mode :wink: - it's only a tool after all.

GauGau
Logged

Gregski24

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
CPG 1.2/PhpBB2
« Reply #46 on: April 18, 2004, 02:03:10 pm »

Thanks gaugau.  I guess I'll have to live with that behavior.  For now. . .
Thanks again.
Logged

Cirip

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: CPG 1.2/PhpBB2
« Reply #47 on: April 25, 2004, 12:33:13 pm »

Hi all!

First of all:

I read all topics and threads in the forum but I can't solve my problem.
I use phpBB 2.08 and Coppermine 1.2.1 standalone.
If I use they "single" they works great, but in "cooperative mode" they present an error:
If I log in in Copermine, i will redirected to phpBB. I login and I redirected to a blank white page. (no error, or any message)
But if I close this windows and I ho again the Coppermine, I'm logged in already.
Idon't know, what is the problem, so I will copy and paste my config:  (Sorry if its too long I try to copy only the vital parts)
Oh, one thing: GauGau If you have a little time, please visit it in "real time"  (It's only a test version)
phpbb2=>         topeka.uw.hu/phpbb2/index.php
Coppermine=>   topeka.uw.hu/photos/index.php

EDIT; admin login details removed.

Code: [Select]
define('COPPERMINE_VERSION', '1.2.1');
// User database integration
// Uncomment the applicable line if you want to use it
   define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin');
// define('UDB_INTEGRATION', 'yabbse');

Code: [Select]
// database configuration
define('PHPBB_DB_NAME', 'topeka'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'sql.ultraweb.hu'); // The name of the database server
define('PHPBB_DB_USERNAME', 'topeka'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'topeka1981'); // The password to use to connect to the database

// The web path to your phpBB directory
// In this example http://yoursite_name.com/phpBB2/
define('PHPBB_WEB_PATH', '/phpbb2/');
define('PHPBB_LOGOUT_GET', TRUE);
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table


Code: [Select]
// Login
// HTML code for login/logout redirection
DEFINE("REDIR1",'<HTML><BODY onLoad="document.redir.submit();"><FORM NAME="redir" METHOD="post" ACTION="');
DEFINE("REDIR2",'"><INPUT TYPE="hidden" NAME="redirect" VALUE="cpg_redir.php"></FORM></BODY></HTML>');
DEFINE('LOGIN_REDIR', 'login.php?redirect=cpg_redir.php');
DEFINE('LOGOUT_FLAG', '&logout=true');
// Login
function udb_login_page()
{
   udb_redirect(LOGIN_REDIR);
}
// Logout
function udb_logout_page()
{
       if (PHPBB_LOGOUT_GET) {

           udb_redirect(LOGIN_REDIR.LOGOUT_FLAG);
       } else {
           echo(REDIR1.PHPBB_WEB_PATH.LOGIN_REDIR.LOGOUT_FLAG.REDIR2);
               exit();
       }
}


and the last cpg_redir.php

Code: [Select]
<?php
$cpg_host
=$_SERVER&#91;'HTTP_HOST'&#93;;
$cpg_path='/photos';
header&#40;"Location&#58; http&#58;//".$cpg_host.$cpg_path&#41;;
exit;
?>



thanx for your patinece, Zoltan
« Last Edit: April 25, 2004, 12:43:31 pm by Casper »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: CPG 1.2/PhpBB2
« Reply #48 on: April 25, 2004, 12:53:04 pm »

Your phpbb is trying to redirect you to 'http://topeka.uw.hu/phpbb2/cpg_redir.php?sid=085ed14921c9b0f2173713a8eabd9991',
Does such a file as 'phpbb2/cpg_redir.php' exist?

Note;  Never post an admin account details on an open board.  Unless we ask for one, we usually only require a regular user account.  If an admin account is required, you will ask to send it by PM.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Cirip

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: CPG 1.2/PhpBB2
« Reply #49 on: April 25, 2004, 01:26:10 pm »

hi!

of course this file exist. and its content:

Code: [Select]

<?php
$cpg_host
=$_SERVER&#91;'HTTP_HOST'&#93;;
$cpg_path='/photos';
header&#40;"Location&#58; http&#58;//".$cpg_host.$cpg_path&#41;;
exit;
?>




this is only a virtual server, but thanx for your attention.


But the problem is still exist, please help me, If you can. (or anyone who  has a good idea)
« Last Edit: April 25, 2004, 11:31:58 pm by Cirip »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: CPG 1.2/PhpBB2
« Reply #50 on: April 25, 2004, 11:43:52 pm »

There seems to be something messed up (but maybe the forum just did that to your code). Please double-check you have this code:
Code: [Select]
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/photos';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>


GauGau

P.S. What do you mean by "virtual server"? If it's accessible on the internet, it can be broken with an admin account being visible on a public board.
Logged

Cirip

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: CPG 1.2/PhpBB2
« Reply #51 on: April 26, 2004, 08:56:57 am »

thanx!

it'a works fine. I will tes a lot today and I report If I find any problem.


The problem was:   (the missing part of the code + the photos/index.php  need)
Code: [Select]

<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/photos/[color=Red]index.php'[/color];
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>



thanx again and have a nice day.

                                                 Zoltan :)
Logged

shutiri

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: CPG 1.2/PhpBB2
« Reply #52 on: May 03, 2004, 06:22:28 am »

Hi.

I have installed phpBB2.08 and Coppermine 1.2.1 standalone. 
Individually, they were working fine but now that I have integrated them, I can't login anymore in Coppermine !!  I read the thread about login/logout and did the fix (editing the phpbb.inc.php and creating the cpg_redir.php), but it wasn't that.

I log in my phpBB board and when I go to my gallery I'm not logged in anymore.  If I click on login in the gallery, it takes me to the board, so I can't get log in my gallery's (admin nor user).

Please, can you help me ?

my URL: www.huecos.com/foro/ and www.huecos.com/fotos/

Thank you.
Shutiri.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: CPG 1.2/PhpBB2
« Reply #53 on: May 03, 2004, 07:26:46 am »

post a test user account as well, you can't expect supporters to go through registration...

GauGau
Logged

shutiri

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: CPG 1.2/PhpBB2
« Reply #54 on: May 03, 2004, 08:35:29 am »

thank you for your reply.  How do I set a user account ?  I can't log in coppermine's folder.  I'm sending you my username and password via PM (I read someone recommending that on another topic).

thank you again.
shutiri.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: CPG 1.2/PhpBB2
« Reply #55 on: May 03, 2004, 08:51:05 am »

don't pm your admin account, untill you're explicitely asked for it. Just set up a test user on your phpBB forum and post the username and password, that's all.

GauGau
Logged

shutiri

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: CPG 1.2/PhpBB2
« Reply #56 on: May 03, 2004, 09:03:40 am »

I'm sorry, just delete the pm   :-[  

I did a test account with administrator privileges.  

*******
*******
Edit, admin account details removed.  Delete this account and please post new one with regular user priviledges only

I did a link to the /fotos directory on the phpBB, on the upper right corner
What else should I do ?

thank you again.
« Last Edit: May 03, 2004, 11:39:44 am by Casper »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: CPG 1.2/PhpBB2
« Reply #57 on: May 03, 2004, 11:42:53 am »

Have a look at this thread, which deals with the login/logout issues of phpbb2/cpg;
http://forum.coppermine-gallery.net/index.php?topic=2972.0
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

shutiri

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: CPG 1.2/PhpBB2
« Reply #58 on: May 03, 2004, 12:05:09 pm »

done.  (privileges removed)

username: test
password: test

thank you,
shutiri
Logged

shutiri

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: CPG 1.2/PhpBB2
« Reply #59 on: May 03, 2004, 12:42:31 pm »

ok, that gave me a little improvement: I can log in coppermine if (and only if) I'm logged in phpBB.

details:
1. If I log in phpBB,  I click on my link to Coppermine, everything is fine (that's the improvement)
2. If I log out from Coppermine, it takes me to the "error, you are not logged in page".  I click on login, it takes me to phpBB, still logged.  If I want to go back to Coppermine, it takes me there but not logged in.  I click on login in Coppermine, it takes me to phpBB, still logged...  cycle.
3. If I log out in phpBB, it works normally (I'm not logged in Coppermine).  If I log in Coppermine again,  it takes me to a blank page !!

So the only way to get to the user/admin panel of Coppermine ir through log in phpBB.

Help, please   :'(

I really appreciate your time and knowledge.
Thank you
Shutiri.
Logged
Pages: 1 2 [3] 4   Go Up
 

Page created in 0.028 seconds with 18 queries.