TinyPortal

Development => Support => Topic started by: Martine M on June 18, 2011, 09:16:02 AM

Title: usersblock
Post by: Martine M on June 18, 2011, 09:16:02 AM
Link to my site: http://www.united-tutorials-registration.com/
SMF version: SMF 2.0
TP version: TP ver. 1.104
Default Forum Language: English
Theme name and version: Default
Browser Name and Version: Firefox
Mods installed:
Related Error messages:

Does anybody know why avatars are not showing good in the usersbox.
The show in the right hight but squeezed together in the width.
Title: Re: useersblock
Post by: lurkalot on June 18, 2011, 10:05:35 AM
Hi enitram,

I can't view your user block as a guest. ;)
Title: Re: useersblock
Post by: Martine M on June 18, 2011, 10:35:29 AM
can you see it on my testforum?
I set all in block access for guest to see now.
I can't seem to log out at the testforum so I can't check myeslf.
http://www.testforum.united-tutorials-registration.com/index.php
Title: Re: useersblock
Post by: lurkalot on June 18, 2011, 02:42:00 PM
Sorry for locking your thread. Really don't know what happened there. 

So what block are we taliking about on your test site please, can you post a screen shot please.
Title: Re: useersblock
Post by: ZarPrime on June 18, 2011, 02:48:55 PM
Yeah, a screenshot would be nice on this one.  Even when a guest can view that particular block, he wouldn't see an avatar because guests don't have avatars.  The user block turns into a quick login block when guests see it.

Let me ask you a couple of questions.  Is this happening on both your live site and your test site?  Is the avatar a new one or one for an established member that has had the avatar for awhile?  Have you checked the block with the default theme to see if it's the same?  Finally, last question for now --> Are you seeing this happening on a particular browser or does it happen on all browsers?

ZarPrime
Title: Re: useersblock
Post by: Martine M on June 18, 2011, 03:04:32 PM
No problems Lurkalot really.

Yes it is on both sites.
I see it only on my own avatar don't know  about others yet, but I use different avatars at each forum one is a a gif and the other jpg,
I used the gif for a long time on the previous version. But don't know if the problem also was in the earlier version hadn't marked that option if it was there.

Checked just now on Internet Explorer and it shows the same.

don't really understand this question, I work with the default SMF theme on both, or do you mean something else
QuoteHave you checked the block with the default theme to see if it's the same?

And while I am typin this I think I know what the problem is, maybe it is because I use avator uploaded on photbucket.
Maybe I have to upload it to the forum itself. Although it shows fine in SMF itself.

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi905.photobucket.com%2Falbums%2Fac253%2FMartinePassion%2FUTR%2FPrintscreens%2Fuserbocks.jpg&hash=617860ec0bf9b4699d4a829375d0d9426f4794c0)


Title: Re: useersblock
Post by: Martine M on June 18, 2011, 03:09:56 PM
I tried it out at my test forum and if I upload the avater it shows in the right sizes but very small. But maybe that is normal?

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi905.photobucket.com%2Falbums%2Fac253%2FMartinePassion%2FUTR%2FPrintscreens%2Fuserbocks2.jpg&hash=57da4ec642311818669b75bd37f2487d02973201)
Title: Re: useersblock
Post by: ZarPrime on June 18, 2011, 03:26:34 PM
OK, check this page in your admin section --> /index.php?action=admin;area=manageattachments;sa=avatars

On that page, there are 4 settings that you might check and compare for both sites ...
Maximum width of external avatar
Maximum height of external avatar
Maximum width of uploaded avatar
Maximum height of uploaded avatar

You might want to play with those settings to see what happens.  Also, you might want to check the setting for "If the avatar is too large...".  FWIW, those setting on this site are 80 each for the 4 settings above and "Download and resize it (requires GD module)" for the other one.

ZarPrime
Title: Re: useersblock
Post by: Martine M on June 18, 2011, 03:58:21 PM
You mean in SMF Avatar settings?

I all set that  from the beginning at 125 x 125 pixels.
and it show perfect at the top of smf (see screen).

I tried by setting 0 for no value and it stays the same.

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi905.photobucket.com%2Falbums%2Fac253%2FMartinePassion%2FUTR%2FPrintscreens%2Fuserbocks3.jpg&hash=5ef45eb010df7242168474f9a098ac1112ef9a97)


I'm going to rest my eye for a few hours now, did to much today I think.

Title: Re: useersblock
Post by: ZarPrime on June 18, 2011, 04:49:52 PM
Look in the following file on your site --> /Themes/default/tp-style.css

Look for the following, near the bottom (see image below) ...

div.useravatar img {
    background: none repeat scroll 0 0 white;
    border: 1px solid #AAAAAA;
    display: block;
    margin: 1em auto 0;
    overflow: auto;
    padding: 1px;
    width: 45px;
}


(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi714.photobucket.com%2Falbums%2Fww142%2FZarPrime%2FTP-Avatar-Width-UserBox.png&hash=9a657bbbeb0da3ad894bd29da190837ef94150d9)

Tell me what is in there, especially for "width".  You can adjust that for a larger value (I briefly increased the width to 100 as you can see in the image).  As you adjust the width larger, the height should increase as well.  It might be easier to look at this without first changing it if you are using Firefox with the Firebug addon.  There shouldn't be anything different in yours but stranger things have happened.  This is what controls the width of the Avatar in the UserBox and the height will be adjusted accordingly.

ZarPrime
Title: Re: useersblock
Post by: Martine M on June 18, 2011, 05:26:46 PM
it is a bit differently written but the same I think.

here it is

div.useravatar img
{
margin: 1em auto 0 auto;
border: solid 1px #aaa;
padding: 1px;
background: white;
display: block;
overflow: auto;
width: 45px;
}


I don't have firebug running.

Didn't change/try anything yet.
Going to eat first  :)
Title: Re: useersblock
Post by: Martine M on June 18, 2011, 06:27:55 PM
I changed it to 100px and that fixed the problem
Thank you very much again for your time.

When I am done setting up my forum I think I almost know the in and out of the forum and TinyPortal.  ;D

I must say, I am glad you persuaded me to do the upgrade myself and helped me along, cause I am learning a lot from this all, specially the working of the forum itself, and I am glad for that. 

I find this TinyPortal much better to work with, when last php. is translated (which will be today) I am going to take some time to have a good look around TP to find out what all the possibility's are.

Thanks again