Jump to content

  • twitter
  • youtube
  • googleplus
  • facebook
  • rss
  • newsletter


Tutorial for converting hooks into uportal blocks?


  • Please log in to reply
3 replies to this topic

#1 highlander

highlander

    Advanced Member

  • Customers
  • 77 posts
  • IP.Board Version:N/A

Posted 20 December 2011 - 11:22 AM

Is there a way to get hooks that appear on the sidebar and port them to the uportal custom block?

Thanks

#2 Michael

Michael

    Management

  • Management
  • 3,137 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 21 December 2011 - 03:41 AM

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();

?>

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#3 highlander

highlander

    Advanced Member

  • Customers
  • 77 posts
  • IP.Board Version:N/A

Posted 21 December 2011 - 11:57 AM

Ok..I will try and do that tonight... THANKS!!!!!!!!

#4 highlander

highlander

    Advanced Member

  • Customers
  • 77 posts
  • IP.Board Version:N/A

Posted 03 May 2012 - 10:55 PM

Trying to export the status updates hook to uportal... But I can't do this this way.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users