• G

    (@glienhard)


    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>”;}}

    • This topic was modified 7 years, 6 months ago by G.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Garry,

    Thank you for the code. It’s possible that there could be some alignment issues with some fields in the user profile template. We’ll review that template code and throw in what you suggested to see how it looks on our dev/test installs. Then, if necessary, we can release an update with any changes that might be required to make it more readable.

    Thread Starter G

    (@glienhard)

    Etoile,

    Thanks for taking the time to review that. I think that this does go back to the discussion of a matter of user preference. For me, this just looks better. My only dilemma now is that I have had to make so many source code changes that it will make updating the plugin difficult. If other users venture into this, you really need to have a good knowledge on backend/code stuff.

    Along the same lines with the profile picture, I have found that if a user does not have a profile picture specified it will display a broken image icon on the webpage. I’m currently working on a solution and will post it when I have something.

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Garry,

    We’ll have a look at this at the same time as we’re looking at the CSS for the form fields you mentioned in your other thread and, if we need to make any changes, we’ll include them in an upcoming update. We’ll let you know if we have any follow-up questions about any of the items you brought up.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘user-profile Modification’ is closed to new replies.