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)
 Looking for avatar mod
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

mynameissteve
Starting Member

USA
5 Posts

Posted - 05 April 2006 :  04:48:17  Show Profile  Visit mynameissteve's Homepage  Reply with Quote
No problem!<

<Steve />
Go to Top of Page

juhan
Starting Member

3 Posts

Posted - 06 April 2006 :  15:14:53  Show Profile  Reply with Quote
I must be stupid, since I don't find the code you're talking about jiffy...<
Go to Top of Page

jiffy
Starting Member

33 Posts

Posted - 07 April 2006 :  11:09:23  Show Profile  Reply with Quote
He emailed it to me. I'll send it to you via email and post the code here as well. Hopefully Steve is cool with that.

----------------------
strGetPicURLSQL = "SELECT M_PHOTO_URL FROM forum_members where member_ID = " & Reply_Author 'Reply author used here based on loop

set rsPic = Server.CreateObject("ADODB.Recordset")
rsPic.open strGetPicURLSQL, my_Conn

imgLocation = rsPic(0)
if imgLocation =" " then
'do nothing.....user does not have a picture!
else
Response.Write "<img src='" & imgLocation & "' width=170px height=128px>" & vbNewLine

end if
rsPic.Close
set rsPic = nothing
-------------------------------------------

I did have another question on it though. After I added the code I decided I wanted to change the size to 150x150 so I changed that and it still shows them as 170x128. What's up with that? I'm asp retarded so that doesn't help any. I assume it wrote some record or something the first time the page loaded. So how do I make it 150x150?

Edit: nevermind it looks like you don't have an email listed in your profile.<

Are you an InterWeberNetter?
http://www.interwebernet.com

Edited by - jiffy on 07 April 2006 11:11:00
Go to Top of Page

mynameissteve
Starting Member

USA
5 Posts

Posted - 08 April 2006 :  04:04:29  Show Profile  Visit mynameissteve's Homepage  Reply with Quote
did you get the pic sizes working....making those changes would definately change the size of the photo.

Remember there are two instances of my code in the "topic.asp" page...make sure you change both occurrances of height and width.

Also make sure you dont have your browser caching the page(the old way it look)<

<Steve />
Go to Top of Page

spyderuk
Junior Member

United Kingdom
211 Posts

Posted - 08 April 2006 :  05:03:58  Show Profile  Visit spyderuk's Homepage  Reply with Quote
FWIW, I'm using the basic Avatar mod on Snitz Bitz and if users want a custom Avatar they can submit it for approval. Admin can then upload it and asign it for the user.
Maybe if your taking donations for the hosting etc you can charge a small fee for the personal avatar?<

Snitz 3.4.05. Mods Installed, Additional Smilies, Poll's, PM's, Email All Users, Today/Yesterday, Active Users 4, Portal Mod, My Own Google, Referer Mod, Avatars, Intergrated Conqueror Chat, Usergroups, IPGate, File Attachment Mod & Image Resize Mod.
Next Mod? My Snitz Forum
Go to Top of Page

juhan
Starting Member

3 Posts

Posted - 08 April 2006 :  17:49:24  Show Profile  Reply with Quote
Jiffy, I also got it from Steve directly. Thanks Steve!!!.

I changed the size to 100x80, no problems...

I also changed the following since I had empty entries in the database:

if imgLocation =" " then
'do nothing.....user does not have a picture!

to

if imgLocation =" " or imgLocation ="" then
'do nothing.....user does not have a picture!

Only real trouble are those who use a full digicam pic and think it's ok since it shows ok..

Is there a quick way to check the size of the picture linked?




<
Go to Top of Page

jiffy
Starting Member

33 Posts

Posted - 08 April 2006 :  22:34:37  Show Profile  Reply with Quote
All is good now. Was uploading my backup file and didn't realize it. I can't believe how good this works. What a great mod.

juhan:
Does it slow down the page load speed very much when there is a very large image used as the avatar?<

Are you an InterWeberNetter?
http://www.interwebernet.com
Go to Top of Page

Zuel
Average Member

USA
540 Posts

Posted - 11 April 2006 :  10:02:51  Show Profile  Visit Zuel's Homepage  Reply with Quote
quote:

Does it slow down the page load speed very much when there is a very large image used as the avatar?



Of course.<

My Completed Mods: News Mod | Zuel's Avatar Add-on
In Development: World of Warcraft Member Roster | [C# Based Forum]

Note - I may take a few days to recieve your email. Hotmail filters all new emails as junk. Would be best to post all questions, concerns in a forum topic to catch my immediate attention. This way others can assist and also correct any similar mistakes.

MSN / E-Mail: ucyimDa_Ruler@Hotmail.com

Personal Bookmarks: How to work a DBS File
Go to Top of Page

jiffy
Starting Member

33 Posts

Posted - 12 April 2006 :  19:10:27  Show Profile  Reply with Quote
I guess what I meant was having an image load from another location hasn't seemed to slow down the page load for me. It usually just makes it seem like the images are loading slow but not the actual page. I'm sure you're right though it must be slowing down the page but I just don't notice.<

Are you an InterWeberNetter?
http://www.interwebernet.com
Go to Top of Page

Zuel
Average Member

USA
540 Posts

Posted - 12 April 2006 :  23:56:58  Show Profile  Visit Zuel's Homepage  Reply with Quote
quote:
Originally posted by jiffy

I guess what I meant was having an image load from another location hasn't seemed to slow down the page load for me. It usually just makes it seem like the images are loading slow but not the actual page. I'm sure you're right though it must be slowing down the page but I just don't notice.



It wouldn't slow the entire page down. Things just load in pieces. Images are usually one of the last things to load, as well as media, flash, shockwave and the like.

If you view a thread that has about 20 replies, each person is different with an avatar, you will notice the slowdown. Other then that, you shouldn't feel it. Unless someone uses a 20mb file as an avatar.<

My Completed Mods: News Mod | Zuel's Avatar Add-on
In Development: World of Warcraft Member Roster | [C# Based Forum]

Note - I may take a few days to recieve your email. Hotmail filters all new emails as junk. Would be best to post all questions, concerns in a forum topic to catch my immediate attention. This way others can assist and also correct any similar mistakes.

MSN / E-Mail: ucyimDa_Ruler@Hotmail.com

Personal Bookmarks: How to work a DBS File
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07