Question

On the user management admin page I can assign userpics to users, but I can't work out how to enable users to set them themselves.
The following code is in the Profile Edit Form template of my System Overview, but the userpic field doesn't appear on the form itself (all the other fields seem to be fine).

<mt:SetVarBlock name="field-content">
    <mt:If name="userpic">
    <div id="userpic-preview">
        <$mt:Var name="userpic"$>
    </div>
    <input type="file" name="file" id="file" />
    <mt:else>
    <input type="file" name="file" id="file" />
    </mt:If>
</mt:SetVarBlock>

<$mt:Include module="Form Field" id="file" class="" label="Userpic"$>

I'm a complete novice when it comes to Movable Type, having muddled my way through customising the default theme to get a layout I'm satisfied with, so it's quite possible that I'm missing something obvious.

Was it helpful?

Solution

Profile Edit Form is part of the community pack. it will only be used if you are creating a blog with community blog theme.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top