Congratulating a user that is having a birthday

Started by Compuart, October 08, 2005, 07:55:25 AM

Previous topic - Next topic

digit

Quote from: Loverboy on September 23, 2006, 11:46:10 PM
Isn't there any modification that makes us able to send an automatic email to the user when it's his birthday?

I would like to see this too...  my mods are overworked!
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Aileen

IS there any version of this for dummies like me?

Deaks

~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

digit

I would like a way to automatically PM members with Random Birthday greetings from predesigned Templates. :-)

Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Aileen


Deaks

hi Aileen, this is possible, however his feature is one of the features that have been announced when smf2 is released as stable... if you can wait that long... if you cant wait ill try and work the coding for you :)
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Aileen

I see, thanks Runic Warrior :) BTW when will it be released?

Deaks

~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Fallen Angel

Doe's this mod works with SMF 1.1.4 and Dilber MC theme??


  if ($context['user']['is_logged'])
        {
if ($context['user']['today_is_birthday'])
echo '<span class="normaltext">

<SCRIPT LANGUAGE="JavaScript">

<!--Begin

datetoday = new Date();
timenow=datetoday.getTime();
datetoday.setTime(timenow);
thehour = datetoday.getHours();
if (thehour > 18) display = "Evening";
else if (thehour >12) display = "Afternoon";
else display = "Morning";
var greeting = ("Good " + display + "!");
document.write(greeting);

//  End -->

</script>

<br>Happy Birthday! <br> <b>', $context['user']['name'], '</b>, <br>have a piece of cake!<br><img src="', $settings['images_url'], '/bdaycake.gif" width="40" alt="" />';
else
echo '<span class="normaltext">
<SCRIPT LANGUAGE="JavaScript">

<!--Begin

datetoday = new Date();
timenow=datetoday.getTime();
datetoday.setTime(timenow);
thehour = datetoday.getHours();
if (thehour > 18) display = "Evening";
else if (thehour >12) display = "Afternoon";
else display = "Morning";
var greeting = ("Good " + display + "!");
document.write(greeting);

//  End -->

</script> <br> <b>', $context['user']['name'], '</b></span>';

H

It should do. Make sure the first bit of code goes into load.php, as described in the first post. You'll then need to make sure the code for index.template.php goes in the index.template.php of the diblermc theme instead of the default theme.
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             


Sarge


    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Jessikard

sorry but i´m searching for a mod like this soon

i know there is a mod  "welcome topic" and i hope someone can help me

i´m not a specialist in coding but i think if a coder could change the request to the database
like ->birthday_field instead of ->new_registration that would be perfekt

is there an way to do it ?

agbattery

I like this detailed information brout forth in these forums.  I cant wait to share some of my knowledge and coding experience.
OEM hxxp:www.accessorygenie.com/batteries-c-1.html [nonactive], hxxp:www.accessorygenie.com/battery-chargers-c-2.html [nonactive], hxxp:www.accessorygenie.com/ac-adapters-c-3.html [nonactive], hxxp:www.accessorygenie.com/memory-cards-c-4.html [nonactive], hxxp:www.accessorygenie.com/gps-c-102.html [nonactive], hxxp:www.accessorygenie.com/radar-detectors-c-103.html [nonactive], and other hxxp:www.accessorygenie.com [nonactive]

Tyrsson

@Jessikard

You may want to try posting in this board to see if someone can help you find a solution :)

SMF Coding Discussion
PM at your own risk, some I answer, if they are interesting, some I ignore.

blanix

My SMF: 1.1.9

Advertisement: