+
+function page_profile_advanced($a,&$b) {
+
+ $profile = intval(get_pconfig($a->profile['profile_uid'],'page','show_on_profile'));
+ if(! $profile)
+ return;
+
+ $page = '<div id="page-profile">
+ <div class="title">'.t("Forums:").'</div>
+ <div id="profile-page-list">';
+
+ // place holder in case somebody wants configurability
+ $show_total = 9999;
+
+ $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($total_shown == $show_total)
+ break;
+ }
+ $page .= '</div></div><div class="clear"></div>';
+
+ if(count($contacts) > 0)
+ $b .= $page;
+
+}
+
+
+