I intalled the gallery, and it worked fine as stand alone. The forum worked fine as stand alone, but then after integrating them, when I log in and out as admin I get this error:
Parse error: parse error, unexpected ':' in /home/.fajadryer/renaissa/renaissanceguitars.com/forum/cpg_redir.php on line 8
This is the board: http://renaissanceguitars.com/forum/
and this is the gallery: http://renaissanceguitars.com/Gallery/
<?php
if (!$_SERVER['HTTP_HOST']) {
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/Gallery';
header(Location: http://".$cpg_host.$cpg_path);
exit;
?>
Any ideas?
Plenty of ideas.
This:
header("Location: http://".$cpg_host.$cpg_path);
Not this:
header(Location: http://".$cpg_host.$cpg_path);
in PHP, the // is interpreted as a comment. Notice how the text is color-coded as orange=comment. So the script doesn't see anything that is orange and then comes across the exit; line which makes it confused because the previous line had a ; but it was commented out so it was like it didn't exist. There is also an unpaired double quotation mark. That's why color-coded code makes it easy to spot problems.
Thanks to both of you, that did it. By the way, how do you put a "solved" on the thread?
Edit your first post, and select solved in the message icon combo box.
I edited the post.
"regular" users don't have the dropdown field to tag a thread as solved, only moderators have this power (a little hack I have come up with). If you want to flag as "solved", edit your first post and put [Solved] in front of the subject, will work as well.
Joachim