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)
 Age variable
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

schef
Junior Member

USA
164 Posts

Posted - 26 December 2002 :  16:26:59  Show Profile  Visit schef's Homepage  Send schef an AOL message
I am running 3.4.02 and have a mod setup to show birthdays on default.asp. It will show the correct age in pop_profile.asp, however it shows the wrong age on default.asp. I used this to place the age on the page:

" & DisplayUsersAge(strM_AGE) & "

but it tells me that everyone is 102. I am sure that I just have to include a file, or variable declaration to use the M_AGE call... but am not too sure on which it is.

ATV Outdoors

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 26 December 2002 :  17:33:26  Show Profile
on the line where you define strM_AGE, use the following function on it:

DOBtoDate()

for example, in the pop_profile.asp file, it's used like this:
strDOB = DOBToDate(strDOB)
then strDOB is used with the DisplayUsersAge function like this:
DisplayUsersAge(strDOB)
Go to Top of Page

schef
Junior Member

USA
164 Posts

Posted - 26 December 2002 :  17:40:40  Show Profile  Visit schef's Homepage  Send schef an AOL message
I think I am a little lost here... I can't seem to find where M_AGE is defined. I would simply like to post the age, just like pop_profile does it. I can't seem to get by the 102 age


ATV Outdoors

Edited by - schef on 26 December 2002 17:41:28
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 26 December 2002 :  17:43:06  Show Profile
try changing this:
DisplayUsersAge(strM_AGE)
to this:
DisplayUsersAge DOBToDate(strM_AGE)
Go to Top of Page

schef
Junior Member

USA
164 Posts

Posted - 26 December 2002 :  17:50:13  Show Profile  Visit schef's Homepage  Send schef an AOL message
no go... I get this:

Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/test/forum/cal_functions.asp, line 511, column 272
Response.Write "<font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strForumFontColor & """><span class=""spnMessageText""><a href=""pop_profile.asp?mode=display&id="& rs("member_id") & """>" & rs("M_NAME") & "</a> " & DisplayUsersAge DOBtoDate(strM_AGE) & " </span></FONT> "




as you can see, this is what I tried

			Response.Write "<font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strForumFontColor & """><span class=""spnMessageText""><a href=""pop_profile.asp?mode=display&id="& rs("member_id") & """>" & rs("M_NAME") & "</a> " & DisplayUsersAge DOBtoDate(strM_AGE) & " </span></FONT> "

ATV Outdoors
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 26 December 2002 :  18:03:54  Show Profile
ok, try putting this right above that line #511:
strDOB = DOBToDate(strM_AGE)

then replace this:
DisplayUsersAge DOBtoDate(strM_AGE)
with this:
DisplayUsersAge(strDOB)
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.28 seconds. Powered By: Snitz Forums 2000 Version 3.4.07