[Solved] Settings Image field in FrontEndUsers

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

[Solved] Settings Image field in FrontEndUsers

Post 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  :)
Last edited by Rolf on Sat Mar 21, 2009 12:59 pm, edited 1 time in total.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Settings Image field in FrontEndUsers

Post by Rolf »

For the time being solved by using CSS to set the width of the input field.

Code: Select all

input {
width: 150px;
}

Rolf  :)
Last edited by Rolf on Sat Mar 21, 2009 12:59 pm, edited 1 time in total.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Rednes
Forum Members
Forum Members
Posts: 85
Joined: Wed Apr 08, 2009 1:09 pm

Re: [Solved] Settings Image field in FrontEndUsers

Post 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
Last edited by Rednes on Wed Apr 08, 2009 1:26 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: [Solved] Settings Image field in FrontEndUsers

Post 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:

Code: Select all

input {
width: 150px;
}
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  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Sonya

Re: [Solved] Settings Image field in FrontEndUsers

Post by Sonya »

Rolf wrote:

Code: Select all

input {
width: 150px;
}
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.
Last edited by Sonya on Fri May 22, 2009 11:47 am, edited 1 time in total.
Deak

Re: [Solved] Settings Image field in FrontEndUsers

Post 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.
Deak

Re: [Solved] Settings Image field in FrontEndUsers

Post 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.
Bo Mellberg
Forum Members
Forum Members
Posts: 10
Joined: Fri Oct 16, 2009 12:24 pm

Re: [Solved] Settings Image field in FrontEndUsers

Post 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
vfreriks
Forum Members
Forum Members
Posts: 22
Joined: Wed Jul 14, 2010 9:41 am

Re: [Solved] Settings Image field in FrontEndUsers

Post 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.
Post Reply

Return to “Modules/Add-Ons”