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: General / Classic ASP versions(v3.4.XX)
 User profile - image URL dimensions
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

tinem
Junior Member

Denmark
209 Posts

Posted - 15 August 2005 :  08:37:58  Show Profile  Send tinem an ICQ Message
How can you make the image the right dimensions instead of 150x150 as it is default and in what file should you make the changes.


This account was hacked by that very honest guy, Image. Better take care with your personal data, if you register to his forums or he will hack into your account here, as well.

tinem
Junior Member

Denmark
209 Posts

Posted - 15 August 2005 :  12:56:54  Show Profile  Send tinem an ICQ Message
I have found this code in the file pop_profile.asp where I think the changes should be but I'm new to ASP so I don't know what to change?
It's about line 299.


quote:
if Trim(rs("M_PHOTO_URL")) <> "" and lcase(rs("M_PHOTO_URL")) <> "http://" then
Response.Write "<a href=""" & ChkString(rs("M_PHOTO_URL"), "displayimage") & """>" & getCurrentIcon(ChkString(rs("M_PHOTO_URL"), "displayimage") & "|150|150",ChkString(rs("M_NAME"),"display"),"hspace=""2"" vspace=""2""") & "</a><br /><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & fLang(strLangPop_Profile00190) & "</font>"
else
Response.Write getCurrentIcon(strIconPhotoNone,fLang(strLangPop_Profile00200),"hspace=""2"" vspace=""2""")
end if
Response.Write "</td>" & vbNewLine & _
" </tr>" & vbNewLine
end if ' strPicture
Response.Write " <tr>" & vbNewLine & _
" <td align=""center"" bgcolor=""" & strCategoryCellColor & """ colspan=""2""><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strCategoryFontColor & """> " & fLang(strLangPop_Profile00210) & " </font></b></td>" & vbNewLine & _
" </tr>" & vbNewLine
strContacts = 0

This account was hacked by that very honest guy, Image. Better take care with your personal data, if you register to his forums or he will hack into your account here, as well.
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 15 August 2005 :  18:32:33  Show Profile  Visit muzishun's Homepage
Try taking off the part in red:
Response.Write "<a href=""" & ChkString(rs("M_PHOTO_URL"), "displayimage") & """>" & getCurrentIcon(ChkString(rs("M_PHOTO_URL"), "displayimage") & "|150|150",ChkString(rs("M_NAME"),"display"),"hspace=""2"" vspace=""2""") & "</a><br /><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & fLang(strLangPop_Profile00190) & "</font>"

So that it looks like this:
Response.Write "<a href=""" & ChkString(rs("M_PHOTO_URL"), "displayimage") & """>" & getCurrentIcon(ChkString(rs("M_PHOTO_URL"), "displayimage"),ChkString(rs("M_NAME"),"display"),"hspace=""2"" vspace=""2""") & "</a><br /><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & fLang(strLangPop_Profile00190) & "</font>"

That removes the part that specifies the dimensions of the image. It should use the images actual demensions now. Just be careful that you don't have users linking to images that are so big they break the page.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

tinem
Junior Member

Denmark
209 Posts

Posted - 16 August 2005 :  04:54:39  Show Profile  Send tinem an ICQ Message
Thanks for your answer but it's not functioning. :-(
Have you tried it yourself and was it functioning on your site?

I get this message http://www.tinemuller.dk/tine_gaia_snitz_forum/div/brugerprofil.gif

I have uploaded the two files as txt format here
http://www.tinemuller.dk/tine_gaia_snitz_forum/pop_profile.asp.txt
http://www.tinemuller.dk/tine_gaia_snitz_forum/inc_iconfiles.asp.txt


This account was hacked by that very honest guy, Image. Better take care with your personal data, if you register to his forums or he will hack into your account here, as well.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 16 August 2005 :  13:08:40  Show Profile
Try just changing this:

"|150|150"

to this:

"||"
Go to Top of Page

tinem
Junior Member

Denmark
209 Posts

Posted - 16 August 2005 :  13:24:48  Show Profile  Send tinem an ICQ Message
Thanks a lot. That did it.

Can the members now make a link to their image with an URL or do I have to tell them something about this? I think about is there a size that could be to big?

This account was hacked by that very honest guy, Image. Better take care with your personal data, if you register to his forums or he will hack into your account here, as well.

Edited by - tinem on 16 August 2005 13:33:13
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.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07