Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: Avatar Upload & Dynamic Proportionizing
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 4

bjlt
Senior Member

1144 Posts

Posted - 09 December 2001 :  13:43:41  Show Profile
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.



Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 09 December 2001 :  14:05:36  Show Profile  Visit dayve's Homepage
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

Go to Top of Page

bjlt
Senior Member

1144 Posts

Posted - 09 December 2001 :  15:30:56  Show Profile
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.

Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 09 December 2001 :  16:08:47  Show Profile  Visit Azaniah's Homepage
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.
Go to Top of Page

bjlt
Senior Member

1144 Posts

Posted - 10 December 2001 :  01:22:35  Show Profile
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.

Go to Top of Page

Fusey
Starting Member

1 Posts

Posted - 14 December 2001 :  08:27:26  Show Profile
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



Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 14 December 2001 :  11:21:24  Show Profile  Visit dayve's Homepage
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

Go to Top of Page

FeDe
New Member

62 Posts

Posted - 14 December 2001 :  13:24:35  Show Profile
Thanks for the mod, it's working perfect!! I'm using it without the upload option

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 14 December 2001 :  18:33:34  Show Profile  Visit dayve's Homepage
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

Go to Top of Page

kristien
New Member

78 Posts

Posted - 14 December 2001 :  19:17:16  Show Profile  Visit kristien's Homepage
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

Go to Top of Page

FeDe
New Member

62 Posts

Posted - 14 December 2001 :  21:59:45  Show Profile
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.

Go to Top of Page

FeDe
New Member

62 Posts

Posted - 15 December 2001 :  13:28:55  Show Profile
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


Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 15 December 2001 :  14:25:23  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

FeDe
New Member

62 Posts

Posted - 15 December 2001 :  16:08:08  Show Profile
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!

Go to Top of Page

kristien
New Member

78 Posts

Posted - 15 December 2001 :  20:42:17  Show Profile  Visit kristien's Homepage
Nobody knows where i can find the upload mod that i need for this mod ?

Please ?

Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07