echo '<p class="spProfileTitle">' . $spProfileUser->display_name . ' ' . __sp('- Statistics') . '<br /><hr>'; sp_ProfileShowMemberSince('tagClass=spProfileLabel', __sp('Member Since')); sp_ProfileShowLastVisit('tagClass=spProfileLabel', __sp('Last Visited')); sp_ProfileShowUserPosts('tagClass=spProfileLabel', __sp('Posts')); if ($spDevice != 'mobile') { sp_ProfileShowSearchPosts('tagClass=spProfileLabel&rightClass=spPostedToSubmitInline&middleClass=', __sp('View'), __sp('Topics Started'), __sp('All Posts')); } if ($spDevice == 'mobile') { sp_ProfileShowSearchPosts('tagClass=spProfileLabel&rightClass=spPostedToSubmitInline&middleClass=', __sp('View'), __sp(''), __sp('')); } sp_SectionEnd('', 'profileStats'); sp_SectionEnd('tagClass=spClear', 'profileDetails'); # output user photos if (!empty($spProfileUser->photos)) { sp_SectionStart('tagClass=spProfileShowPhotosSection', 'profilePhotos'); echo '<p class="spProfileTitle">' . $spProfileUser->display_name . ' ' . __sp('Profile Photos') . '<br /><hr>'; sp_ProfileShowUserPhotos('photoClass=spCenter&imageClass=spImg&numCols=3'); sp_SectionEnd('', 'profilePhotos'); } # output signature if (!empty($spProfileUser->signature)) { sp_SectionStart('tagClass=spProfileShowSignatureSection', 'profileSignature'); echo '<p class="spProfileTitle">' . $spProfileUser->display_name . ' ' . __sp('Signature') . '<br /><hr>'; sp_Signature('tagClass=spSignature', $spProfileUser->signature); sp_SectionEnd('', 'profileSignature'); } sp_SectionEnd('tagClass=spClear', 'profileShow'); sp_SectionEnd('', 'body'); sp_SectionStart('tagClass=spFootContainer', 'foot'); sp_load_template('spFoot.php'); sp_SectionEnd('', 'foot');
$out .= apply_filters('sph_ProfileErrorMsg', sp_text('Sorry, an invalid profile request was detected')); $out .= '</div>'; return $out; } sp_SetupUserProfileData($userid); echo '<div id="spMainContainer">'; sp_load_template('spProfilePopupShow.php'); echo '</div>'; die; } if ($action == 'update-sig') { if (empty($userid)) { die; } sp_SetupUserProfileData($userid); echo sp_Signature('', $spProfileUser->signature); ?> <script type="text/javascript"> jQuery(document).ready(function() { spjSetProfileDataHeight(); }) </script> <?php die; } if ($action == 'update-display-avatar') { if (empty($userid)) { die; } sp_SetupUserProfileData($userid); echo sp_UserAvatar('tagClass=spCenter&context=user', $spProfileUser);
$out .= '<p class="spCenter">' . sp_text('Signature Image Size Limits (pixels)') . ': ' . $sigWidth . $sigHeight . '</p>'; $out .= '<p class="spCenter">' . sp_text('If you reset your signature, be sure to save it') . '</p>'; $out .= '<div class="spProfileFormSubmit">'; # reset signature - plugins need to filter this input and provide their own with onclick to their js $tout = '<input type="button" class="spSubmit" name="reset" value="' . sp_text('Reset Signature') . '" onclick="spjClearIt(\'postitem\')" />'; $out .= apply_filters('sph_ProfileSignatureReset', $tout); $out .= '<input type="submit" class="spSubmit" name="formsubmit" value="' . sp_text('Update Signature') . '" />'; $out .= '</div>'; $out .= '</div>'; $out = apply_filters('sph_SignaturesFormBottom', $out, $userid); $out = apply_filters('sph_ProfileFormBottom', $out, $userid, $thisSlug); $out .= '</div>'; $out .= '</form>'; $out .= '<div class="spColumnSection spCenter">'; $out .= '<p class="spTextLeft"><br />' . sp_text('Preview of Your Signature (update to see changes)') . ':</p><br />'; $out .= '<div id="spProfileSignaturePreview">'; $out .= sp_Signature('echo=0', $spProfileUser->signature); $out .= '</div>'; $out .= '</div>'; $out .= '</div>' . "\n"; $out = apply_filters('sph_ProfileSignatureForm', $out, $userid); echo $out; ?> <script type="text/javascript"> jQuery(document).ready(function() { setTimeout(function() { spjSetProfileDataHeight(); }, 750); }); </script>