se7enet purgatorio

Page 1 of 2 12>
Topic Options
Rate This Topic
#16573 - 01/31/08 02:49 PM image size
Jestar
Grape Nuts


Registered: 01/30/08
Posts: 25

Offline
ok, so i am using the avatar mod (yes, i no the mods arnt very good) and it works perfectly, i only have one problems tho, it does not limit the size of the image, so you are able to have MASSIVE avatars which ruin the layout of the page. so i was wondering if its possible to limit the size of the avatar? i tried making a table with a certain size but the image just stretchs the table so it dosnt do anything. Help would be aprreciated. Thanks.
Top
#16574 - 01/31/08 03:14 PM Re: image size [Re: Jestar]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
just enforce a size. its easier.

img src=$whatever width=150 height=150

or however it goes.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#16575 - 01/31/08 03:17 PM Re: image size [Re: AnmanIndustries]
Jestar
Grape Nuts


Registered: 01/30/08
Posts: 25

Offline
but where do i do that? when they initially upload there avatar? or in the rightnav.php were the avatar will be.
Top
#16576 - 01/31/08 03:21 PM Re: image size [Re: Jestar]
Jestar
Grape Nuts


Registered: 01/30/08
Posts: 25

Offline
Nvm i got it!, Thank you for your help.
Top
#16577 - 01/31/08 03:25 PM Re: image size [Re: Jestar]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
That will be 25AUD consulting fees.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#16578 - 01/31/08 03:26 PM Re: image size [Re: AnmanIndustries]
Jestar
Grape Nuts


Registered: 01/30/08
Posts: 25

Offline
haha sure thing :P
Top
#16587 - 01/31/08 09:54 PM Re: image size [Re: Jestar]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Or you can do it with strings. Or you can let the user choose their avatar size....or.....
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#16588 - 01/31/08 10:57 PM Re: image size [Re: Fayt]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
or for conformity of your layout you can just enforce a size.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#16592 - 02/01/08 08:34 AM Re: image size [Re: AnmanIndustries]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
or you can fancy up your code using strings
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#16593 - 02/01/08 03:53 PM Re: image size [Re: Fayt]
Jestar
Grape Nuts


Registered: 01/30/08
Posts: 25

Offline
i have another question, were would i edit, so that when the user first logs on there is a default picture instead of nothing?
Top
#16594 - 02/01/08 04:35 PM Re: image size [Re: Jestar]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Just add a image code to the page. Like this link results in showing this image. I have one on mine, it's easy.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#16596 - 02/01/08 04:52 PM Re: image size [Re: Fayt]
Jestar
Grape Nuts


Registered: 01/30/08
Posts: 25

Offline
on which page? i dont quite understand what you mean?
Top
#16598 - 02/01/08 06:04 PM Re: image size [Re: Jestar]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Where ever your letting the player choose the avatar. Here look at this screen shot.

http://img88.imageshack.us/my.php?image=samplesy6.jpg

That is a sample of mine. (It's custom made for something else in my game, not a avatar).

But your saying you want the current avatar shown?
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#16599 - 02/01/08 06:05 PM Re: image size [Re: Fayt]
Jestar
Grape Nuts


Registered: 01/30/08
Posts: 25

Offline
yeah, because when a new user joins they have no avatar, so i want to make like a default avatar
Top
#16600 - 02/01/08 07:17 PM Re: image size [Re: Jestar]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
$avatar = $userrow["avatar"];

$page .= "<b>Current Avatar:</b><br><br>\n";

$page .= "<img src=\"$avatar\" width=\"100\" height=\"100\"><p>The default image link is: http://www.blah.com/images/defaultavatar.gif";


-------------------------------------------------------------

Set the $userrow["avatar"] to whatever your database field is. It should be a link, so it calls that link and displays an image in <img src=\"$avatar\"
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
Page 1 of 2 12>


Hop to:

se7enet

Barack Obama Logo