+
+function page_profile_advanced($a,&$b) {
+
+ $page = '<div id="page-profile">
+ <div class="title">'.t("Forums:").'</div>
+ <div id="profile-page-list">';
+
+ $show_total = 6;
+ $randomise = true;
+
+ $contacts = page_getpage($a->user['uid'],false,$randomise);
+
+ $total_shown = 0;
+ $more = false;
+
+ foreach($contacts as $contact) {
+ $page .= micropro($contact,false,'page-profile-advanced');
+ $total_shown ++;
+ if(($show_total) && ($total_shown == $show_total)) {
+ $more = true;
+ $page .= '<div id="hide-comments-page-widget" class="fakelink" onclick="showHideComments(\'page-widget\');" >' . t('show more')
+ . '</div><div id="collapsed-comments-page-widget" style="display: none;" ><ul>';
+ }
+ }
+ if($more)
+ $page .= '</div>';
+ $page .= '</div></div><div class="clear"></div>';
+
+ if(count($contacts) > 0)
+ $b .= $page;
+
+}
+
+
+