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 DEV-Group
 DEV Bug Reports (Closed)
 BUG+FIX (3.1sr4): viewing admin profile w/o email
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Aznknight
Senior Member

USA
1373 Posts

Posted - 05 January 2001 :  20:41:45  Show Profile  Send Aznknight an AOL message  Send Aznknight an ICQ Message
Just did a fresh install and everything works fine except for one minor bug.

try to view the profile for the admin and you'll get this error.

Error Type:
Microsoft VBScript runtime (0x800A005E)
Invalid use of Null: 'Replace'
/snit31sr4/inc_functions.asp, line 358


basically, it's pop_profile.asp?mode=display&id=1

Wierd thing is that it seems to be only for the admin. I can few the other profiles fine.

it looks like the admin doesn't have a required field or something


- Alan
alan@calvsa.net
www.calvsa.net

Aznknight
Senior Member

USA
1373 Posts

Posted - 05 January 2001 :  20:43:03  Show Profile  Send Aznknight an AOL message  Send Aznknight an ICQ Message
ahh, the admin doesn't have an email...and i think the pop_profile tried to do a htmlencode on the email field which is null for the admin!
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 29 January 2001 :  21:53:15  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
need to pre-populate the DB with a dummy Email... gah.

Reinsnitz (Mike)
><)))'>
"The glory of young men is their strength, and the honor of old men is their gray hair." - Proverbs 20:29
Go to Top of Page

tilttek
Junior Member

Canada
333 Posts

Posted - 30 January 2001 :  10:57:23  Show Profile  Visit tilttek's Homepage
quote:

need to pre-populate the DB with a dummy Email... gah.



The problem sould be avoid if you create a new Replace function...
Exemple:

 
function Replace2(strTarget, strFind, strToReplace)

If strTarget = "" or isNull(strTarget) or isEmpty(strTarget) Then
Replace2 = "" ' or " "
Else
Replace2 = Replace(strTarget, strFind, strToReplace)
End If

End Function



Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 12 February 2001 :  17:30:28  Show Profile  Visit gor's Homepage
By fixing this in the pop_profile.asp page you get a bit nicer result because now it displays "No address specified..." when the email address is empty

Line-numbers are based on the V3.1 SR5 A4 version

starting around line 171:

<td bgColor=<% =strPopUpTableColor %> align=right width="10%" nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Email Address: </font></b></td>
<%

if Trim(rs("M_EMAIL")) <> "" then
%>
<td bgColor=<% =strPopUpTableColor %>><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"> <a href="JavaScript:openWindow('pop_mail.asp?id=<% =rs("MEMBER_ID") %>')"><% =ChkString(rs("M_EMAIL"), "display") %></a> </font></td>
<%
else
%>
<td bgColor=<% =strPopUpTableColor %>><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">No address specified... </font></td>
</tr>
<%
end if

if strICQ = "1" then


and starting around line 415:

<tr>
<td bgColor=<% =strPopUpTableColor %> align=right width="10%" nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Email Address: </font></b></td>
<%
if Trim(rs("M_EMAIL")) <> "" then
%>
<td bgColor=<% =strPopUpTableColor %>><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"> <a href="JavaScript:openWindow('pop_mail.asp?id=<% =rs("MEMBER_ID") %>')"><% =ChkString(rs("M_EMAIL"), "display") %></a> </font></td>
<%
else
%>
<td bgColor=<% =strPopUpTableColor %>><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">No address specified... </font></td>
</tr>
<%
end if

if strICQ = "1" then
if Trim(rs("M_ICQ")) <> "" then



Pierre
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 12 February 2001 :  22:06:45  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
fixed in source of sf2k_31sr4a5.zip

Reinsnitz (Mike)
><)))'>
"Blessed are those who hear the word of God and obey it." - Luke 11:28
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked  Topic Locked
 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