Jump to content


[Hack - IPB 2.1.x] Select Forums to EXCLUDE in Board News block


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

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 14 May 2006 - 09:22 PM

[Hack - IPB 2.1.x] Select Forums to EXCLUDE in Board News block
Compatible with: M1.1 x IPB 2.1.x
Author: visiblesoul
Download: N/A
Demo: N/A
Description:

By default the MKPortal Board News block Administration allows you to select the forums to include in the MKPortal Board News block.

This hack will allow to to select the forums that you want to exclude from the MKPortal Board News block in the Portal CP Board News Administration.

FIND in /mkportal/include/IPB/ipb_board_functions.php (function get_board_news):
WHERE t.forum_id IN (".implode(',', $forum_active ).")
REPLACE WITH:
WHERE t.forum_id NOT IN (".implode(',', $forum_active ).")
FIND in /mkportal/lang/*/lang_admin.php:
$langmk['ad_bnewschose'] = "Select the Forum to import the news from:";
REPLACE WITH:
$langmk['ad_bnewschose'] = "Select the Forums to <i>exclude</i> from the Board News block:";



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