Jump to content


[Hack] Add block template to MKPortal Topsite module


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

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 04 May 2006 - 10:10 AM

The MKPTopsite module does not have the block template framing the module like most other MKPortal modules. There is a reason for this. The topsite already stretches many templates. With the block template it will stretch more.

But here is how to add the block template if you want it anyway...

FIND in modules/topsite/index.php (function topsite_show)
$mklib->printpage("1", "1", "{$mklib->lang['to_title']}", $output);
REPLACE WITH:
$blocks = $Skin->view_block("{$mklib->lang['to_title']}", $output);
$mklib->printpage("1", "1", "{$mklib->lang['to_title']}", $blocks);
FIND (function submit_site):
$mklib->printpage("1", "1", "{$mklib->lang['to_sign']}", $output);
REPLACE WITH:
$blocks = $Skin->view_block("{$mklib->lang['to_sign']}", $output);
$mklib->printpage("1", "1", "{$mklib->lang['to_sign']}", $blocks);
Adding the block template to the other modules is similar.


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