CPG1.3.2 and phpbb 2.0.11 CPG1.3.2 and phpbb 2.0.11
 

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

CPG1.3.2 and phpbb 2.0.11

Started by Ricksteruk, December 29, 2004, 07:06:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ricksteruk

Ok heres the deal , ive uploaded the cpg installed it everything went fine, ,intergrated it with my forums but when i click log in it diverts me to the phpbb log in screen, i log in and then it redirects me back to the album, perfect except it wont log me into the album to do anything i just have a log in link still, when i log in it also logs me into the forums which i know is correct. i checked all the files to be edited are editited correctly and appropate permissions set which they are, my forums use the cookie setting of "/" but i have no way of checking this for the CPG,i also dont have a link on the forums to the phto album?
can some one please help me. its driving me mad

The forums is at www.matchpool.co.uk/forums
the gallery is at www.matchpool.co.uk/photo

Nibbler

Please provide a test user account, we always need this to troubleshoot login issues, as your thorough search of the board no doubt told you.

Ricksteruk

oopps sorry my mistake

user test
password test


something else i just discovered,
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/photo';
header("Location: http://www.matchpool.co.uk/photo".$cpg_host.$cpg_path);
exit;
?>


In my cpg_redir.php displays a page can not be displayed
However with the code
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/photo';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>


It redirect to the correct page could this be the route of my problems

Nibbler

The second version is correct, in the first you messed things up by changing things you are not supposed to.

I can log in successfully as 'test' to your gallery with no problems atall.

Ricksteruk

#4
This is really strange, its working now. Thanks anyway if i find out what i did ill let you know

The problem with no link in the forums is still there, any ideas?

Nibbler

Bridging does not touch your forum, if you want a link you have to add it yourself.

TheDeJay

<table cellspacing="0" cellpadding="3" border="0">
            <tr>
               <td><a href="http://yoursite.com/gallerydirectory">What you want link to show up as</a></td>
            </tr>
         </table>

Best place to add for more user friendly location is in the OVERALL HEADER on the forum usually where all the main buttons are to login and such.
**note** so you dont ask later, the overall_header.tpl file is located in your phpbb2/templates/whateverthemeyouareusing directory
just make sure you understand the code in the file before modifying and make a back up of course