Happy Birthday in Welcome On Index

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

Happy Birthday in Welcome On Index

Post by Darkman »

Hi!

It's possible to view "Happy Birtday" in that day for each user?

Happy Birthday in Welcome On Index

Post by Stoker »

The part displayed at the bottom of the forum index?

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

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

Happy Birthday in Welcome On Index

Post by Darkman »

Many thanks :)

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:

Happy Birthday in Welcome On Index

Post by Stoker »

Thanks for the code Theriddler ;)

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, 15:21, edited 3 times in total.

Happy Birthday in Welcome On Index

Post by Darkman »

woooowww! Thank you!

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