Shoutbox

Avatars in PM's - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: General (/forumdisplay.php?fid=11)
+---- Forum: Forum & Website (/forumdisplay.php?fid=13)
+----- Thread: Avatars in PM's (/showthread.php?tid=51861)

Avatars in PM's by absorbation on 10-16-2005 at 06:49 PM

I've noticed in PM's that the avatar container is smaller. This happens in all my messages. Was this because WDZ deleted that code today saying it was useless or because of something else :)

Anyway look at my dodgy paint screenshot happens in all my PM's when i view them now :)

[Image: attachment.php?pid=552094]


RE: Avatars in PM's by Eljay on 10-16-2005 at 06:52 PM

same in post preview and in multiple other places

something tells me WDZ is online fixing the nowrap thing in firefox 1.5 beta 2 :P


edit: now in posts too :P


RE: Avatars in PM's by WDZ on 10-16-2005 at 07:10 PM

Yeah, deleting the nowrap seems to have affected the width of that column, making it significantly narrower than normal in places where it doesn't contain any wide avatars or dates (the date/time cell still has a nowrap set).

I dunno what's up with that... ¬¬


RE: Avatars in PM's by wj on 10-16-2005 at 07:47 PM

Just make it a set width :-P


RE: Avatars in PM's by absorbation on 10-16-2005 at 07:48 PM

quote:
Originally posted by wj
Just make it a set width

would this also stop people using large avatars? :P
RE: Avatars in PM's by WDZ on 10-16-2005 at 07:52 PM

quote:
Originally posted by Absorbation
would this also stop people using large avatars? :P
No, a large avatar would stretch the cell even if there was a width="x" applied. :p
quote:
Originally posted by wj
Just make it a set width :-P
It is a set width, always has been...
code:
<!-- start: postbit -->
<tr>
<td class="trow1" width="155" valign="top" align="center">

RE: Avatars in PM's by Plik on 10-16-2005 at 08:41 PM

quote:
Originally posted by WDZ
It is a set width, always has been...
code:
<!-- start: postbit -->
<tr>
<td class="trow1" width="155" valign="top" align="center">


155 whats?
dont you need to say what the units are. eg px or em
RE: Avatars in PM's by Weyzza on 10-16-2005 at 08:43 PM

quote:
Originally posted by Madman
155 whats?
dont you need to say what the units are. eg px or em
isn't the unit always in pixels by delfault in html?
RE: Avatars in PM's by WDZ on 10-16-2005 at 08:44 PM

quote:
Originally posted by Madman
155 whats?
Pixels, of course.
quote:
dont you need to say what the units are. eg px or em
In CSS you do, but not in the HTML width attribute. It's always either pixels or percent.
RE: RE: Avatars in PM's by Salem on 11-01-2005 at 06:04 PM

quote:
Originally posted by WDZ
quote:
Originally posted by Absorbation
would this also stop people using large avatars? :P
No, a large avatar would stretch the cell even if there was a width="x" applied. :p
quote:
Originally posted by wj
Just make it a set width :-P
It is a set width, always has been...
code:
<!-- start: postbit -->
<tr>
<td class="trow1" width="155" valign="top" align="center">


Would it be possible to add code so that when adding an Avatar it will automatically resize it to an appropraite size if it is too big? Especially when using a image from the net. If seen another forum implememnting this, so thought you could too.
RE: Avatars in PM's by absorbation on 11-01-2005 at 06:06 PM

quote:
Originally posted by Salem

Would it be possible to add code so that when adding an Avatar it will automatically resize it to an appropraite size if it is too big? Especially when using a image from the net. If seen another forum implememnting this, so thought you could too.

something simple like in the image tag width= height= Or just ban certain image sizes giving the user a message in usercp when they try and do so.
RE: Avatars in PM's by MeEtc on 11-01-2005 at 06:09 PM

or something like

code:
if img.width>155
img.width=155

RE: RE: Avatars in PM's by Salem on 11-01-2005 at 06:10 PM

quote:
Originally posted by Absorbation
something simple like in the image tag width= height=

Yes, that was what i meant.

quote:
Originally posted by Absorbation
just ban certain image sizes giving the user a message in usercp when they try and do so.


I would prefer to see the avatar resized rather than banning large sizes.
RE: Avatars in PM's by WDZ on 11-01-2005 at 06:14 PM

quote:
Originally posted by Salem
Would it be possible to add code so that when adding an Avatar it will automatically resize it to an appropraite size if it is too big?
That's done for all uploaded (avatar.php) avatars. As for remote linked avatars, I don't really want to add PHP code to check those, since they're on un-trusted remote servers... :dodgy:

There is a JavaScript-based resizer for all avatars, but it's not 100% effective/reliable. :-/
RE: RE: Avatars in PM's by Salem on 11-01-2005 at 06:19 PM

quote:
Originally posted by WDZ
That's done for all uploaded (avatar.php) avatars. As for remote linked avatars, I don't really want to add PHP code to check those, since they're on un-trusted remote servers... :dodgy:

There is a JavaScript-based resizer for all avatars, but it's not 100% effective/reliable. :-/


Ok, thanks