$this->userProfile = Profile::current();
- $stream = new PublicNoticeStream($this->userProfile);
+ $stream = new ThreadingPublicNoticeStream($this->userProfile);
$this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE,
NOTICES_PER_PAGE + 1);
function showSections()
{
- // $top = new TopPostersSection($this);
- // $top->show();
+ $ibs = new InviteButtonSection($this);
+ $ibs->show();
$pop = new PopularNoticeSection($this);
$pop->show();
$gbp = new GroupsByMembersSection($this);
$gbp->show();
- $ptp = new PeopletagsBySubsSection($this);
- $ptp->show();
$feat = new FeaturedUsersSection($this);
$feat->show();
}
$this->elementEnd('div');
}
}
+
+class ThreadingPublicNoticeStream extends ThreadingNoticeStream
+{
+ function __construct($profile)
+ {
+ parent::__construct(new PublicNoticeStream($profile));
+ }
+}