Happy Birthday in Welcome On Index

Download and support for PhpBB3 Welcome On Index
User avatar
Darkman
BBCoder II
BBCoder II
Posts: 23
Joined: 20 Mar 2010, 23:53

Happy Birthday in Welcome On Index

Post by Darkman »

Hi!

It's possible to view "Happy Birtday" in that day for each user?
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Happy Birthday in Welcome On Index

Post by Stoker »

The part displayed at the bottom of the forum index?
Board rules! No PM support
User avatar
Darkman
BBCoder II
BBCoder II
Posts: 23
Joined: 20 Mar 2010, 23:53

Happy Birthday in Welcome On Index

Post by Darkman »

Instead of "Good Morning" or "Good Afternoon", I would like HAPPY BIRTHDAY whem that day is user's birthday.

It's possible? It would be very nice
User avatar
Terr0r
BBCoder V
BBCoder V
Posts: 339
Joined: 04 May 2011, 00:47
BBCodes: 100
Location: The Netherlands
Contact:

Happy Birthday in Welcome On Index

Post by Terr0r »

Yes that is possible I will take a look for you how it is possible tomake it okay

in this week I will set it here on the site

if there someone that can you explane it faster then me he will tell you how to do

Greets Terr0r
If you can't fix it with ducktape you ain't using enough
For my MODS and BBCodes or other things that I have made take a look here
User avatar
Darkman
BBCoder II
BBCoder II
Posts: 23
Joined: 20 Mar 2010, 23:53

Happy Birthday in Welcome On Index

Post by Darkman »

Many thanks :)
User avatar
Theriddler
BBCoder II
BBCoder II
Posts: 18
Joined: 27 Oct 2011, 01:24
BBCodes: 4
Location: The Netherlands

Happy Birthday in Welcome On Index

Post by Theriddler »

Hi stoker,

You've got a great site, and the welcome on index mod is a wonderfull idea

for the birthday of a user i used this, but maybe someone will come with something better

Template/index_body.html
Find:

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST --><br /><br />{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<!-- ENDIF --></span>
Add these lines on a new blank line after the preceding line(s) to find:

Code: Select all

<!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST -->
				<p><!-- IF BIRTHDAY_LIST --><dd class="lastpost" style="padding:5px; width:100%; text-align: center; border:none;"><span><img src="{T_THEME_PATH}/images/icon_birthday.gif" /><br /><strong>{BIRTHDAY_LIST}</strong> {L_WELCOME_BDAY}</p><!-- ENDIF --><!-- ENDIF --></span>
				</dd>
Language/en/common.php
Find:

Code: Select all

'WELCOME_TO_MOD'			=> 'Welcome to',
Add these lines on a new blank line after the preceding line(s) to find:

Code: Select all

'WELCOME_BDAY'				=> 'Have a nice birthday today',
place below image in styles/theme/images
icon_birthday.gif
refresh template and purge cache. :thumb:
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Happy Birthday in Welcome On Index

Post by Stoker »

Thanks for the code Theriddler ;)
Board rules! No PM support
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Happy Birthday in Welcome On Index

Post by martin123456 »

And the result is
birthday.png
and no im not 82 :D
birth.png
Last edited by martin123456 on 27 Oct 2011, 17:21, edited 3 times in total.
User avatar
Darkman
BBCoder II
BBCoder II
Posts: 23
Joined: 20 Mar 2010, 23:53

Happy Birthday in Welcome On Index

Post by Darkman »

woooowww! Thank you!
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Happy Birthday in Welcome On Index

Post by martin123456 »

Pics added to show the resultes

It's best to keep the birthday message as short as pos as it also shows for guests so if you have a large board and 50 members have a birthday it will show 50 names and 50 messages ;)
guest.png
Locked