Jump to content


[Hack]Hide column in internal pages


1 reply to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 04 May 2006 - 11:12 AM

To hide columns globally for all internal pages...


Hide right column...
FIND in mkportal/modules/contents/index.php
$mklib->printpage("1", "1", $mklib->sitename, $blocks);
REPLACE WITH:
$mklib->printpage("1", "0", $mklib->sitename, $blocks);
Hide right column...
FIND in mkportal/modules/contents/index.php
$mklib->printpage("1", "1", $mklib->sitename, $blocks);
REPLACE WITH:
$mklib->printpage("0", "1", $mklib->sitename, $blocks);
----------------------------------------------
Note:

Quote

$mklib->printpage("1", "1", $mklib->sitename, $blocks);
The first two arguments represent the display of the side columns of the portal. If the columns are set to one (1) as in this example the columns behave normally and follow the normal mechanism of MKportal. However if you want the page which is about to print to close the columns you can set the two parameters to "0". You can also use combinations.


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#2 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 04 May 2006 - 11:22 AM

To hide internal page columns on a page-by-page basis

Create a php page in the Portal CP.


To hide right column...
<?php
//columns
$mklib->loadcolumnright = 0;
$mklib->loadcolumnleft = 1;

$content = "your content here";
?>
To hide left column...
<?php
//columns
$mklib->loadcolumnright = 1;
$mklib->loadcolumnleft = 0;

$content = "your content here";
?>



Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users