FEU Uploads setting value for author

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
webform
Power Poster
Power Poster
Posts: 458
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

FEU Uploads setting value for author

Post by webform »

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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: FEU Uploads setting value for author

Post by Dr.CSS »

What form/template is it using that the FEU name appears, are you calling the field in that form/template
webform
Power Poster
Power Poster
Posts: 458
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: FEU Uploads setting value for author

Post by webform »

I'm using the "Upload Form Template" and the author field.

The default template has:

Code: Select all

<input type="text" id="u_author" name="{$actionid}input_author" value="{$author}"/>
I then tried to change it to:

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}"/>
A comment in the template says:

Code: Select all

{* optional {$actionid}input_author field (default will be provided if empty) *}
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?
Post Reply

Return to “Modules/Add-Ons”