forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 PHPnuke/Postnuke Support => Topic started by: dcooper on November 17, 2003, 07:02:10 am

Title: [HACK] No phpNuke Left Blocks ?
Post by: dcooper on November 17, 2003, 07:02:10 am
Is there anyway to remove left block? Would  love to have coopermine full page.


Steve
Title: [HACK] No phpNuke Left Blocks ?
Post by: DJMaze on November 17, 2003, 07:38:39 am
Go to your phpNuke admin and go to the blocks setup.

Put them all on the right side :lol:
Title: [HACK] No phpNuke Left Blocks ?
Post by: dcooper on November 17, 2003, 07:41:45 am
But I do not want right or left blocks. I know how to turn off right. I want no blocks on left either. :)
Title: [HACK] No phpNuke Left Blocks ?
Post by: sengsara on November 17, 2003, 07:57:33 am
Open your theme.php inside themes/yourtheme/

Find inside function themeheader
Code: [Select]
       blocks(left);
Change to
Code: [Select]
   if ($name!=="coppermine") { //change coppermine to your actual coppermine folder name
        blocks(left);
    }

Do it for all theme on your site.
Title: [HACK] No phpNuke Left Blocks ?
Post by: DJMaze on November 17, 2003, 07:57:57 am
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
Title: [HACK] No phpNuke Left Blocks ?
Post by: dcooper on November 17, 2003, 10:36:21 pm
Sengsara,

I tried your code change as a solution and i got no result. It still opens with left block. Any other possible solutions?
Title: [HACK] No phpNuke Left Blocks ?
Post by: sengsara on November 18, 2003, 02:56:31 am
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.
Title: [HACK] No phpNuke Left Blocks ?
Post by: dcooper on November 18, 2003, 05:00:16 am
Under /* Function themeheader()

I changed:
Code: [Select]
       $theuser = "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account\">Create an account";
    } else {
        $theuser = "&nbsp;&nbsp;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:
Code: [Select]
$theuser = "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account\">Create an account";
    } else {
        $theuser = "&nbsp;&nbsp;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
Title: [HACK] No phpNuke Left Blocks ?
Post by: sengsara on November 18, 2003, 07:31:02 am
Links please?
Title: [HACK] No phpNuke Left Blocks ?
Post by: DJMaze on November 18, 2003, 01:55:58 pm
Code: [Select]
   print $r_file;
    if ($name!=="coppermine") { //change coppermine to your actual coppermine folder name
    blocks(left);
    }
should be
Code: [Select]
   print $r_file;
    if ($name != "coppermine") { //change coppermine to your actual coppermine folder name
    blocks(left);
    }


!== doesn't work it must be !=
Title: [HACK] No phpNuke Left Blocks ?
Post by: sengsara on November 19, 2003, 03:01:19 am
Thanks DJMaze, my mistake.
But you know what? It works on Apache/PHP/Win32!
Bugs?
Title: [HACK] No phpNuke Left Blocks ?
Post by: dcooper on November 19, 2003, 03:27:58 am
I cannot get either to work on Apache/PHP/Solaris. :(