Alex Posted September 21, 2009 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
mieciu7 Posted February 11, 2010 Posted February 11, 2010 I have found a bug... When banned member has ability to see forum, I get an error from this hook.
Drizzy Posted July 26, 2010 Posted July 26, 2010 Please can you allow the use of multiple forums for the news!
Guest Talizorah Posted February 17, 2011 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
Cabola Posted April 22, 2011 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.