wchodzimy do naszego panelu Unreal Portal:
ACP My Apps Unreal Portal Add Custom Block
usuwamy:
<!-- This is the default custom block template. You can either replace this comment tag with your own content to create a simple custom block or you can remove the entire content and have your own formatting-->
zamiast tego dodajemy:
<?php
$this->registry = ipsRegistry::instance();
$this->DB = $this->registry->DB();
$this->DB->build( array(
'select' => 'pp.*',
'from' => array( 'profile_portal' => 'pp' ),
'where' => 'pp.pp_status <> ""',
'order' => 'pp.pp_status_update DESC',
'limit' => array( 0, 10 ),
'add_join' => array(
array(
'select' => 'm.members_display_name, m.members_seo_name',
'from' => array( 'members' => 'm' ),
'where' => 'pp.pp_member_id=m.member_id',
'type' => 'left'
)
)
) );
$q = $this->DB->execute();
$rows = array();
while( $r = $this->DB->fetch( $q ) )
{
$r = ipsMember::buildProfilePhoto( $r );
$rows[] = $r;
}
echo $this->registry->output->getTemplate( 'boards' )->hookBoardIndexStatusUpdates( $rows );
?>
działa tylko gdy jest zainstalowany hook Status Updates
tut by Steve, tłumaczenie by +matius