Author |
Topic |
|
richfed
Average Member
United States
999 Posts |
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!< |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 19 July 2008 : 15:41:23
|
You could embed this routine wherever you want the HB to show:
< |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
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: < |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
leatherlips
Senior Member
USA
1838 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
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? < |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
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
Advanced Member
Philippines
4207 Posts |
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
Forum Admin
United Kingdom
20584 Posts |
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
Advanced Member
Philippines
4207 Posts |
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< |
|
|
richfed
Average Member
United States
999 Posts |
Posted - 20 July 2008 : 08:20:23
|
Thank you, Lads!< |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
balexandre
Junior Member
Denmark
418 Posts |
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 < |
Bruno Alexandre (Strøby, DANMARK)
"a Portuguese in Danmark"
|
|
|
|
Topic |
|