coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Ricksteruk on December 29, 2004, 07:06:44 PM

Title: CPG1.3.2 and phpbb 2.0.11
Post by: Ricksteruk on December 29, 2004, 07:06:44 PM
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
Title: Re: CPG1.3.2 and phpbb 2.0.11
Post by: Nibbler on December 29, 2004, 07:14:45 PM
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.
Title: Re: CPG1.3.2 and phpbb 2.0.11
Post by: Ricksteruk on December 29, 2004, 07:19:46 PM
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
Title: Re: CPG1.3.2 and phpbb 2.0.11
Post by: Nibbler on December 29, 2004, 07:26:23 PM
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.
Title: Re: CPG1.3.2 and phpbb 2.0.11
Post by: Ricksteruk on December 29, 2004, 07:32:42 PM
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?
Title: Re: CPG1.3.2 and phpbb 2.0.11
Post by: Nibbler on December 29, 2004, 08:03:47 PM
Bridging does not touch your forum, if you want a link you have to add it yourself.
Title: Re: CPG1.3.2 and phpbb 2.0.11
Post by: TheDeJay on January 27, 2005, 11:21:47 PM
<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