Jump to content


[Tutorial] How to collapse columns in MKPortal modules


  • You cannot reply to this topic
No replies to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 17 April 2006 - 11:25 AM

To collapse the left or right block columns in any module you simply edit the call to the printpage function. For example in the reviews module (function reviews_show) you would find:

$mklib->printpage("1", "1", "{$mklib->lang['re_pagetitle']}", $blocks);
The first "1" is the left column and the second "1" is the right column. To collapse the right column you would change the "1" (open) to "0" (closed) like this...

$mklib->printpage("1", "0", "{$mklib->lang['re_pagetitle']}", $blocks);
Just search the module index.php files for "printpage" and you will be able to find all the places where this code occurs. It is basically the same for all modules. You can collapse the columns only for the particular screens that stretch the portal or you can collapse them all.


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