user-profile Modification
-
I had to modify the how the user-profile shortcode displays the requested fields. The way it is currently setup is to put everything into a div. That causes the field name and the field value to be displayed on two different lines. Simply switching from div to span fixes this and make it much more readable. Also, if you have a profile picture it looks funky at the top of the list. The code below will need to be changed in the Shortcodes/Insert_User_Profile.php file. You will want to remove lines 66-68 and replace them with the lines below.
if ($Field->Field_Type != “picture”) {$ReturnString .= “<span id=’ewd-feup-user-profile-label-” . $Field->Field_ID . “‘ class=’ewd-feup-user-profile-label’>” . $Field->Field_Name . “: </span>”;}
if ($Field->Field_Type != “picture”) {$ReturnString .= “<span class=’ewd-feup-text-input ewd-feup-user-profile-input’>” . $Value . “</span>”;}
else {if ($Value ==””){$ReturnString .= “No picture uploaded<br><br>”;}
else{$ReturnString .= “Field_Name . “‘/><br><br>”;}}
- The topic ‘user-profile Modification’ is closed to new replies.