Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 show in profile when user has birthday

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
tribaliztic Posted - 01 June 2006 : 04:18:25
I would like to have a little birthday cake or something like that show up in the profiles and maybe under the avatar beside the posts when the user in question has a birthday today.

I found that in FORUM_MEMBERS there is a M_DOB with the entered birth date for the user.
I also found FORUM_MEMBERS_BDAYS with memberid and a date.

Which of those would be best to use?

If I use the M_DOB I have to modify the M_DOB and compare it with today's date.
If I use the date from MEMBERS_BDAYS I just have to compare the date.

Is this correct?

The date in MEMBERS_BDAYS, is this updated once a year or what? Most of my users has a date in 2005 but some have dates in 2006, how come?
<
1   L A T E S T    R E P L I E S    (Newest First)
tribaliztic Posted - 01 June 2006 : 04:39:58
I saw that the M_DOB was already read from the DB in the profile page so I solved it by doing this:
birthday = Left(chkDate(rs("M_DOB")," ",false), Len(chkDate(rs("M_DOB")," ",false))-5)
today = Left(chkDate(DateToStr(strForumTimeAdjust)," ",false), Len(chkDate(DateToStr(strForumTimeAdjust)," ",false))-5)
if birthday = today then

showsomenicepicofabirthdaycakeorsomethinghere

end if

I'm sure there is a better way to do this though, any input would be nice =)<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000 Version 3.4.07