} } echo '</div>'; echo '</div>'; // The member's page "header" echo '<div id="my-header-div">'; echo '<div id="my-display-name">'.$wps_user->get_display_name().'</div>'; // Show latest activity post by the member, if permitted if ($wps_user->is_permitted()) { // defaults to activity permission, set to "personal" for personal info echo '<div>'; echo $wps_user->get_latest_activity().' '.__wps__time_ago($wps_user->get_latest_activity_age()); echo '</div>'; } // Insert activity post form elements if on own profile page if ($wps_user->get_id() == $current_user->ID) { $box = $wps_ui->whatsup("What's up?", "my-input-box"); // parameters are optional $button = $wps_ui->whatsup_button("Post", "my-submit-button"); // parameters are optional echo '<div style="float:left;margin-top:10px;margin-right:10px;">'.$box.'</div>'; echo '<div style="float:left;margin-top:10px;">'.$button.'</div>'; // Add Facebook Connect plugin (plugin needs to be activated) echo '<div style="clear:both;padding-top:5px;">'.$wps_ui->facebook_connect($current_user->ID).'</div>'; } echo '</div>';