Jump to content


- - - - -
Photo

[Content 1.x] Portal not showing the topics after adding a Block


If you add an IP.Content feed Block that loads the latest topics inside the "skeletonTemplate" the portal is half-loaded and doesn't render anymore the plugin portal "latest topics".

To fix the issue open the file "admin/sources/base/core.php" and find (around line 7263):
try
				{
					require_once( IPSLib::getAppDir( 'forums' ) . "/sources/classes/forums/class_forums.php" );
					ipsRegistry::setClass( 'class_forums', new class_forums( ipsRegistry::instance() ) );
					ipsRegistry::getClass('class_forums')->strip_invisible = 1;
					
					$viewingMember = ipsRegistry::getClass('class_forums')->setUpModerator( ipsRegistry::member()->fetchMemberData() );
					
					ipsRegistry::member()->setProperty('forumsModeratorData', $viewingMember['forumsModeratorData'] );
				}
Replace With:
try
				{
					require_once( IPSLib::getAppDir( 'forums' ) . "/sources/classes/forums/class_forums.php" );
					ipsRegistry::setClass( 'class_forums', new class_forums( ipsRegistry::instance() ) );
					ipsRegistry::getClass('class_forums')->strip_invisible = 1;
					ipsRegistry::getClass('class_forums')->forumsInit();
					
					$viewingMember = ipsRegistry::getClass('class_forums')->setUpModerator( ipsRegistry::member()->fetchMemberData() );
					
					ipsRegistry::member()->setProperty('forumsModeratorData', $viewingMember['forumsModeratorData'] );
				}

Save and upload the file, you're done.



0 Comments


Developer Docs · Error Codes