Jump to content


[Hack - M1.0 x SMF]Multiple News forums for MKPortal BoardNews


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

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 04 May 2006 - 10:20 AM

Edit mkportal/include/smf_board_functions.php (function get_board_news)

FIND:
		//$forum_active = $mklib->config['forum_active'];
REPLACE WITH:
		//$forum_active = $mklib->config['forum_active'];
		//Multiple news forums hack
		$forum_active = "2.0,3.0,4.0";
FIND:
AND b.ID_BOARD = $forum_active
REPLACE WITH:
AND b.ID_BOARD IN ($forum_active)
Replace "2.0,3.0,4.0" with the forum IDs that you want to use for the news block. Separate the IDs with commas.

Note that you will not be able to choose news forums from the Portal CP but you can still set the number of news items to display in the Portal CP.


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