Quote:
Originally Posted by m002.p
Hi guys,
Have a weird one here but I want to resize an avatar displayed using %. However, when doing it with the below method the image does not display.
Code:
<a href="profile.php?{$session[sessionurl]}do=editavatar"><img src="/forum/image.php?u={$bbuserinfo['userid']}" width="30%" height="30%"></a>
So, if this cant be solved, I was hoping it could be done with an edit to image.php allowing the use of height & width. For example:
Code:
/image.php?u=45&height=30%&width=30%
Any ideas how I can get either to work?
Matt
|
I don't see any reason why the first one wouldn't work, but IIRC percentages and divs don't tend to play nice so might need to stick a single cell table in there. You shouldn't have { and } in vB3 templates either.
Try
Code:
<table border="0" cellpadding="0" cellspacing="0"><tr><td><a href="profile.php?$session[sessionurl]do=editavatar"><img src="/forum/image.php?u=$bbuserinfo[userid]" width="30%" height="30%"></a></td></tr></table>
Should do the trick if memory serves me correctly
Of course, this is working on the assumption that you already have the avatar displaying on forumhome without any resizing taking place.