Author |
Topic |
bjlt
Senior Member
1144 Posts |
Posted - 09 December 2001 : 13:43:41
|
I'm just new to asp and don't know the performance issue of the db/component.
since we can now proportionize avatars, I'll restrict the filesize of user uploaded avatars. i'll do a check before uploading, if it exceeds the set amount, response an error message.
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 09 December 2001 : 14:05:36
|
if you look at the code, the filesize is already restricted I believe to 512K, just change that number in the uploade avatar engine script:
MaxFileSize = cLng(objDict.Item("faMaxSize"))*512
____________ dayve@burningsouls.com
|
|
|
bjlt
Senior Member
1144 Posts |
Posted - 09 December 2001 : 15:30:56
|
oh thanks. I checked that scripts a while ago and don't remeber clearly now. I'd like to see how the client side code work later when it's ready and make my decision.
Thank you your mods are really good.
|
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 09 December 2001 : 16:08:47
|
The ideal would be is if you could dynamically create real thumbnails.. but I have no idea how to do that....
Cheers Az
------- Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
bjlt
Senior Member
1144 Posts |
Posted - 10 December 2001 : 01:22:35
|
quote:
The ideal would be is if you could dynamically create real thumbnails.. but I have no idea how to do that....
Cheers Az
------- Eagles fly!, but weasels don't get sucked into jet engines.
me neither, unless to use a component. well, do we need to create thumnails for avatars? however we need it for picture galleries.
|
|
|
Fusey
Starting Member
1 Posts |
Posted - 14 December 2001 : 08:27:26
|
when i view a topic, the avatar will only display at 0 x 0
so i change these lines in GetPicFileInfo :
o_nWidth = 64 o_nHeight = 0
and now the avatar is displayed ay 64 x 0.. which shows that the values are coming from GetPicFileInfo.
im not sure what to do, the code doesnt seem to be sizing the image at all and just using the default values
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 14 December 2001 : 11:21:24
|
quote:
when i view a topic, the avatar will only display at 0 x 0
so i change these lines in GetPicFileInfo :
o_nWidth = 64 o_nHeight = 0
and now the avatar is displayed ay 64 x 0.. which shows that the values are coming from GetPicFileInfo.
im not sure what to do, the code doesnt seem to be sizing the image at all and just using the default values
well that sucks could you send me your topic.asp or convert it to a text document and point a url to topic.txt so I can look at your code? and what version are you using? 3.1 or 3.3? recordsets are a little different in both versions which is why I ask.
____________ dayve@burningsouls.com
|
|
|
FeDe
New Member
62 Posts |
Posted - 14 December 2001 : 13:24:35
|
Thanks for the mod, it's working perfect!! I'm using it without the upload option
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 14 December 2001 : 18:33:34
|
quote:
Thanks for the mod, it's working perfect!! I'm using it without the upload option
sounds great, but I want to clarify. you are using avatars that exist on your server only correct? the resizing feature will NOT work with linked images from another server...
____________ dayve@burningsouls.com
|
|
|
kristien
New Member
78 Posts |
Posted - 14 December 2001 : 19:17:16
|
Hi
Pre-requisites: ============================================================== Upload Mod must be installed Avatar Mod must be installed
I installed the avatar mod, but could you please give me a link for the upload mod ?
Thanks a lot
|
|
|
FeDe
New Member
62 Posts |
Posted - 14 December 2001 : 21:59:45
|
quote:
sounds great, but I want to clarify. you are using avatars that exist on your server only correct? the resizing feature will NOT work with linked images from another server...
____________ dayve@burningsouls.com
Yep, the avatars i'm using are on my own server.
|
|
|
FeDe
New Member
62 Posts |
Posted - 15 December 2001 : 13:28:55
|
I've discovered i have a little problem (not a real problem, just a detail) when i put the mouse on the avatar, it displays which is the size of the avatar. Is there any way to take that out?
I've only added the code to the topic.asp.
My forum link is http://www.clubp3.com/foro
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 15 December 2001 : 14:25:23
|
oh yeah, I was using that for debugging some issues I was having. just remove this line from topic.asp:
response.write " title=""" & o_nWidth & o_nText & o_nHeight & """"
____________ dayve@burningsouls.com
Edited by - dayve on 15 December 2001 14:25:40 |
|
|
FeDe
New Member
62 Posts |
Posted - 15 December 2001 : 16:08:08
|
quote:
oh yeah, I was using that for debugging some issues I was having. just remove this line from topic.asp:
response.write " title=""" & o_nWidth & o_nText & o_nHeight & """"
Thanks! Worked perfect!
|
|
|
kristien
New Member
78 Posts |
Posted - 15 December 2001 : 20:42:17
|
Nobody knows where i can find the upload mod that i need for this mod ?
Please ?
|
|
|
Topic |
|