Jump to content


[Tutorial] Create a block with multiple columns


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

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 05 January 2005 - 12:09 PM

How to create a new MKportal block with multiple columns


If you create the block in the MKP Admin CP...
<!-- block with columns -->
<table width="100" border="0" cellspacing="0" cellpadding="5">
<tr>
<td>
column 1 text
</td>
<td>
column 2 text
</td>
<td>
column 3 text
</td>
</tr>
</table>
<!-- end block with columns -->
If you create the block as a php file to upload to the mkportal/blocks/ directory you will need to add the tags to it.
<?php

$content = "

<!-- block with columns -->
<table width="100" border="0" cellspacing="0" cellpadding="5">
 <tr>
   <td>
	 column 1 text
   </td>
   <td>
	 column 2 text
   </td>
   <td>
	 column 3 text
   </td>
 </tr>
</table>
<!-- end block with columns -->

";

?>



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