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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Problem with MOD: Avatars Different Sizes
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Croatia
New Member

53 Posts

Posted - 21 February 2006 :  09:37:33  Show Profile  Visit Croatia's Homepage
I do everything that write this http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=43759 but still avatars are in size 64x64 in topic, but in pop_profile they are in original size.

i.e.
one my topic, check the avatar size: http://www.kohorta.net/cgi-bin/forum/topic.asp?TOPIC_ID=2394
and then check size of that avatar in my profile:
http://www.kohorta.net/cgi-bin/forum/pop_profile.asp?mode=display&id=4

Forum version is 3.4.02

Edited by - OneWayMule on 21 February 2006 10:07:56

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 21 February 2006 :  10:07:44  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
As far as I can see you only need to remove all occurrences of the following code in pop_profile.asp:

width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """


(Make sure that you make a backup of the file first.)

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

Croatia
New Member

53 Posts

Posted - 21 February 2006 :  12:09:12  Show Profile  Visit Croatia's Homepage
quote:
Originally posted by OneWayMule

As far as I can see you only need to remove all occurrences of the following code in pop_profile.asp:

width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """


(Make sure that you make a backup of the file first.)



thanks for help!

but I just removed that code from topic.asp, not pop_profile.asp
Go to Top of Page

Croatia
New Member

53 Posts

Posted - 21 February 2006 :  12:22:39  Show Profile  Visit Croatia's Homepage
one more question, how to set limit for maximum widht of avatar? I don't wont to somebody put avatar in size like 400x300??
Go to Top of Page

TonyB7
Junior Member

USA
267 Posts

Posted - 21 February 2006 :  19:59:37  Show Profile  Send TonyB7 an AOL message  Send TonyB7 a Yahoo! Message
It's in Admin Options>Avatar Setup>Avatar Settings.

I don't know why you had to go to the trouble to allow different avatar sizes as resizing an avatar is a simple matter.
Go to Top of Page

Croatia
New Member

53 Posts

Posted - 22 February 2006 :  02:58:29  Show Profile  Visit Croatia's Homepage
quote:
Originally posted by TonyB7

It's in Admin Options>Avatar Setup>Avatar Settings.

I don't know why you had to go to the trouble to allow different avatar sizes as resizing an avatar is a simple matter.



no, I wonna to limit widht of avatar shows in topic.asp to max 130 pixels in widht. how to do that?
Go to Top of Page

Ranko
Junior Member

400 Posts

Posted - 23 February 2006 :  05:53:32  Show Profile
First of you can set a width/height of an avatar; not a maximum value for widht/height.

The values admin_avatar_settings.asp offeres are default; to add width & height 130 (or any other value) you need to edit admin_avatar_settings.asp

First find this code:
response.write	"	<option value=""96"""
		if intAvatarHeight = "96" then 
		response.write" selected" 
		end if 
		response.write">96</option></select></td>" & _
		"	<td align=""center"" valign=""middle"">" & vbNewLine


Replace it with this code:
response.write	"	<option value=""96"""
		if intAvatarHeight = "96" then 
		response.write" selected" 
		end if 
		response.write">96</option>"
response.write	"	<option value=""130"""
		if intAvatarHeight = "130" then 
		response.write" selected" 
		end if 
		response.write">139</option></select></td>" & _
		"	<td align=""center"" valign=""middle"">" & vbNewLine


Then find this:
response.write	"	<option value=""96"""
		if intAvatarWidth = "96" then 
		response.write" selected" 
		end if 
		response.write">96</option></select></td></tr>"
response.write	"</table>"


And replace with this:
response.write	"	<option value=""96"""
		if intAvatarWidth = "96" then 
		response.write" selected" 
		end if 
		response.write">96</option>"
response.write	"	<option value=""130"""
		if intAvatarWidth = "130" then 
		response.write" selected" 
		end if 
		response.write">130</option></select></td></tr>"
response.write	"</table>"


Now you will have the option to set the width / height to 130px; and if you installed the avatar mod OK, everything should be fine.

I ako radi smijš mi platiti pivo kad se opet dovu#269;em do Osijeka

Edited by - Ranko on 23 February 2006 05:57:09
Go to Top of Page

Ranko
Junior Member

400 Posts

Posted - 23 February 2006 :  06:00:19  Show Profile
And by the way, I noticed that Croatian characters don't work on the forum. Open the config.asp and change
Session.LCID = 1033 '## Do Not Edit

to
Session.LCID = 1050 '## Do Not Edit
Go to Top of Page

Croatia
New Member

53 Posts

Posted - 28 February 2006 :  06:34:54  Show Profile  Visit Croatia's Homepage
quote:
Originally posted by Ranko

And by the way, I noticed that Croatian characters don't work on the forum. Open the config.asp and change
Session.LCID = 1033 '## Do Not Edit

to
Session.LCID = 1050 '## Do Not Edit




II change that, and have problem, in post of some useres I see good Cro charaters, but on some users i see that characters in this shape: #269;

Go to Top of Page

Croatia
New Member

53 Posts

Posted - 07 March 2006 :  15:44:07  Show Profile  Visit Croatia's Homepage
HELP ME PLEASE!
Go to Top of Page

Zuel
Average Member

USA
540 Posts

Posted - 11 March 2006 :  16:55:45  Show Profile  Visit Zuel's Homepage
Don't know if you have been straightened out but the main problem is this:

1) Using the current Avatar Mod it forces all avatars to adhere by 64 by 64 or what ever demensions were set.

2) OneWayMule suggested taking out the height and width properties. This is alright but then again now all images are allowed without any restriants. Someone could use a 400 by 300 image.

3) Here is my solution. Use the avatar in a Table Background and set a clear dummy image inside the table to take up the set width. noAvatar.gif does that already.

Topic.asp (Should be two instances)

FIND:

 response.write"		<img src=""" & Reply_MemberAvatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """>"


REPLACE:


Response.Write "	<table width=""" & intAvatarWidth & """ height= """ & intAvatarHeight & """ cellspacing=""0"" cellpadding=""0"" border=""0"" style="" background-image: url('" & Reply_MemberAvatar & "');background-repeat: no-repeat; background-position: center;"">" & vbNewLine & _
							   "		<tr>" & vbNewLine & _
							   "			<td align=""center""><img src=""" & strImageURL & "noavatar.gif"" width=""" & intAvatarWidth & """  height=""" & intAvatarHeight & """  border=""0""></td>" & vbNewLine & _
							   "		</tr>" & vbNewLine & _
						       "	</table>" & vbNewLine

POP_PROFILE.asp

FIND:

"<tr>" & vbNewLine & _
						" 	<td bgColor=""" & strPopUpTableColor & """ align=""center"" colspan=""2""><img src=""" & ChkString(rs("M_AVATAR_URL"), "url") & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """></td>" & vbNewLine & _
						"</tr>" 


REPLACE:

"<tr>" & vbNewLine & _
" 	<td bgColor=""" & strPopUpTableColor & """ align=""center"" colspan=""2"">" & _
"	<table width=""" & intAvatarWidth & """ height= """ & intAvatarHeight & """ cellspacing=""0"" cellpadding=""0"" border=""0"" style="" background-image: url('" & ChkString(rs("M_AVATAR_URL"), "url") & "');background-repeat: no-repeat; background-position: center;"">" & vbNewLine & _
"		<tr>" & vbNewLine & _
"			<td align=""center""><img src=""" & strImageURL & "noavatar.gif"" width=""" & intAvatarWidth & """  height=""" & intAvatarHeight & """  border=""0""></td>" & vbNewLine & _
"		</tr>" & vbNewLine & _
"	</table></td>" & vbNewLine & _
"</tr>" 


Like I said, this does everything you need it to do. If the image is greater then the set size, the image is simply hidden. Only the set portion shows.

http://www.twistingshadows.com/forum/login.asp?target=avatars.asp?method=Main

U: tester
P: tester

Shows images all of the same size without changing all the other images.

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

Gort
New Member

84 Posts

Posted - 22 April 2006 :  09:44:25  Show Profile
The code above works like a charm.

One note: The 2nd instance of the code above that must be replaced in topic.asp has the variable Member_Avatar instead of Reply_MemberAvatar

I didn't change anything in the pop_profile b/c it already looks fine (probably b/c I have the gallary add-on installed)
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07