Is there anyway to remove left block? Would love to have coopermine full page.
Steve
Go to your phpNuke admin and go to the blocks setup.
Put them all on the right side :lol:
But I do not want right or left blocks. I know how to turn off right. I want no blocks on left either. :)
Open your theme.php inside themes/yourtheme/
Find inside function themeheader
blocks(left);
Change to
if ($name!=="coppermine") { //change coppermine to your actual coppermine folder name
blocks(left);
}
Do it for all theme on your site.
I think you didn't understand my solution.
The blocks on the left are hardcoded and can't be made show/hide so move them all to the right.
Ah also good choice sengsara
Sengsara,
I tried your code change as a solution and i got no result. It still opens with left block. Any other possible solutions?
It should work.
This is a PHPNuke issue, not coppermine.
What Nuke Theme are you using?
Are you sure you change 'coppermine' to your actual Coppermine folder name?
A link would help.
Under /* Function themeheader()
I changed:
$theuser = " <a href=\"modules.php?name=Your_Account\">Create an account";
} else {
$theuser = " Welcome $username!";
}
$public_msg = public_message();
$tmpl_file = "themes/OSN-Sky/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/OSN-Sky/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
To:
$theuser = " <a href=\"modules.php?name=Your_Account\">Create an account";
} else {
$theuser = " Welcome $username!";
}
$public_msg = public_message();
$tmpl_file = "themes/OSN-Sky/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
if ($name!=="coppermine") { //change coppermine to your actual coppermine folder name
blocks(left);
}
$tmpl_file = "themes/OSN-Sky/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
Name and path to "coppermine" dir is: /modules/coppermine
Thank you, Steve
Links please?
print $r_file;
if ($name!=="coppermine") { //change coppermine to your actual coppermine folder name
blocks(left);
}
should be print $r_file;
if ($name != "coppermine") { //change coppermine to your actual coppermine folder name
blocks(left);
}
!== doesn't work it must be !=
Thanks DJMaze, my mistake.
But you know what? It works on Apache/PHP/Win32!
Bugs?
I cannot get either to work on Apache/PHP/Solaris. :(