Alex Posted September 21, 2009 Share Posted September 21, 2009 File Name: [AH30] Latest News HookFile Submitter: AlexFile Submitted: 21 May 2009File Category: Hooks and Plugins This hook will add a new block to the existing side bar, showing the latest news from the forum you specified in the Admin CP. Installation is simple, just download this XML file and import it via your Admin Control Panel, IP.Board will do the rest!Click here to download this file Link to comment
mieciu7 Posted February 11, 2010 Share Posted February 11, 2010 I have found a bug... When banned member has ability to see forum, I get an error from this hook. Link to comment
Drizzy Posted July 26, 2010 Share Posted July 26, 2010 Please can you allow the use of multiple forums for the news! Link to comment
michealfahl Posted August 10, 2010 Share Posted August 10, 2010 Is there version for 3.1? Link to comment
Guest Talizorah Posted February 17, 2011 Share Posted February 17, 2011 I really liked this hook, but I had to disable it because for some reason it causes a fatal PHP error in Chrome and IE. Firefox has no problems though. Fatal error: Cannot break/continue 1 level in hooks/boardIndexLatestNews_1e2fb0078880e2ad1c562ebe3fb0c73c.php on line 42 It seems to be caused when a user doesn't have permission to view the board where the news is being drawn from. So, if you have guest viewing of that board or your forum disabled, any guest accessing your forum will be greeted by that nice PHP error including private info like the path. =P Link to comment
Cabola Posted April 22, 2011 Share Posted April 22, 2011 I really liked this hook, but I had to disable it because for some reason it causes a fatal PHP error in Chrome and IE. Firefox has no problems though. Fatal error: Cannot break/continue 1 level in hooks/boardIndexLatestNews_1e2fb0078880e2ad1c562ebe3fb0c73c.php on line 42 It seems to be caused when a user doesn't have permission to view the board where the news is being drawn from. So, if you have guest viewing of that board or your forum disabled, any guest accessing your forum will be greeted by that nice PHP error including private info like the path. =P m4rtin over at invisionmodding posted a solution back in February 2010: Open ./hooks/boardIndexLatestNews_xxxx.php Find:/* Grab last X data */ if ( ! $forumData['can_view_others'] ) { continue; } if ( ! $this->registry->permissions->check( 'read', $forumData ) ) { continue; } Replace with: /* Grab last X data */ if ( ! $forumData['can_view_others'] ) { return; } if ( ! $this->registry->permissions->check( 'read', $forumData ) ) { return; } Save and upload. Link to comment
ASTRAPI Posted March 26, 2012 Share Posted March 26, 2012 Does this work with 3.3.0 ? Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.