highlander Posted December 20, 2011 Report Share Posted December 20, 2011 Is there a way to get hooks that appear on the sidebar and port them to the uportal custom block? Thanks Quote Link to comment Share on other sites More sharing options...
Management Michael Posted December 21, 2011 Management Report Share Posted December 21, 2011 It really depends on the hook. For example the Facebook Activity hook is pretty simple and can be easily moved across. Often you'll just need to take the contents of the hooks getOutput function have it print the end code rather then the return for hooks. <?php print $this->registry->getClass('class_forums')->hooks_facebookActivity(); ?> Quote Link to comment Share on other sites More sharing options...
highlander Posted December 21, 2011 Author Report Share Posted December 21, 2011 Ok..I will try and do that tonight... THANKS!!!!!!!! Quote Link to comment Share on other sites More sharing options...
highlander Posted May 4, 2012 Author Report Share Posted May 4, 2012 Trying to export the status updates hook to uportal... But I can't do this this way. Quote Link to comment Share on other sites More sharing options...
highlander Posted June 7, 2012 Author Report Share Posted June 7, 2012 Any way to make a calendar uportal block? or upcoming events that appear on the uportal block? Quote Link to comment Share on other sites More sharing options...
Management Michael Posted June 7, 2012 Management Report Share Posted June 7, 2012 Take a look at the calendars own hook files. e.g. In admin/applications_addon/ips/calendar/xml/hooks/index_upcoming_events.xml In the output function, you'd just need to change the code to this. <?php $classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'calendar' ) . '/sources/hooks.php', 'app_calendar_classes_hooks', 'calendar' ); $gateway = new $classToLoad( ipsRegistry::instance() ); print $gateway->getUpcomingEvents(); ?> Quote Link to comment Share on other sites More sharing options...
highlander Posted June 7, 2012 Author Report Share Posted June 7, 2012 no forthcoming calendar events... OH god!!! this ipb is like android!!! jajajaja Quote Link to comment Share on other sites More sharing options...
highlander Posted June 17, 2012 Author Report Share Posted June 17, 2012 Any updates to this? Quote Link to comment Share on other sites More sharing options...
Management Michael Posted June 19, 2012 Management Report Share Posted June 19, 2012 What hook of the calendar you trying to convert? Quote Link to comment Share on other sites More sharing options...
highlander Posted June 22, 2012 Author Report Share Posted June 22, 2012 Anyone... I just want the list of the upcoming calendar events in the uportal block. just like the one in the sidebar! Quote Link to comment Share on other sites More sharing options...
Management Michael Posted June 27, 2012 Management Report Share Posted June 27, 2012 Try this one instead. <?php $classToLoad = IPSLib::loadActionOverloader( IPSLib::getAppDir( 'calendar' ) .'/modules_public/calendar/view.php', 'public_calendar_calendar_view' ); $cal = new $classToLoad(); $cal->makeRegistryShortcuts( $this->registry ); /* Return calendar */ print "<div id='hook_calendar' class='calendar_wrap'>". $cal->getMiniCalendar( date('n'), date('Y') ) . '</div><br />'; ?> Quote Link to comment Share on other sites More sharing options...
highlander Posted July 3, 2012 Author Report Share Posted July 3, 2012 That one works, but..... Its just the calendar.. I rather have the list like you tried before.... IPB has a hook for it for the sidebar. Wish to port that one. I'm going to play with this for a bit. Quote Link to comment Share on other sites More sharing options...
Management Michael Posted July 5, 2012 Management Report Share Posted July 5, 2012 Might want to check out the IPS Marketplace. User z1000-forum.de has added quite a few portal plugins, include 2 for the calendar. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.