T O P I C R E V I E W |
richfed |
Posted - 19 July 2008 : 09:09:39 A while back, I noticed that on my birthday, when I visited this site, there was a "Happy Birthday" message to me up by the log-in area of the forum header.
Does anyone have the code to add this to my forum? It was pretty neat!< |
12 L A T E S T R E P L I E S (Newest First) |
balexandre |
Posted - 22 July 2008 : 03:29:56 just as a reminder...
the idea is ok, but:
on your birthday you can be "out" of the PC and the message should be something like...
for the day: "We didn't forgot about you... Happy birthday!", and then never show the message again
for the day after and until the user log in and ... not more than 2/3 weeks: "Hey, hey... we hope that you got a pleasant birth day", and then never show the message again for that year
just my opinion < |
leatherlips |
Posted - 21 July 2008 : 09:12:01 I added the code that RichardKinser posted and it is working fine. I tried to add what HuwR said in red:
if isbday() = "yes" then
but that caused it not to work any longer. I removed the () and it is working fine. Do I really need to have the ()?< |
richfed |
Posted - 20 July 2008 : 08:20:23 Thank you, Lads!< |
Carefree |
Posted - 20 July 2008 : 04:05:16 I knew something didn't look right about that function, mind playing tricks on me again.
Tx HuwR< |
HuwR |
Posted - 20 July 2008 : 03:36:22 no, but you need to change this line in callgreeting if isbday = "yes" then
to be if isbday() = "yes" then< |
Carefree |
Posted - 20 July 2008 : 03:23:49 OK - then in our "inc_header.asp", we'd have to call isbday just before calling getGreeting().< |
HuwR |
Posted - 20 July 2008 : 02:44:54 yes you could, but if you wanted to use it in the future you would then have to re-extract the isbdy function, so I owuld leave it as 2 functions, makes no difference in terms of execution and makes it more flexible.< |
Carefree |
Posted - 19 July 2008 : 21:50:53 quote: Originally posted by RichardKinser
This is how it's implemented here ....
Richard, there's no call to "isbday" function that way. Since nothing else uses the functions, couldn't you combine them (as below) & call isbday instead? < |
leatherlips |
Posted - 19 July 2008 : 21:35:59 You can also add a little graphic before the birthday such as a birthday cake. I have the events calendar mod installed so I just used it.
I changed this line:
Response.Write "Happy Birthday!" To this:
Response.Write "" & getCurrentIcon(strCalIconBDay,"Happy Birthday!","vAlign=""middle""") & " <b>Happy Birthday!</b>" < |
leatherlips |
Posted - 19 July 2008 : 21:16:00 That's nice! I didn't know it did that. I've never input my birthday before. I just added it to my site. < |
RichardKinser |
Posted - 19 July 2008 : 20:43:30 This is how it's implemented here:
First add the following to inc_func_common.asp:
Then in inc_header.asp around line #392 find:
and replace with: < |
Carefree |
Posted - 19 July 2008 : 15:41:23 You could embed this routine wherever you want the HB to show:
< |