I have the author field present in a FEU Uploads form and populate it with the users name, but it seems to ignore whatever value in the field and always revert back to the FEU username on submit.
Am i missing something here?
Cms Version: 2.2.8
FrontEndUsers: 2.12.2
Uploads: 1.25.8
FEU Uploads setting value for author
Re: FEU Uploads setting value for author
What form/template is it using that the FEU name appears, are you calling the field in that form/template
Re: FEU Uploads setting value for author
I'm using the "Upload Form Template" and the author field.
The default template has:
I then tried to change it to:
A comment in the template says:
so i assumed i could set my own value.
But whatever your write or prefill in the field, it always gets replaced by the logged in users username when the form is submitted.
Maybe it's a bad idea to change the author to the users name and just let it be their username?
The default template has:
Code: Select all
<input type="text" id="u_author" name="{$actionid}input_author" value="{$author}"/>
Code: Select all
<input type="text" id="u_author" name="{$actionid}input_author" value="{if feu_smarty::get_user_property('firstname')}{feu_smarty::get_user_property('firstname')} {feu_smarty::get_user_property('lastname')}{else}{$author}{/if}"/>
Code: Select all
{* optional {$actionid}input_author field (default will be provided if empty) *}
But whatever your write or prefill in the field, it always gets replaced by the logged in users username when the form is submitted.
Maybe it's a bad idea to change the author to the users name and just let it be their username?