Page 1 of 1
[Solved] Settings Image field in FrontEndUsers
Posted: Mon Mar 16, 2009 2:14 pm
by Rolf
Hello all,
Want to use the image-field within FrontEndUsers to let the users upload their own personal photo.
I noticed that the width of the inputfield (in characters) is the same as the width of the picture (in pixels).
If the image has to be a reasonable size, let say 150px, the inputfield is to big for the screen...

And all the other normal text inputfields are only set to 30 characters.
Is their another way to set the width of the image?
I'm using:
- CMSMS 1.5.3
- FrontEndUsers 1.6.3
Thanks in advance,
Rolf

Re: Settings Image field in FrontEndUsers
Posted: Tue Mar 17, 2009 8:18 pm
by Rolf
For the time being solved by using CSS to set the width of the input field.
Rolf

Re: [Solved] Settings Image field in FrontEndUsers
Posted: Wed Apr 08, 2009 1:20 pm
by Rednes
Hello!
Could you elaborate on this sollution?
I'm having the same issue. I display the image in a profile page, but the image is very small(50x21). While the original is larger(235x100).
Now how can I make the image larger. So when users upload it, it will be bigger than (50x21)?
kind regards,
Rednes
Re: [Solved] Settings Image field in FrontEndUsers
Posted: Wed Apr 08, 2009 2:09 pm
by Rolf
Hi Rednes
Will try to explain it some more...
I set the width of the image-field in FrontEndUsers on the required size of the image on the website.
The width of the input field is now way to big for the screen.
To solve this I placed in an attached (relevant) stylesheet the code:
The width of the inputfield is now hardcoded to 150px;
The image size can now be 235px in your case, with a field width of 150px.
Hope this helps...
Grtz. Rolf

Re: [Solved] Settings Image field in FrontEndUsers
Posted: Fri May 22, 2009 11:43 am
by Sonya
Rolf wrote:
The width of the inputfield is now hardcoded to 150px;
This solution does not work in Firefox. The only solution I have found is to change the FEUsers file function.user_changesettings.php:
Look for
Code: Select all
$onerow->control = $this->CreateFileUploadInput($id,'feu_'.$onerow->name, '', $defn['length']);
and replace by
Code: Select all
$onerow->control = $this->CreateFileUploadInput($id,'feu_'.$onerow->name);
Bug has been submitted
http://dev.cmsmadesimple.org/bug/view/3054 and fixed in svn.
Re: [Solved] Settings Image field in FrontEndUsers
Posted: Fri Jul 03, 2009 12:45 pm
by Deak
I wish this worked, but it doesn't (for me).
Still broken in CMSMS 1.6 and FEU 1.6.5. I tried Sonya's suggested change, but no luck.
Re: [Solved] Settings Image field in FrontEndUsers
Posted: Fri Jul 03, 2009 2:58 pm
by Deak
Update, I pulled FEU 1.6.6 from the repository and that fixes the problem for me. There was also a label missing:
it is the last field in the "Field Settings" fieldset - the label is missing (atleast on my install) "--Add Me - module:FrontEndUsers string: prompt_thumbnail_size--:"
Cheers to ajprog and RonnyK for their help on this.
Re: [Solved] Settings Image field in FrontEndUsers
Posted: Tue Dec 01, 2009 3:44 pm
by Bo Mellberg
A user of mine still has this problem in FireFox. I use CMSMS version 1.6.6
Sonyas trick did it for me.
Best regards,
/Bo
Re: [Solved] Settings Image field in FrontEndUsers
Posted: Mon Jan 03, 2011 2:54 pm
by vfreriks
Hello,
I was wondering whether there would be a fix for this at the moment? I'd like to have user photo's with a max width of 150 instead of 75.
Unfortunately the above methods did not work for me.