TodaysBirthday

Started by Bulakbol, January 06, 2008, 09:28:48 PM

Previous topic - Next topic

Bulakbol

Link to Mod

Display separate Today's from Upcoming Birthdays and Today's events from Upcoming events in board index.

Changelog
January 8, 2008 -  Added German-utf8 language (Thanks Silent) 
January 13, 2008 - Added Turkish language (Thanks Hoochie Coochie Man)
January 29, 2008 - replaced Dutch language (Thanks jurdim ) 
January 30, 2008 (Thanks again Manu0372 )
- added the following language translation
- French 
- Italian   
- Hungarian
- Norwegian 
- Polish 
- Portuguese 
- Romanian
- Russian
February 9, 2008   - added German non-utf8 language (Thanks _JOjo_) 
March 2, 2008   - XHTML compliance corrected. (Thanks Hoochie Coohie Man) 
March 6, 2008  - added Spanish language. (Thanks Menu0372) 
March 9, 2008  - updated for opera browser. 
March 15, 2008  - fixed missing double qoute.   
March 19, 2008  - added version for SMF 2.0 Beta 3 Public 
April 9, 2008 - combined versions to 1 package 
August 19, 2008

  • Added Today and Upcoming Holidays
September 11, 2008
  • Updated to version 1.1
November 9, 2008
  • Updated to version 1.2. Fixed weird bug.
February 19, 2009
  • Released update for SMF version 2.0 RC1.
  • The TodaysBirthdayRC1_MCLink.zip is for those who installed "Member Color Link" by DIN.
Jun 2, 2009
- added German language - (Thanks Eclipse16V)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

shadow82x

Colin B
Former Spammer, Customize, & Support Team Member

Bulakbol

#2
I'm sorry but I'm not sure what Sleepy's mod will do. TodaysBirthday mod will separate the display of Today's Birthdays/Events from Upcoming Birthdays/Events. I posted pictures so everyone can see. Install this mod and see the difference.

<edit>  I attached a picture. </edit>
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

edi67

Quote from: shadow82x on January 06, 2008, 10:46:31 PM
Whats the difference between this and http://custom.simplemachines.org/mods/index.php?mod=892 ?

Sleepy mod work in CALENDAR layout, JohnnyB mod work in index.template in homepage and work good
thx JonnhyB

you can view in action in my site crazyzone.ws
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Bulakbol

Awww I don't look at the calendar that's why I don't know Sleepy mod's effect. Thanks edi67.  Busy site you have amigo.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Silent

Thx JohnyB, nice Mod  :)

I've made a conversation for german:


<file name="$languagedir/index.german-utf8.php">
<operation>
<search position="before"><![CDATA[$txt['calendar4'] = 'Ereignisse:';]]></search>
<add><![CDATA[
$txt['calendar4d'] = 'Heutige Ereignisse:';
$txt['calendar4a'] = 'Heutiges Ereignis:';
$txt['calendar3a'] = 'Heutiger Geburtstag:';
$txt['calendar3d'] = 'Heutige Geburtstage:';
$txt['calendar3c'] = 'Zukünftige Geburtstage:';
$txt['calendar4c'] = 'Zukünftige Ereignisse:';]]></add>
</operation>
</file>

Bulakbol

Thanks Silent. I will add it and update the file.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Eliana Tamerin

Great mod, JohnyB. One small thing, the area is showing up kinda squashed on my board index. I'll link a screenshot so you can see what I mean. I'm too lazy right now to go into the code to see if there's a class=smalltext tag or something of the kind. It just looks too small to read easily.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Bulakbol

@Silent. Thanks for the conversion. It's now added.

Thanks Eliana Tamerin.  Your text are too small.  I think you defined "smalltext" too small in your css. In your BoardIndex.template.php, look for

// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.

and above it, you can find this

<td><span class="smalltext">';

Just change to
<span style="font-size: 7pt;">';

You can change the 7 to the size that you like.




Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Kela

Russian Translation (UTF-8):


<!-- default/laguages/index.russian-utf8.php -->
<file name="$languagedir/index.russian-utf8.php">
<operation>
<search position="before"><![CDATA[$txt['calendar4'] = 'События:';]]></search>
<add><![CDATA[
$txt['calendar4d'] = 'События сегодня:';
$txt['calendar4a'] = 'Событие сегодня:';
$txt['calendar3a'] = 'Сегодня День Рождение:';
$txt['calendar3d'] = 'Сегодня Дни Рождения:';
$txt['calendar3c'] = 'Ближайшие Дни Рождения:';
$txt['calendar4c'] = 'Ближайшие события:';]]></add>
</operation>
</file>
[nofollow]

Eliana Tamerin

Ahh, ok, it's on my end then. Gotcha, will change that. Thanks again JohnyB. Great mod.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Bulakbol

Quote from: Kela on January 09, 2008, 11:12:57 AM
Russian Translation (UTF-8):


<!-- default/laguages/index.russian-utf8.php -->
<file name="$languagedir/index.russian-utf8.php">
<operation>
<search position="before"><![CDATA[$txt['calendar4'] = 'События:';]]></search>
<add><![CDATA[
$txt['calendar4d'] = 'События сегодня:';
$txt['calendar4a'] = 'Событие сегодня:';
$txt['calendar3a'] = 'Сегодня День Рождение:';
$txt['calendar3d'] = 'Сегодня Дни Рождения:';
$txt['calendar3c'] = 'Ближайшие Дни Рождения:';
$txt['calendar4c'] = 'Ближайшие события:';]]></add>
</operation>
</file>


Thanks Kela. I tried to add the conversion but I encountered a problem.  I am using Crimsom editor and it displays

<!-- default/laguages/index.russian-utf8.php -->
<file name="$languagedir/index.russian-utf8.php">
<operation>
<search position="before"><![CDATA[$txt['calendar4'] = '???????:';]]></search>
<add><![CDATA[
$txt['calendar4d'] = '??????? ???????:';
$txt['calendar4a'] = '??????? ???????:';
$txt['calendar3a'] = '??????? ???? ????????:';
$txt['calendar3d'] = '??????? ??? ????????:';
$txt['calendar3c'] = '????????? ??? ????????:';
$txt['calendar4c'] = '????????? ???????:';]]></add>
</operation>
</file>


I tried to use Wordpad and saved the file but when I load it back, it display the same question mark characters. I'll look for another text editor.

Quote from: Eliana Tamerin on January 09, 2008, 11:27:19 AM
Ahh, ok, it's on my end then. Gotcha, will change that. Thanks again JohnyB. Great mod.

Let me know it you still have problem. Thanks again for the compliment. ;)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Kela

JohnyB
Try Notepad2 [nofollow] - great, light, simple text editor
[nofollow]

elfreakz

im using other theme (outline theme), i need to edit any files? cos it didnt show the mod in my outline theme...

Mick.

Im with elfreakz .

I use a custom theme as well.  The member's name appears fine but "today's birthday" text is not shown.

Which folder or file needs to be edited?

Kela

Quote from: elfreakz on January 13, 2008, 11:02:25 AM
im using other theme (outline theme), i need to edit any files? cos it didnt show the mod in my outline theme...

You need to edit BoardIndex.template.php file.

Quote from: BlueDevil on January 13, 2008, 11:23:55 AM
I use a custom theme as well.  The member's name appears fine but "today's birthday" text is not shown.

Which folder or file needs to be edited?

What language you use? Be assure that you have modified index.your_lang.php
[nofollow]

Mick.

Thanx. It worked!

Custom themes:

Your theme---->Languages------>index.english.php

Find:
$txt['calendar3'] = 'Birthdays:';
$txt['calendar4'] = 'Events:';
$txt['calendar3b'] = 'Upcoming Birthdays:';
$txt['calendar4b'] = 'Upcoming Events:';


add below:
$txt['calendar3a'] = 'Today\'s Birthday:';
$txt['calendar3d'] = 'Today\'s Birthdays:';



Hoochie Coochie Man

Thank you JohnyB
Here is turkish language..
$txt['calendar4d'] = 'Bugünün Etkinlikleri:';
$txt['calendar4a'] = 'Bugünün Etkinliği:';
$txt['calendar3a'] = 'Bugün Doğan Üye:';
$txt['calendar3d'] = 'Bugün Doğan Üyeler:';
$txt['calendar3c'] = 'Yaklaşan Doğum Günü:';
$txt['calendar4c'] = 'Yaklaşan Etkinlik:';
İnadına SMF 1.1.X

Bulakbol

I appreciated the help Kela. Thanks. I will look for the Notepad2 so I can add Russian language.

Quote from: Hoochie Coochie Man on January 13, 2008, 06:19:27 PM
Thank you JohnyB
Here is turkish language..
$txt['calendar4d'] = 'Bugünün Etkinlikleri:';
$txt['calendar4a'] = 'Bugünün Etkinliği:';
$txt['calendar3a'] = 'Bugün Doğan Üye:';
$txt['calendar3d'] = 'Bugün Doğan Üyeler:';
$txt['calendar3c'] = 'Yaklaşan Doğum Günü:';
$txt['calendar4c'] = 'Yaklaşan Etkinlik:';


Thanks Hoochie Coochie Man. I will add it now.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Eliana Tamerin

Notepad2 is available, along with Notepad++, on tinyportal.net
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Advertisement: