nomorekillz Posted September 2, 2014 Share Posted September 2, 2014 Hey everybody, I hope u can help me with this little thing I will like to add "Recent Status Update" to Portal in a block (Right Side) I need a code I think ^^ Thanks and regards. ^^ Link to comment Share on other sites More sharing options...
0 Lock Down Posted September 2, 2014 Share Posted September 2, 2014 You should have told me that to start .. Try this one. <?php if ( ! $this->registry->isClassLoaded( 'members_hookGateway' ) ) { $classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'members' ) . '/sources/classes/hooks/gateway.php', 'members_hookGateway', 'members' ); $this->hookGateway = new $classToLoad( $registry ); } print $this->hookGateway->statusUpdates(); ?> 1 Link to comment Share on other sites More sharing options...
0 Lock Down Posted September 2, 2014 Share Posted September 2, 2014 It's already there if you are using ip.content as your portal. Blocks Block Management Status Updates just add this to the pages > index.html under right side (< div class='ipsLayout_right' >). {parse block="portal_status_updates"} Link to comment Share on other sites More sharing options...
0 nomorekillz Posted September 2, 2014 Author Share Posted September 2, 2014 But I must add here: - http://puu.sh/biu4U/42d51e1c8d.png Which code should I use. Regards. Link to comment Share on other sites More sharing options...
0 Lock Down Posted September 2, 2014 Share Posted September 2, 2014 Is this what you are trying to do? If yes it is in there already as I said. If you want the code go to blocks and click this Status Updates Link to comment Share on other sites More sharing options...
0 nomorekillz Posted September 2, 2014 Author Share Posted September 2, 2014 Im not using IP.Content as Portal. Im using Portal 1.4.1 And I need to add a code like this: <?php if ( ! $this->registry->isClassLoaded( 'portalBlocks' ) ) { $classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'portal' ) . "/sources/blocks.php", 'portalBlockGateway' ); $this->registry->setClass( 'portalBlocks', new $classToLoad( ipsRegistry::instance() ) ); } print $this->registry->getClass('portalBlocks')->latest_topics_sidebar(); ?> That is "Lastest Topics" Link to comment Share on other sites More sharing options...
0 nomorekillz Posted September 2, 2014 Author Share Posted September 2, 2014 Thanks so much, it works perfectly ^^ Newly, thanks my Hero <3 xD Regards. #Request to close. Link to comment Share on other sites More sharing options...
0 Lock Down Posted September 2, 2014 Share Posted September 2, 2014 You are welcome. But next time save us some typing and give me more information. Link to comment Share on other sites More sharing options...
0 Kingy Posted September 3, 2014 Share Posted September 3, 2014 The question(s) in this support topic have been answered and the owner has been able to solve the problem. Because of this, the support topic has been closed and moved. If you have other questions, please open a new topic. Link to comment Share on other sites More sharing options...
Question
nomorekillz
Hey everybody, I hope u can help me with this little thing
I will like to add "Recent Status Update" to Portal in a block (Right Side)
I need a code I think ^^
Thanks and regards. ^^
Link to comment
Share on other sites
8 answers to this question
Recommended Posts