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
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.
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
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.
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?
Bridging does not touch your forum, if you want a link you have to add it yourself.
<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