CPG 1.2/PhpBB2 - Page 3 CPG 1.2/PhpBB2 - Page 3
 

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]

Main Menu

CPG 1.2/PhpBB2

Started by antoined, October 31, 2003, 01:37:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joachim Müller

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

osfdeath

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)

Casper

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.
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

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

Gregski24

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.

Joachim Müller

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

Gregski24

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

Cirip

#47
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.

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');


// 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



// 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


<?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

Casper

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.
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

#49
hi!

of course this file exist. and its content:



<?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)

Joachim Müller

There seems to be something messed up (but maybe the forum just did that to your code). Please double-check you have this code:
<?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.

Cirip

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)


<?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 :)

shutiri

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.

Joachim Müller

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

GauGau

shutiri

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.

Joachim Müller

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

shutiri

#56
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.

Casper

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
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

done.  (privileges removed)

username: test
password: test

thank you,
shutiri

shutiri

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.