Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [HACK] No phpNuke Left Blocks ?  (Read 7739 times)

0 Members and 1 Guest are viewing this topic.

dcooper

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[HACK] No phpNuke Left Blocks ?
« on: November 17, 2003, 07:02:10 am »

Is there anyway to remove left block? Would  love to have coopermine full page.


Steve
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[HACK] No phpNuke Left Blocks ?
« Reply #1 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:
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

dcooper

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[HACK] No phpNuke Left Blocks ?
« Reply #2 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. :)
Logged

sengsara

  • Translator
  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 87
    • http://batamweb.net
[HACK] No phpNuke Left Blocks ?
« Reply #3 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.
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fbatamweb.net%2F4leechers%2Fsengsaraatgmail.gif&hash=5023c7ba1bc4142435e406735fee30bc611c5a03)

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[HACK] No phpNuke Left Blocks ?
« Reply #4 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
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

dcooper

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[HACK] No phpNuke Left Blocks ?
« Reply #5 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?
Logged

sengsara

  • Translator
  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 87
    • http://batamweb.net
[HACK] No phpNuke Left Blocks ?
« Reply #6 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.
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fbatamweb.net%2F4leechers%2Fsengsaraatgmail.gif&hash=5023c7ba1bc4142435e406735fee30bc611c5a03)

dcooper

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[HACK] No phpNuke Left Blocks ?
« Reply #7 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
Logged

sengsara

  • Translator
  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 87
    • http://batamweb.net
[HACK] No phpNuke Left Blocks ?
« Reply #8 on: November 18, 2003, 07:31:02 am »

Links please?
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fbatamweb.net%2F4leechers%2Fsengsaraatgmail.gif&hash=5023c7ba1bc4142435e406735fee30bc611c5a03)

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[HACK] No phpNuke Left Blocks ?
« Reply #9 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 !=
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

sengsara

  • Translator
  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 87
    • http://batamweb.net
[HACK] No phpNuke Left Blocks ?
« Reply #10 on: November 19, 2003, 03:01:19 am »

Thanks DJMaze, my mistake.
But you know what? It works on Apache/PHP/Win32!
Bugs?
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fbatamweb.net%2F4leechers%2Fsengsaraatgmail.gif&hash=5023c7ba1bc4142435e406735fee30bc611c5a03)

dcooper

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[HACK] No phpNuke Left Blocks ?
« Reply #11 on: November 19, 2003, 03:27:58 am »

I cannot get either to work on Apache/PHP/Solaris. :(
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.