Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Bulakbol on January 06, 2008, 09:28:48 PM

Title: TodaysBirthday
Post by: Bulakbol on January 06, 2008, 09:28:48 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1047)

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
September 11, 2008
November 9, 2008
February 19, 2009 Jun 2, 2009
- added German language - (Thanks Eclipse16V)
Title: Re: TodaysBirthday
Post by: shadow82x on January 06, 2008, 10:46:31 PM
Whats the difference between this and http://custom.simplemachines.org/mods/index.php?mod=892 ?
Title: Re: TodaysBirthday
Post by: Bulakbol on January 07, 2008, 03:12:21 AM
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>
Title: Re: TodaysBirthday
Post by: edi67 on January 08, 2008, 06:52:45 AM
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
Title: Re: TodaysBirthday
Post by: Bulakbol on January 08, 2008, 01:22:25 PM
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.
Title: Re: TodaysBirthday
Post by: Silent on January 08, 2008, 02:20:40 PM
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>
Title: Re: TodaysBirthday
Post by: Bulakbol on January 08, 2008, 02:55:11 PM
Thanks Silent. I will add it and update the file.
Title: Re: TodaysBirthday
Post by: Eliana Tamerin on January 08, 2008, 11:57:46 PM
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.
Title: Re: TodaysBirthday
Post by: Bulakbol on January 09, 2008, 04:28:44 AM
@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.




Title: Re: TodaysBirthday
Post by: 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>
Title: Re: TodaysBirthday
Post by: 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.
Title: Re: TodaysBirthday
Post by: Bulakbol on January 09, 2008, 08:46:10 PM
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. ;)
Title: Re: TodaysBirthday
Post by: Kela on January 13, 2008, 03:49:19 AM
JohnyB
Try Notepad2 (http://www.flos-freeware.ch/) - great, light, simple text editor
Title: Re: TodaysBirthday
Post by: 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...
Title: Re: TodaysBirthday
Post by: Mick. on January 13, 2008, 11:23:55 AM
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?
Title: Re: TodaysBirthday
Post by: Kela on January 13, 2008, 11:45:21 AM
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
Title: Re: TodaysBirthday
Post by: Mick. on January 13, 2008, 12:20:32 PM
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:';


Title: Re: TodaysBirthday
Post by: 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:';
Title: Re: TodaysBirthday
Post by: Bulakbol on January 13, 2008, 06:48:45 PM
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.
Title: Re: TodaysBirthday
Post by: Eliana Tamerin on January 13, 2008, 06:59:01 PM
Notepad2 is available, along with Notepad++, on tinyportal.net
Title: Re: TodaysBirthday
Post by: Bulakbol on January 13, 2008, 07:07:36 PM
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...

Read the install.xml under BoardIndex.template.php. When it says:

<search position="replace"><![CDATA[.....]]></search>

search the codes in between the opening square bracket ([) and the closing square bracket (]) where I placed the five dots (.....) and when it says:

<add><![CDATA[.....]]></add>

replace it with whatever codes are in the square brackets where the five dots are.


Title: Re: TodaysBirthday
Post by: Bulakbol on January 13, 2008, 07:09:20 PM
Quote from: Eliana Tamerin on January 13, 2008, 06:59:01 PM
Notepad2 is available, along with Notepad++, on tinyportal.net

Thanks for the info Eliana. I will download it now.
Title: Re: TodaysBirthday
Post by: Bulakbol on January 13, 2008, 07:23:39 PM
Quote from: Kela on January 13, 2008, 03:49:19 AM
JohnyB
Try Notepad2 (http://www.flos-freeware.ch/) - great, light, simple text editor

I downloaded and unzipped the Notepad2 file Kela but still no joy. It won't save the Russian characters properly. I'll try Notepad++ later.

<edit>
I also downloaded the notepad++ but still won't recognize the Russian characters. I just added the Turkish language and updated the TodaysBirthday today until I find a way to add the Russian language.
</edit>
Title: Re: TodaysBirthday
Post by: geezmo on January 20, 2008, 01:27:00 PM
The link (http://custom.simplemachines.org/mods/index.php?mod=1047) to the mod page says:

There are no files to download at this time

???
Title: Re: TodaysBirthday
Post by: Hoochie Coochie Man on January 20, 2008, 01:33:54 PM
Attached..
Title: Re: TodaysBirthday
Post by: Mick. on January 20, 2008, 01:34:36 PM
That because SMF had downtime couple days ago and some links are dead since.
Title: Re: TodaysBirthday
Post by: Manu.G on January 21, 2008, 04:41:59 AM
Here are some translations for the mod. ;)

Dutch:
QuoteToday's Events: Evenementen van vandaag
Today's Event: Evenement van vandaag
Today's Birthday: Verjaardagen van vandaag
Today's Birthdays: Verjaardag van vandaag
Upcoming Birthday: Komende verjaardag
Upcoming Event: Komend evenement

Romanian:
QuoteToday's Events=Evenimentele zilei
Today's Event=Evenimentul zilei
Today's Birthday=Aniversarea zilei
Today's Birthdays=Aniversarile zilei
Upcoming Birthday=Urmatoarea aniversare
Upcoming Event=Urmatorul eveniment

Norwegian:
QuoteToday's Events: hendelser i dag
Today's Event: hendelse i dag
Today's Birthday: bursdag i dag
Today's Birthdays: bursdager i dag
Upcoming Birthday: kommende bursdag
Upcoming Event: kommende hendelse

French:
QuoteToday's Events: événements actuels
Today's Event: événement actuel
Today's Birthday: anniversaire actuel
Today's Birthdays: anniversaires actuels
Upcoming Birthday: prochain anniversaire
Upcoming Event: prochain événement

Italian:
QuoteToday's Events: eventi odierni
Today's Event: evento odierno
Today's Birthday: compleanno odierno
Today's Birthdays: compleanni odierni
Upcoming Birthday: prossimo compleanno
Upcoming Event: prossimo evento

Portuguese:
Quotetoday,s events:  eventos de hoje       
today,s event: evento de hoje                           
today,s birthday: aniversario de hoje
today,s birhdays: aniversarios de hoje
upcoming birthday: proximo aniversario
upcoming event: proximo evento

Our forum is international and the members there are helping with the translations. ;)
Title: Re: TodaysBirthday
Post by: Bulakbol on January 21, 2008, 11:28:29 AM
Thank Manu0372. I will add them now and update the file.
Title: Re: TodaysBirthday
Post by: Bulakbol on January 21, 2008, 11:43:43 AM
Quote from: Hoochie Coochie Man on January 20, 2008, 01:33:54 PM
Attached..

Thanks Hoochie Coohie Man. I reuploaded the mod and the upload seems to work now.
Title: Re: TodaysBirthday
Post by: texasflats on January 25, 2008, 05:19:49 PM
Installed flawlessly, thanks JohnnyB.
Title: Re: TodaysBirthday
Post by: Bulakbol on January 25, 2008, 05:29:24 PM
You're welcome Texasflat.  8)
Title: Re: TodaysBirthday
Post by: jurdim on January 29, 2008, 04:18:52 PM
The Dutch translation is no good i just tryed to install TodaysBirthday and it test installed ok
After installation i cant get in to my forum the file index.dutch.php has a wrong syntax  i forgot to save the error message.
But i think all the last tranlations by Manu wil give this error
I manually uploaded my old index.dutch.php and got in to my forum again and was able to uninstall

I think you should check the translations
It only adsthese lines to my index.dutch.php
Quote
Today's Events: Evenementen van vandaag
Today's Event: Evenement van vandaag
Today's Birthday: Verjaardagen van vandaag
Today's Birthdays: Verjaardag van vandaag
Upcoming Birthday: Komende verjaardag
Upcoming Event: Komend evenement

Should this not look something more like this:
<!-- default/laguages/index.dutch.php -->
   <file name="$languagedir/index.dutch.php">
      <operation>
         <search position="before"><![CDATA[$txt['calendar4'= 'gebeurtenissen:';]]></search>
         <add><![CDATA[
$txt['calendar4d'] = 'Evenementen van vandaag:';         
$txt['calendar4a'] = 'Evenement van vandaag:';
$txt['calendar3a'] = 'Verjaardagen van vandaag:';
$txt['calendar3d'] = 'Verjaardag van vandaag:';
$txt['calendar3c'] = 'Komende verjaardag:';
$txt['calendar4c'] = Komend evenement:';]]></add>
      </operation>
   </file>
But dont use this i know nothing about scripting i am just guesing what could be wrong
Gr Jurgen
Title: Re: TodaysBirthday
Post by: Bulakbol on January 29, 2008, 05:54:11 PM
Hi jurdim. I thank you for letting me know of the problem. Yes, you are correct.  It should look like this.

<!-- default/laguages/index.dutch.php -->
   <file name="$languagedir/index.dutch.php" error="skip">
      <operation>
         <search position="before"><![CDATA[$txt['calendar4'= 'gebeurtenissen:';]]></search>
         <add><![CDATA[
$txt['calendar4d'] = 'Evenementen van vandaag:';         
$txt['calendar4a'] = 'Evenement van vandaag:';
$txt['calendar3a'] = 'Verjaardagen van vandaag:';
$txt['calendar3d'] = 'Verjaardag van vandaag:';
$txt['calendar3c'] = 'Komende verjaardag:';
$txt['calendar4c'] = Komend evenement:';]]></add>
      </operation>
   </file>


with the error="skip" in case they don't use that language. I am replacing the Dutch language translation to yours.

If people have problem with the other language translations, please post it here.
I thank you.
Title: Re: TodaysBirthday
Post by: Eliana Tamerin on January 29, 2008, 06:24:59 PM
You forgot the preceeding quote mark on this line:

$txt['calendar4c'] = Komend evenement:';]]></add>

It should be:

$txt['calendar4c'] = 'Komend evenement:';]]></add>
Title: Re: TodaysBirthday
Post by: Bulakbol on January 29, 2008, 06:31:52 PM
Thanks Eliana. You have an eagle eye. I just copied what was given to me. I'm careless. Updating it now. ;)


I noticed that the laguange translation given my Manu0372 were incomplete. So I removed them from the mod until languages are properly translated.
Title: Re: TodaysBirthday
Post by: Manu.G on January 30, 2008, 02:57:19 AM
I'm sorry, I didn't know I have to copy the complete code.  :-\
I will correct my mistake and copy now the codes I have in the language index.php.

French:
$txt['calendar4d'] = '&Eacute;v&eacute;nement actuel';
$txt['calendar4a'] = '&Eacute;v&eacute;nement actuel:';
$txt['calendar3a'] = 'Anniversaire actuel:';
$txt['calendar3d'] = 'Anniversaires actuels:';
$txt['calendar3c'] = 'Prochain anniversaire:';
$txt['calendar4c'] = 'Prochain &eacute;v&eacute;nement:';


Italian:
$txt['calendar4d'] = 'Eventi odierni:';
$txt['calendar4a'] = 'Evento odierno:';
$txt['calendar3a'] = 'Compleanno odierno:';
$txt['calendar3d'] = 'Compleanni odierni:';
$txt['calendar3c'] = 'Prossimo compleanno:';
$txt['calendar4c'] = 'Prossimo evento:';


Hungarian:

$txt['calendar4d'] = 'Mai esem&eacute;nyek:';
$txt['calendar4a'] = 'Mai esem&eacute;ny:';
$txt['calendar3a'] = 'Sz&uuml;let&eacute;snap ma:';
$txt['calendar3d'] = 'Sz&uuml;let&eacute;snapok ma:';
$txt['calendar3c'] = 'K&ouml;zelg&#337; sz&uuml;let&eacute;snap:';
$txt['calendar4c'] = 'K&ouml;zelg&#337; esem&eacute;ny:';


Norwegian:

$txt['calendar4d'] = 'Hendelser i dag:';
$txt['calendar4a'] = 'Hendelse i dag:';
$txt['calendar3a'] = 'Bursdag i dag:';
$txt['calendar3d'] = 'Bursdager i dag:';
$txt['calendar3c'] = 'Kommende bursdag:';
$txt['calendar4c'] = 'Kommende hendelse:';


Polish:

$txt['calendar4d'] = 'Dzisiejsze wydarzenia:';
$txt['calendar4a'] = 'Dzisiejsze wydarzenie:';
$txt['calendar3a'] = 'Dzisiejsze urodziny:';
$txt['calendar3d'] = 'Dzisiejsze urodziny:';
$txt['calendar3c'] = 'Nadchodz&#261;ce urodziny:';
$txt['calendar4c'] = 'Nadchodz&#261;ce wydarzenie:';


Portuguese:

$txt['calendar4d'] = 'Eventos de hoje:';
$txt['calendar4a'] = 'Evento de hoje:';
$txt['calendar3a'] = 'Aniversario de hoje:';
$txt['calendar3d'] = 'Aniversarios de hoje:';
$txt['calendar3c'] = 'Proximo aniversario:';
$txt['calendar4c'] = 'Proximo evento';


Romanian:

$txt['calendar4d'] = 'Evenimentele zilei:';
$txt['calendar4a'] = 'Evenimentul zilei:';
$txt['calendar3a'] = 'Aniversarea zilei:';
$txt['calendar3d'] = 'Aniversarile zilei:';
$txt['calendar3c'] = 'Urmatoarea aniversare:';
$txt['calendar4c'] = 'Urmatorul eveniment:';


Russian:

$txt['calendar4d'] = 'Ñåãîäíÿøíèå ñîáûòèÿ:';
$txt['calendar4a'] = 'Ñåãîäíÿøíåå ñîáûòèå:';
$txt['calendar3a'] = 'Ñåãîäíÿøíèé äåíü ðîæäåíèÿ:';
$txt['calendar3d'] = 'Ñåãîäíÿøíèå äíè ðîæäåíèÿ:';
$txt['calendar3c'] = 'Ïðåäñòîÿùèå äíè ðîæäåíèÿ:';
$txt['calendar4c'] = 'Ïðåäñòîÿùèå ñîáûòèÿ:';


I hope this time I did it correct. These codes are working and don't causing any errors.
Title: Re: TodaysBirthday
Post by: Bulakbol on January 30, 2008, 04:05:01 AM
Thanks again Manu0372. I was expecting complete language translation that's why I just copied and pasted the first one that you posted. The last translations you posted are all added again and hopefully, they are all ok this time.
Title: Re: TodaysBirthday
Post by: Manu.G on January 30, 2008, 04:40:52 AM
I hope too everything is ok, but as I wrote, I copied the codes out of my languages.php and I checked the error logs. I haven't got any error messages.
Title: Re: TodaysBirthday
Post by: jurdim on January 30, 2008, 01:39:17 PM
I am stil having problems installing with the index.dutch.php the test install fails so i looked at the code again that says ;

<!-- default/laguages/index.dutch.php -->
   <file name="$languagedir/index.dutch.php" error="skip">
      <operation>
         <search position="before"><![CDATA[$txt['calendar4'= 'gebeurtenissen:';]]></search>
         <add><![CDATA[

The red coulered before says end in some other languages is this wrong here ? and could this be the cause of the failing test install while al other files pas the test ?
Gr Jurgen
Title: Re: TodaysBirthday
Post by: Bulakbol on January 30, 2008, 01:56:32 PM
Quote from: jurdim on January 30, 2008, 01:39:17 PM
I am stil having problems installing with the index.dutch.php the test install fails so i looked at the code again that says ;

<!-- default/laguages/index.dutch.php -->
   <file name="$languagedir/index.dutch.php" error="skip">
      <operation>
         <search position="before"><![CDATA[$txt['calendar4'= 'gebeurtenissen:';]]></search>
         <add><![CDATA[

The red coulered before says end in some other languages is this wrong here ? and could this be the cause of the failing test install while al other files pas the test ?
Gr Jurgen

Check your index.dutch.php for the line  $txt['calendar4'= 'gebeurtenissen:'; if it exist. It could be the spelling too that has a mistake.  The "before" is correct. You can remove that line and change it to "end" like the other languages if you want. That will eliminate the error.

Ok, I'll change the line to "end" and update the file. Thanks for letting me know.

<EDIT> File updated. </EDIT>
Title: Re: TodaysBirthday
Post by: jurdim on January 30, 2008, 02:18:55 PM
I took a look at my index.dutch.php
Line 421 in it says: $txt['calendar4'] = 'Gebeurtenissen:';

The translation in Birthday says: $txt['calendar4'= 'gebeurtenissen:';

The difference is the use of Capital G in the existing file and the g in the Birthday File

Does this fail the install? and if i change this in my exsisting index.dutch.php does it affect anything ?
Gr Jurgen
Title: Re: TodaysBirthday
Post by: Bulakbol on January 30, 2008, 02:24:06 PM
Quote from: jurdim on January 30, 2008, 02:18:55 PM
I took a look at my index.dutch.php
Line 421 in it says: $txt['calendar4'] = 'Gebeurtenissen:';

The translation in Birthday says: $txt['calendar4'= 'gebeurtenissen:';

The difference is the use of Capital G in the existing file and the g in the Birthday File

Does this fail the install? and if i change this in my exsisting index.dutch.php does it affect anything ?
Gr Jurgen

No, it won't affect anything. You can change it but as I said, you can change it too to "end" and still yield the same result.  Check the spelling of the filename too. It might be index.Dutch.php instead of index.dutch.php. Download the new file and use that instead. Try it.
Title: Re: TodaysBirthday
Post by: jurdim on January 30, 2008, 02:39:51 PM
 :) Thanks for your quick responce. The Problem was the capital G in my index.dutch.php i changed it to a normal g downloaded Birthday again and it installed perfectl

But i think you should change your file once more because everyone that uses the dutch language wil get this error because the original index.dutch.php uses the capital G

:( Sorry for making this trouble but as i said in my first post i really know nothing about scripting

Gr Jurgen
Title: Re: TodaysBirthday
Post by: Bulakbol on January 30, 2008, 02:49:39 PM
No problem buddy. I should be the one to thank you. I will update it now as you suggested.

<edit> It is already changed to "end" to avoid more errors. I'll leave it that way now. :) </edit>
Title: Re: TodaysBirthday
Post by: jurdim on January 30, 2008, 03:56:28 PM
On last remark i just downloaded the latest update en now this line is completely gone in al lot of translated files:
<![CDATA[$txt['calendar4'] = 'Gebeurtenissen:';]]

Or does the "end"setting make this line not needed

Gr Jurgen

Title: Re: TodaysBirthday
Post by: Bulakbol on January 30, 2008, 04:05:15 PM
Quote from: jurdim on January 30, 2008, 03:56:28 PM
On last remark i just downloaded the latest update en now this line is completely gone in al lot of translated files:
<![CDATA[$txt['calendar4'] = 'Gebeurtenissen:';]]

Or does the "end"setting make this line not needed

Gr Jurgen


The "end" will check the  ?> php tag at the very end of the file so the <![CDATA[$txt['calendar4'] = 'Gebeurtenissen:';]] is not needed anymore. The only problem is that when you install another mod, it will block the uninstallation of this mod because of the ?> tag.
Title: Re: TodaysBirthday
Post by: jurdim on January 30, 2008, 04:18:17 PM
Ok Wel i just changed the Capital G back and everything works fine .
Thanks for your support
Gr Jurgen
Title: Re: TodaysBirthday
Post by: Bulakbol on January 30, 2008, 04:22:02 PM
You're welcome. Thank you too for the info.
Title: Re: TodaysBirthday
Post by: Webstar on February 11, 2008, 08:56:49 AM
I got a problem, see picture
Title: Re: TodaysBirthday
Post by: Eliana Tamerin on February 11, 2008, 02:19:18 PM
I'd recommend checking your language files. Open up your index.english.php and copy its contents to index.english-utf8.php or just copy the code below in:

$txt['calendar4d'] = 'Today\'s Events:';
$txt['calendar4a'] = 'Today\'s Event:';
$txt['calendar3a'] = 'Today\'s Birthday:';
$txt['calendar3d'] = 'Today\'s Birthdays:';
$txt['calendar3c'] = 'Upcoming Birthday:';
$txt['calendar4c'] = 'Upcoming Event:';


See if that works.
Title: Re: TodaysBirthday
Post by: Bulakbol on February 11, 2008, 07:52:32 PM
Quote from: Webstar on February 11, 2008, 08:56:49 AM
I got a problem, see picture

Attach your BoardIndex.template.php if you cannot figure out yourself. I'll take a look at it.
Title: Re: TodaysBirthday
Post by: gemigene on February 13, 2008, 11:57:56 PM
Downloaded it and "fed it" to the SMF  Package Parser to see which files would be affected and how and this is what I got:

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 206: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xFC 0x6E 0xFC 0x6E in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: $txt['calendar4d'] = 'Bug�n�n Etkinlikleri:'; in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 353: parser error : Comment not terminated <!-- default/languages/index.english.php in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: <!-- default/languages/index.english.php -- in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /home/sleepy1/public_html/PackageParser/index.php on line 472

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/sleepy1/public_html/PackageParser/index.php:472 Stack trace: #0 /home/sleepy1/public_html/PackageParser/index.php(472): SimpleXMLElement->__construct('<?xml version="...') #1 /home/sleepy1/public_html/PackageParser/index.php(441): parseModificationXML('/home/sleepy1/b...', Object(SimpleXMLElement), 'all') #2 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'all') #3 /home/sleepy1/public_html/PackageParser/index.php(782): parseArchive('/tmp/phpGECo6p', 'install', 'all') #4 {main} thrown in /home/sleepy1/public_html/PackageParser/index.php on line 472


Gene
Title: Re: TodaysBirthday
Post by: Bulakbol on February 14, 2008, 01:10:10 AM
Hi gemigene. Those are the language text files. I am not sure either the parser support them or there's problem with the laguage string files. You should ignore them if you aren't installing the language text files other than english.
Title: Re: TodaysBirthday
Post by: gemigene on February 14, 2008, 04:35:14 PM
Quote from: JohnyB on February 14, 2008, 01:10:10 AM
Hi gemigene. Those are the language text files. I am not sure either the parser support them or there's problem with the laguage string files. You should ignore them if you aren't installing the language text files other than english.

All right, thanks.

Think I'll give it a try.

Gene
Title: Re: TodaysBirthday
Post by: Bulakbol on February 17, 2008, 08:14:55 AM
Quote from: gemigene on February 14, 2008, 04:35:14 PM
Quote from: JohnyB on February 14, 2008, 01:10:10 AM
Hi gemigene. Those are the language text files. I am not sure either the parser support them or there's problem with the laguage string files. You should ignore them if you aren't installing the language text files other than english.

All right, thanks.

Think I'll give it a try.

Gene


Just post here if you still encounter errors.
Title: Re: TodaysBirthday
Post by: RoarinRow on February 19, 2008, 12:19:18 AM
Thanks for the mod, now I just have to wait for someone's birthday, which I think will be tomorrow.   8)
Title: Re: TodaysBirthday
Post by: Bulakbol on February 19, 2008, 08:10:17 AM
Quote from: RoarinRow on February 19, 2008, 12:19:18 AM
Thanks for the mod, now I just have to wait for someone's birthday, which I think will be tomorrow.   8)

Haha if you want to try it, change your birthdate to today or tomorrow.  ;)
Title: Re: TodaysBirthday
Post by: RoarinRow on February 19, 2008, 09:47:19 AM
Quote from: JohnyB on February 19, 2008, 08:10:17 AM
Quote from: RoarinRow on February 19, 2008, 12:19:18 AM
Thanks for the mod, now I just have to wait for someone's birthday, which I think will be tomorrow.   8)

Haha if you want to try it, change your birthdate to today or tomorrow.  ;)

Yup, it worked!   8)
Title: Re: TodaysBirthday
Post by: Bulakbol on February 20, 2008, 09:42:16 AM
I know it will RoarinRow  ;) Thanks for trying my mod.
Title: Re: TodaysBirthday
Post by: senyorito on February 21, 2008, 02:55:42 AM
Hi JohnnyB!  Once again, another great mod of yours. *clap*clap*clap*

If you don't mind, I wanna ask a favor.  I know it's kinda off-topic but I'll just wanna know if this can be possible to a TP block.  Any script JohnnyB?

Anyways, I just want you to know that you are in my book JohnnyB!

Thanks in advanced!
Title: Re: TodaysBirthday
Post by: Bulakbol on February 21, 2008, 04:58:37 AM
Hello Senyorito. (bow) I thank you.

This mod will edit/modify your Sources/BoardIndex.php and default/BoardIndex.template.php. It should work with TP. If you have problem after the installation, attach the file in question here and I'll see what I can do.  Thanks for the compliment bud.
Title: Re: TodaysBirthday
Post by: senyorito on February 21, 2008, 08:27:29 AM
No, I have not encountered any problem bro JohnyB.  I didn't also mean that it made conflict with TP.  What I'm asking is, if you can make or release a php script for this TodaysBirthday to be used in TP's block.

To make you more understand bro, we knew that TP has this block under SSI function -- Todays calendar which shows the attached image.  Is it possible for you to make a script for TP's scriptbox separating TodaysBirthday from the upcoming birthday?
Title: Re: TodaysBirthday
Post by: Basie on February 21, 2008, 10:32:21 AM
I'm using this mod and it works great, thanks. :)

I'd actually like to see this as standard, as some of my members get mixed up about when peoples birthdays are and end up posting birthday threds long before a persons birthday.
Title: Re: TodaysBirthday
Post by: Bulakbol on February 22, 2008, 02:07:55 AM
Quote from: senyorito on February 21, 2008, 08:27:29 AM
No, I have not encountered any problem bro JohnyB.  I didn't also mean that it made conflict with TP.  What I'm asking is, if you can make or release a php script for this TodaysBirthday to be used in TP's block.

To make you more understand bro, we knew that TP has this block under SSI function -- Todays calendar which shows the attached image.  Is it possible for you to make a script for TP's scriptbox separating TodaysBirthday from the upcoming birthday?

Hi bud. I am not using TP but if you want me to take a shot, I'll try. Send me the file that display the birthdays and I'll take a look at it.  PM me and give me your email addy. I'll see what I can do.
Title: Re: TodaysBirthday
Post by: Bulakbol on February 22, 2008, 02:10:36 AM
Quote from: seek2501 on February 21, 2008, 10:32:21 AM
I'm using this mod and it works great, thanks. :)

I'd actually like to see this as standard, as some of my members get mixed up about when peoples birthdays are and end up posting birthday threds long before a persons birthday.

Hi seek2501. Thanks for trying my mod.  ;) Yes, you are correct. My members are also confused. Now they can't complain about it. You are welcome and thank you for the compliment.
Title: Re: TodaysBirthday
Post by: senyorito on February 22, 2008, 07:42:29 AM
Quote from: JohnyB on February 22, 2008, 02:07:55 AM
Quote from: senyorito on February 21, 2008, 08:27:29 AM
No, I have not encountered any problem bro JohnyB.  I didn't also mean that it made conflict with TP.  What I'm asking is, if you can make or release a php script for this TodaysBirthday to be used in TP's block.

To make you more understand bro, we knew that TP has this block under SSI function -- Todays calendar which shows the attached image.  Is it possible for you to make a script for TP's scriptbox separating TodaysBirthday from the upcoming birthday?

Hi bud. I am not using TP but if you want me to take a shot, I'll try. Send me the file that display the birthdays and I'll take a look at it.  PM me and give me your email addy. I'll see what I can do.

Ok bro, I'll send you a PM.
Title: Re: TodaysBirthday
Post by: Bulakbol on February 22, 2008, 01:22:13 PM
I got it bro. Thanks.
Title: Re: TodaysBirthday
Post by: senyorito on February 22, 2008, 03:00:20 PM
Good that you have it.  Good luck bro!
Title: Re: TodaysBirthday
Post by: Bulakbol on February 23, 2008, 02:09:25 PM
Quote from: senyorito on February 22, 2008, 03:00:20 PM
Good that you have it.  Good luck bro!

Hi senyorito. I attached a hard coded TodaysBirthday for your TP. Install it via package manager but before you do that, make a backup of your Sources/TPortal.php and default/TPortalBlocks.template.php. In case something goes haywire. Let me know how it goes.
Title: Re: TodaysBirthday
Post by: senyorito on February 23, 2008, 04:21:45 PM
Bro, you're the man!  Thank you very much and I really appreciate the effort.

I'd installed it the usual way without any problem.  Seems everything is doing fine except for some minor bugs that I'd noticed.

The color of the block title bar.

Looking at my screenshot, the title bar color must be Orange.  Though in your screenshot, you'd done it right.  Hmmm, hope that you can fix this bug bro.

Home > Right Portal Block

I have 2 consecutive Upcoming Calendar blocks.

I also have another favor bro if you don't mind, I think it could be much better if you can make it a collapsible block. 

Well, everything is so cool bro!

Thanks again.
Title: Re: TodaysBirthday
Post by: Bulakbol on February 23, 2008, 05:58:30 PM
Ok bro. It's my first TP attemp so be patient.  :P Here's another copy. Uninstall the first one before installing this one. Backup the following files first.

Sources/TPortalAdmin.php
Sources/TPortal.php
default/TPortalBlocks.template.php
default/TPortalAdmin.template.php

Edit blocks
- use frame from theme
- allow block to collapse

Type: todays birthday


<edit> Attachment deleted. </edit>
Title: Re: TodaysBirthday
Post by: senyorito on February 24, 2008, 12:52:56 AM
^ Perfect!!!

Everything is fine now.  Today's Birthday mod for TP added as one of the block's type option.  Can choose frame from theme and can choose the option to allow block to collapse.

I'm just wondering on my forum index's Upcoming Calendar, upcoming birthdays also show the date of the birthday just like in TodaysBirthday Mod for TP.  Considering that it didn't modify any other templates except for TPs templates.  Hmmmm... heheh.

Anyways, first attempt was not bad but with this release, it fixes the previous reported bug issues. 

Well done and thank you bro JohnyB!
Title: Re: TodaysBirthday
Post by: Bulakbol on February 24, 2008, 12:50:00 PM
The mod is hardcoded for you. No language strings. You are welcome @senyorito. Glad I did my first block for TP haha.

I'm not too familiar with TP so I don't know why it added the date. 

Title: Re: TodaysBirthday
Post by: Sabre™ on February 24, 2008, 08:40:18 PM
Thanks JohnyB.

Works perfect :)
Title: Re: TodaysBirthday
Post by: Bulakbol on February 25, 2008, 12:53:41 AM
Quote from: Sabre™ on February 24, 2008, 08:40:18 PM
Thanks JohnyB.

Works perfect :)

Thanks a lot Sabre for trying this mod.  ;)
Title: Re: TodaysBirthday
Post by: Hoochie Coochie Man on March 02, 2008, 06:07:37 PM
Hi JohnyB,
There are two XHTML errors in that modification. Can you fix them?

QuoteResult: 2 errors / 0 warnings

line 323 column 67 - Error: document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
line 325 column 207 - Error: end tag for "span" omitted, but OMITTAG NO was specified
line 325 column 11 - Info: start tag was here
Title: Re: TodaysBirthday
Post by: Bulakbol on March 02, 2008, 06:16:24 PM
Can you elaborate a little bit more Hoochie? Paste the lines that are not XTML compliant and what files they are in? Thanks.
Title: Re: TodaysBirthday
Post by: Hoochie Coochie Man on March 02, 2008, 06:41:25 PM
TodaysBirthday Mod's codes are creates XHTML errors..
Here are the details




Title: Re: TodaysBirthday
Post by: Bulakbol on March 02, 2008, 06:44:14 PM
That doesn't mean the errors are from the mod. Uninstall the mod and re-check it again. I will check it too and let you know what comes up.
Title: Re: TodaysBirthday
Post by: Hoochie Coochie Man on March 02, 2008, 06:48:13 PM
The errors are form the mod bro..!
I installed it a new SM forum (without XHTML errors)
Than the mod creates 2 XHTML errors..
Check the lines, Don't you see?
The mod's codes creates the errors :)
Title: Re: TodaysBirthday
Post by: Bulakbol on March 02, 2008, 06:51:35 PM
Ok amigo, I'll check the mod and make the neccessary correction. Thanks for the info.
Title: Re: TodaysBirthday
Post by: Hoochie Coochie Man on March 02, 2008, 06:54:01 PM
Thank you.. Did you upload the new package?
Title: Re: TodaysBirthday
Post by: Bulakbol on March 02, 2008, 06:58:04 PM
No, not yet. I am still on the process of troubleshooting. I didn't find the line yet but if you can help me, I will be grateful.


<EDIT>
  I think I found the XTML non-compliant line. I will upload the corrected one after making the correction.
</EDIT>
Title: Re: TodaysBirthday
Post by: Bulakbol on March 02, 2008, 09:22:48 PM
This mod is updated and is now valid XHTML 1.0 Transitional. Thanks Hoochie Coochie Man.
Title: Re: TodaysBirthday
Post by: weightman on March 02, 2008, 09:40:24 PM
Thanks but the install package seems to have a problem as this is what the package parsers give me:

QuoteInstall Todays Birthday mod.

Modifications to SMF files

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 210: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xFC 0x6E 0xFC 0x6E in C:\Inetpub\wwwroot\smfhacks\packageparser\package.php on line 450

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: $txt['calendar4d'] = 'Bug�n�n Etkinlikleri:'; in C:\Inetpub\wwwroot\smfhacks\packageparser\package.php on line 450

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in C:\Inetpub\wwwroot\smfhacks\packageparser\package.php on line 450

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 357: parser error : Comment not terminated <!-- default/languages/index.english.php in C:\Inetpub\wwwroot\smfhacks\packageparser\package.php on line 450

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: <!-- default/languages/index.english.php -- in C:\Inetpub\wwwroot\smfhacks\packageparser\package.php on line 450

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in C:\Inetpub\wwwroot\smfhacks\packageparser\package.php on line 450

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in C:\Inetpub\wwwroot\smfhacks\packageparser\package.php:450 Stack trace: #0 C:\Inetpub\wwwroot\smfhacks\packageparser\package.php(450): SimpleXMLElement->__construct('<?xml version="...') #1 C:\Inetpub\wwwroot\smfhacks\packageparser\package.php(419): parseModificationXML('/tmp//install.x...', Object(SimpleXMLElement), 'all') #2 C:\Inetpub\wwwroot\smfhacks\packageparser\package.php(94): parsePackageInfoXML('/tmp//package-i...', 'install', 'all') #3 C:\Inetpub\wwwroot\smfhacks\packageparser\package.php(772): parseArchive() #4 {main} thrown in C:\Inetpub\wwwroot\smfhacks\packageparser\package.php on line 450
Title: Re: TodaysBirthday
Post by: Bulakbol on March 02, 2008, 09:46:59 PM
Hi Weightman. The package parser have problem parsing the alternate characters in the additional laguage string. There will be no problem if you use the package manager. You can edit the mod package and remove the additional language translations leaving only english if you want.
Title: Re: TodaysBirthday
Post by: weightman on March 02, 2008, 09:58:47 PM
Ahh, okay.  I just assumed I would have to do some manual edits because my Boardindex.template.php is customized. But, it uninstalled and installed with no problems just as you say.

Thanks very much again
Title: Re: TodaysBirthday
Post by: Hoochie Coochie Man on March 03, 2008, 03:20:22 AM
Quote from: JohnyB on March 02, 2008, 09:22:48 PM
This mod is updated and is now valid XHTML 1.0 Transitional. Thanks Hoochie Coochie Man.
Thank you very much, now it works perfect..
Title: Re: TodaysBirthday
Post by: Bulakbol on March 03, 2008, 05:19:33 AM
My pleasure guys. Thank you too.
Title: Re: TodaysBirthday
Post by: Hoochie Coochie Man on March 06, 2008, 03:09:00 AM
Hi JohnyB, I think I found a bug again, sorry  :-[

When I add an event to the calendar, I didn't "Link Event To Post" and that event didn't show up on boardindex.  :-\

Title: Re: TodaysBirthday
Post by: senyorito on March 06, 2008, 04:14:10 AM
It might be an isolated bug bro because it works in my test site.  Hope that bro JohnyB can fix that bug in your site bro.
Title: Re: TodaysBirthday
Post by: Hoochie Coochie Man on March 06, 2008, 04:51:10 AM
Thanks @senyorito, nevermind I fixed the bug..
Thanks
Title: Re: TodaysBirthday
Post by: mapandy on March 06, 2008, 04:53:46 AM
Thanks.
Title: Re: TodaysBirthday
Post by: senyorito on March 06, 2008, 05:23:43 AM
@Hoochie Coochie Man:  You're welcome bro. ;)
Title: Re: TodaysBirthday
Post by: Manu.G on March 06, 2008, 11:26:54 AM
Spanish translation:

$txt['calendar4d'] = 'Eventos de hoy:';           
$txt['calendar4a'] = 'Evento de hoy:';
$txt['calendar3a'] = 'Cumpleaños de hoy:';
$txt['calendar3d'] = 'Cumpleaños de hoy:';
$txt['calendar3c'] = 'Próximo cumpleaños:';
$txt['calendar4c'] = 'Próximo evento:';
Title: Re: TodaysBirthday
Post by: Bulakbol on March 06, 2008, 12:01:28 PM
@Hoochie Coochie Man. Thanks for helping me find a bug that doesn't exist lol. I appreciate the help bud.

@Senyorito. Thanks for the fast relief.  ;)

@Manu0372. Thanks for the translation. It's now added and the mod is now up to date.
Title: Re: TodaysBirthday
Post by: Hoochie Coochie Man on March 06, 2008, 12:14:03 PM
Quote from: JohnyB on March 06, 2008, 12:01:28 PM
@Hoochie Coochie Man. Thanks for helping me find a bug that doesn't exist lol.
lol
Yeah, there is no bug in this mod. My bad sir :D
Title: Re: TodaysBirthday
Post by: Bulakbol on March 06, 2008, 12:25:25 PM
No problem bud. I appreciate the help. It's better to find the bug earlier than later. I'm glad it's a false alarm.  ;D
Title: Re: TodaysBirthday
Post by: senyorito on March 06, 2008, 12:31:15 PM
You're welcome bro. ;)
Title: Re: TodaysBirthday
Post by: weightman on March 09, 2008, 02:44:57 PM
Is this mod displaying the events properly in Opera (ver 9.26 windows) for anyone else? I noticed today the coming events are off to the right by themselves in Opera. Is it just my index.template or Boardindex.templete or the mod?

Link: http://weightliftingexchange.com/index.php?option=com_smf&Itemid=39

Thanks
Title: Re: TodaysBirthday
Post by: senyorito on March 09, 2008, 02:54:57 PM
@weightman:  Hi!  I'm using Opera v9.26 too (my default browser).  Yeah that's normal.  Look in the Mod page bro...

http://custom.simplemachines.org/mods/index.php?mod=1047

... and see the screenshots provided by bro JohnyB. :)
Title: Re: TodaysBirthday
Post by: Bulakbol on March 09, 2008, 03:50:06 PM
Quote from: weightman on March 09, 2008, 02:44:57 PMIs this mod displaying the events properly in Opera (ver 9.26 windows) for anyone else? I noticed today the coming events are off to the right by themselves in Opera. Is it just my index.template or Boardindex.templete or the mod?

Link: http://weightliftingexchange.com/index.php?option=com_smf&Itemid=39

Thanks

Hi Weightman. Different browser, different behavior but I am going to shift some codes to accomodate the opera. If there's no upcoming birthdays, upcoming events will be displayed on the left but if there's today/upcoming birthdays, the today/upcoming events will shift to the right.

I will update the mod now. Either you download the update, uninstall the old and instal the updated version or you edit your BoardIndex.template.php manually. It's only two lines.

Open your BoardIndex.template.php, look for
echo '</td>
<td width="50%"><span class="smalltext" style="color: #', $modSettings['cal_eventcolor'], ';">';


and replace with
echo (!empty($context['calendar_birthdays']) ? '</td><td width="50%">' : ''),
'<span class="smalltext" style="color: #', $modSettings['cal_eventcolor'], ';">';


If you still have problem, let me know. Thanks for using this mod. ;)


@senyorito. Thanks for the explanation bro.
Title: Re: TodaysBirthday
Post by: weightman on March 09, 2008, 04:04:31 PM
JohnyB,

Thanks for the help. I never use Opera personally but was just looking things over in it. My home page (Mambo CMS not forum) is a mess in it :( and fine in IE and FF.

Anyway, I think this is a very nice mod.

Thanks again
Title: Re: TodaysBirthday
Post by: Bulakbol on March 10, 2008, 10:02:10 PM
Quote from: weightman on March 09, 2008, 04:04:31 PM
JohnyB,

Thanks for the help. I never use Opera personally but was just looking things over in it. My home page (Mambo CMS not forum) is a mess in it :( and fine in IE and FF.

Anyway, I think this is a very nice mod.

Thanks again

Hi Weightman.  I used Opera before. It support the MS marquee but I stopped using it when I accidentally hit a key that disabled the address bar and cannot find a way to enable it.  And also the checkbox is invisible and messed-up some display. I only use it once a while now. I use FF and IE.

Thanks for the compliment. Thank for using or trying this mod.
Title: Re: TodaysBirthday
Post by: Bulakbol on March 19, 2008, 09:12:30 PM
Version 0.1.2 for SMF 2.0 Beta 3 Public. Same as version 0.1 for 1.1.4 including supported languages. Thanks for using this mod.  ;)
Title: Re: TodaysBirthday
Post by: MissyNL on March 27, 2008, 10:26:42 AM
Hello,

I have installed the mod and i like it very much. I have only one problem.
I miss the text upcoming events or events today.  Please see the attached file :D

I also use Tinyportal, new version and i also wanted to ask if i can have a mod for the kalender in a block.

Is that possible?

Thanks!

Title: Re: TodaysBirthday
Post by: Bulakbol on March 27, 2008, 02:10:43 PM
Quote from: Lafemme on March 27, 2008, 10:26:42 AM
Hello,

I have installed the mod and i like it very much. I have only one problem.
I miss the text upcoming events or events today.  Please see the attached file :D

I also use Tinyportal, new version and i also wanted to ask if i can have a mod for the kalender in a block.

Is that possible?

Thanks!

Hi Lafemme Nikita.  ;) Thanks for liking this mod. Those are the holidays (picture). This mod only separate today's birthday from upcoming birthdays and today's event from upcoming events. It doesn't touch the today's holiday and upcoming holidays. I will look at the holidays when I have time.

I have this mod for tiny portal (block). My friend requested it. if you want it, just let me know so I can upload it.
Title: Re: TodaysBirthday
Post by: MissyNL on April 05, 2008, 11:31:00 AM
HI Johny :D

Thank for the reply.. if you couls look, it would be very kind!

And Yes, I would vey much like the mod for tiny portal. Thanks!!

Title: Re: TodaysBirthday
Post by: Bulakbol on April 05, 2008, 06:21:47 PM
Quote from: Lafemme on April 05, 2008, 11:31:00 AM
HI Johny :D

Thank for the reply.. if you couls look, it would be very kind!

And Yes, I would vey much like the mod for tiny portal. Thanks!!


Hello again Lefemme. Here's the TodaysBirthdayTP114.zip. Use the package manager to install it. It is tested on newly installed TP. You can use the following in Block Manager.

Title: Birthdays
type: todays birthday (select from the drop down menu)

Use frame from theme
Allow blocks to collapse

Backup these files as the mod will alter the contents.
- Sources/TPortal.php
- Sources/TPortalAdmin.php
- default/TPortalAdmin.template.php
- default/TPortalBlocks.template.php

Good luck.
Title: Re: TodaysBirthday
Post by: Niagra on April 05, 2008, 06:40:20 PM
Hi there  ..   I would  very  much   prefer  to  have the   following  appear  in the  window



This Months Birthdays

02 - Niagra
05 - JohnyB
19 - Peter Pan
28 - Tinkerbell

This Months Events:

01 - April Fools Day
09 - Party in Chat

Note the number corresponds to the day of the month and  not the age of the member. 
I don't have  enough members to  have a todays birthday section yet.  It would  be  empty  a very  large  portion of the time. 

Thanks in advance for any advice or  help

xx
Title: Re: TodaysBirthday
Post by: Bulakbol on April 05, 2008, 06:49:29 PM
Hi Niagra. You must be talking about the TP version. Thanks for the suggestion. A good idea. I will look at it when I have time.
Title: Re: TodaysBirthday
Post by: MissyNL on April 06, 2008, 10:21:46 AM
Thanks! I will upgrade TP.. :D
Title: Re: TodaysBirthday
Post by: MissyNL on April 06, 2008, 10:51:37 AM
YES.... It works!!!!!!!!!!!! 

Thanks!!!!! 
Title: Re: TodaysBirthday
Post by: Bulakbol on April 06, 2008, 11:56:58 AM
Quote from: Lafemme on April 06, 2008, 10:51:37 AM
YES.... It works!!!!!!!!!!!! 

Thanks!!!!! 

Cool. Thanks.  ;)
Title: Re: TodaysBirthday
Post by: weightman on April 12, 2008, 01:00:24 PM
Johny B,

I seem to be having extra spaces between members first and last names and between members in the upcoming birthdays list. It wasn't there until it moved from 2 to 3 upcoming birthdays. Some kind of justification issue because my site is bridged and wrapped inside mambo?

http://weightliftingexchange.com/index.php?option=com_smf&Itemid=39

Thanks again for this great mod and the support.
Title: Re: TodaysBirthday
Post by: Bulakbol on April 12, 2008, 01:28:56 PM
Hi weighman. It's probably better to display all ongoing and upcoming birthdays and events in one column. To do this, open default/BoardIndex.template.php and look for
echo (!empty($context['calendar_birthdays']) ? '</td><td width="50%">' : ''),
'<span class="smalltext" style="color: #', $modSettings['cal_eventcolor'], ';">';


and replace with
//echo (!empty($context['calendar_birthdays']) ? '</td><td width="50%">' : ''),
echo '<span class="smalltext" style="color: #', $modSettings['cal_eventcolor'], ';">';


Thanks for using this mod.
Title: Re: TodaysBirthday
Post by: weightman on April 12, 2008, 01:37:07 PM
Cool. Thanks again!
Title: Re: TodaysBirthday
Post by: Bulakbol on April 12, 2008, 01:39:42 PM
Quote from: weightman on April 12, 2008, 01:37:07 PM
Cool. Thanks again!

You're welcome. If you need assistance, let me know by posting it here.
Title: Re: TodaysBirthday
Post by: kolt on April 24, 2008, 09:16:37 PM
Hello, I Install the mod today's birthday succesfully but doesn't show me nothing!

Please can you help me where is the problem?
Title: Re: TodaysBirthday
Post by: kolt on April 26, 2008, 09:03:02 AM
Help please!
Title: Re: TodaysBirthday
Post by: Bulakbol on May 02, 2008, 01:32:56 PM
Hi colt. I apologize for the late reply. You have to install the mod manually if you are using custom theme and not supported by the mod. Please attach your BoardIndex.template.php if you want me to do the edit for you. Thanks for trying/using this mod.
Title: Re: TodaysBirthday
Post by: Hoe-zo on May 02, 2008, 03:44:36 PM
Hellow johnnyB i've a question about the colours of the text. do you know where i kan change them? Purple is so conflicting with the style of the forum. ;) Check: www.hoe-zo.net
Title: Re: TodaysBirthday
Post by: Bulakbol on May 02, 2008, 03:56:15 PM
Hi Hoe-zo. If you are talking about the birthday text then you have to go to Admin -> Calendar, and under Calendar Settings tab, you can find the "Birthday color:". The default is #920AC4. Change that with the color you want in hex. #FFFFFF is white etc.
Title: Re: TodaysBirthday
Post by: Hoe-zo on May 02, 2008, 05:12:57 PM
Quote from: JohnyB on May 02, 2008, 03:56:15 PM
Hi Hoe-zo. If you are talking about the birthday text then you have to go to Admin -> Calendar, and under Calendar Settings tab, you can find the "Birthday color:". The default is #920AC4. Change that with the color you want in hex. #FFFFFF is white etc.

Thanks, i didn't know that it was just as simple to change the colour of the tekst..

Thank you very much.

-me-
Title: Re: TodaysBirthday
Post by: Bulakbol on May 04, 2008, 10:06:12 PM
No worries Hoe-zo. I am here to help if I can.  :)
Title: Re: TodaysBirthday
Post by: MissyNL on May 05, 2008, 02:44:07 PM
Hi Johny,

I am thinking of installing TP 1.0.5. I have installed your MOD and also the extension of MOD as a TP Block.
Do you think the mod and the TP Block will work?

THANKS! :D
Title: Re: TodaysBirthday
Post by: ccbtimewiz on May 05, 2008, 02:52:57 PM
Not exactly sure if this modification is ported to work on TP. However I can show you what to edit so it would work on TP if you want.

If it is already ported, I apologize.
Title: Re: TodaysBirthday
Post by: Niagra on May 06, 2008, 03:13:45 AM
Quote from: Niagra on April 05, 2008, 06:40:20 PM
Hi there  ..   I would  very  much   prefer  to  have the   following  appear  in the  window



This Months Birthdays

02 - Niagra
05 - JohnyB
19 - Peter Pan
28 - Tinkerbell

This Months Events:

01 - April Fools Day
09 - Party in Chat

Note the number corresponds to the day of the month and  not the age of the member. 
I don't have  enough members to  have a todays birthday section yet.  It would  be  empty  a very  large  portion of the time. 

Thanks in advance for any advice or  help

xx

Hi  Johnny,  any  progress on  this  script ?  I'm  still hoping to  see it  soon?/   hehe
Title: Re: TodaysBirthday
Post by: MissyNL on May 06, 2008, 02:40:57 PM
Quote from: ccbtimewiz on May 05, 2008, 02:52:57 PM
Not exactly sure if this modification is ported to work on TP. However I can show you what to edit so it would work on TP if you want.

If it is already ported, I apologize.

well i have it installed on tp 0.9.8 and it's working great but now i want to upgrade tp, and sinds johny gave me a package to show birthdays in a tp block, i am afraid that if i upgrade, that the package don't work anymore
Title: Re: TodaysBirthday
Post by: Bulakbol on May 06, 2008, 11:37:38 PM
@Lafemme Nikita.  :D
    I don't have the new version of TP so I can't tell you if it will work. I suggest you to uninstall the mod, install the new TP and re-install the mod. It might work if there's no problem. Otherwise, we have to ask how ccbtimewiz ported the mod.


@Niagra.
    I'm sorry but I think what you suggested is another mod. If I can do it, the mod will not be called "TodaysBirthday" anymore.  It will be "Monthly Events and Birthdays". I can only do like this:

Today's Birthday:
02 - Niagra

Upcoming Bithdays:
05 - JohnyB
19 - Peter Pan
28 - Tinkerbell

Same as the events.
Title: Re: TodaysBirthday
Post by: MissyNL on May 07, 2008, 11:14:21 AM
oke thanks! :D

I will do that.. i am now translating the new version of tp.. and pffff... a lot of files!
So when i'm finished and i'm installing it, i'll let you know
Title: Re: TodaysBirthday
Post by: Bulakbol on May 10, 2008, 02:14:04 AM
How is it going Lafemme? Is everything ok? I hope so.  :)
Title: Re: TodaysBirthday
Post by: MissyNL on May 10, 2008, 06:57:01 AM
Hi Johny! Yes.. everything is going so well!! Thanks for asking!
My site is officially going online the first of june, but u have now got 45 members :D  i just want verything to be perfect before i officially go online, so i'm working my butt off :D
I have now put my sie on a own server.. a Intel Xeon X3230 2.4 Ghz Quadcore ... so i hope he's now very fast :)

if you want you can see my site.. www.bimeiden.nl.

I am only now searching for a way that my site can not be hacked very easy.. because i know that sites that have the same format, are being hacked very often.. :(    so.. any ideas are welcome! :D

And you? still working on genius mods?? 
Title: Re: TodaysBirthday
Post by: Bulakbol on May 11, 2008, 03:45:01 AM
Cool! It's good to hear everything is ok with you. As long as you update your version with current version, you'll be ok. Always make a backup backup backup.

Yes, your server is fast. If you want to enable the  Display time taken to create page, go to Admin -> Features and Options -> Layout and Options (tab) and tick the checkbox of "Display time taken to create every page".

It looks like your forum is ready, why wait until June 1?  ;)

I'm busier than before so no time for mods.  :P
Title: Re: TodaysBirthday
Post by: MissyNL on May 11, 2008, 07:18:07 AM
yes.. i would like to update, but.. i have so many mods installed that they not all run on smf 2 beta. so than i have to leave so may mods away. that my forum isn't so great anymore.

I want to wait with my launch, because i want to have more articles ect. online. The members can do everything, but still i think it isn't  finished. :)

Thanks for tips :) My server is automaticly backing up every night to an other server.. so that would be fine :)


Title: Re: TodaysBirthday
Post by: alphascorpio on May 16, 2008, 11:46:24 AM
Hello all,

There are 2 files install1 and install2. The modification I see, I bilieve is for install 1. What's the diference between 1 or 2 ? We can install either one ?
Cumpliments
Title: Re: TodaysBirthday
Post by: Bulakbol on May 16, 2008, 12:18:56 PM
Hello alphascorpio. Welcome to SMF.

Are you installing the mod manually? If so, the "install-1.x.xml" is for SMF version 1.1.4 - 1.1.5 while the "install-2.x.xml" is for SMF version 2.0 Beta 3 - 2.0 Beta 3.1.  You can use the Package Parser (http://sleepycode.com/PackageParser/index.php).

Thanks for using/trying this mod.
Title: Re: TodaysBirthday
Post by: Eliana Tamerin on May 17, 2008, 12:17:05 PM
Might be a good idea to merge those packages in your next version, so this kind of confusion doesn't result.
Title: Re: TodaysBirthday
Post by: Bulakbol on May 17, 2008, 01:40:05 PM
Hi Eliana. They are merged in 1 package. There's only one package to download for both version. Maybe he's trying to install the mod manually without using Parser.
Title: Re: TodaysBirthday
Post by: Eliana Tamerin on May 17, 2008, 04:34:49 PM
Oh, my bad. That's what i get for not looking at the mod site.
Title: Re: TodaysBirthday
Post by: Bulakbol on May 18, 2008, 12:14:43 AM
No worries Eliana. We all make mistakes. Maybe I had more than you.  ;)
Title: Re: TodaysBirthday
Post by: alphascorpio on May 20, 2008, 10:46:52 AM
Hi JohnyB,

Thanks for the information. I got one step forward so far :) .
I'm a newbie I will say very very newbie :) . I'm trying to insert the mod in the forum and no luck. Can anyone suplly me the complete information step by step ? I really apreciate and I will thank you for it.
Cumpliments
Title: Re: TodaysBirthday
Post by: Bulakbol on May 20, 2008, 01:42:07 PM
Hi alphascorpio. Have you tried installing the mod using the package manager? If you want to install the mod manually, you can use the in-built Package Parser. Go here (http://custom.simplemachines.org/mods/index.php?mod=1047), choose your version , click submit and the parser will show you what to look for and what to change.

Title: Re: TodaysBirthday
Post by: Eliana Tamerin on May 20, 2008, 02:11:21 PM
Instructions for 1.1.4 (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1047;attach=53360;smf_version=1.1.4)
Instructions for 1.1.5 (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1047;attach=53360;smf_version=1.1.5)
Instructions for 2.0 Beta 3.1 Public (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1047;attach=53360;smf_version=2.0_Beta_3.1_Public)

There you go, a nice link to instructions.
Title: Re: TodaysBirthday
Post by: Bulakbol on May 20, 2008, 02:14:12 PM
That's in great detail Eliana.  That will help alphascorpio. Thanks a lot.
Title: Re: TodaysBirthday
Post by: Eliana Tamerin on May 20, 2008, 02:18:40 PM
No problem, just discovered that features in the parser today. Wonderful for linking directly to parse instructions.
Title: Re: TodaysBirthday
Post by: Gendji on June 26, 2008, 03:45:21 PM
Hi there,

Just installed this mod and it's working great.
One thing i noticed though and that is that other Holidays besides Birthdays remain unchanged.

Is there a way to change that so that they also appear in a way like:

Upcoming Holidays: Independence Day

Title: Re: TodaysBirthday
Post by: Bulakbol on June 27, 2008, 01:40:13 AM
Hello Gendji. I thank you for your suggestion. I will look at how the holiday function works and see if I can do something similar.  I cannot promise anything though.
Title: Re: TodaysBirthday
Post by: Gendji on June 27, 2008, 04:12:37 AM
I tried it myself but with the very limited coding skills i have, i didn't get any further than the text:
Todays Holidays and Upcoming Holidays on the front page :)

Thank you for looking into this.
Title: Re: TodaysBirthday
Post by: serpentonline on July 23, 2008, 06:47:53 AM
FOR 1.1.5 I get errors when use parser.

this is what i did and it works ...

OPEN Yourtheme/BoardIndex.template.php

FIND:
// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">', $context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=calendar"><img src="', $settings['images_url'], '/icons/calendar.gif" alt="', $txt['calendar24'], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">';

// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
<span style="color: #', $modSettings['cal_holidaycolor'], ';">', $txt['calendar5'], ' ', implode(', ', $context['calendar_holidays']), '</span><br />';

// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
<span style="color: #', $modSettings['cal_bdaycolor'], ';">', $context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */


foreach ($context['calendar_birthdays'] as $member)
echo '
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<b>' : '', $member['name'], $member['is_today'] ? '</b>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';
}


// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #', $modSettings['cal_eventcolor'], ';">', $context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ' : '', $event['href'] == '' ? '' : '<a href="' . $event['href'] . '">', $event['is_today'] ? '<b>' . $event['title'] . '</b>' : $event['title'], $event['href'] == '' ? '' : '</a>', $event['is_last'] ? '<br />' : ', ';

// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '
(<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
}
echo '
</span>
</td>
</tr>';
}


REPLACE WITH:
// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">', $context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '
</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=calendar"><img src="', $settings['images_url'], '/icons/calendar.gif" alt="', $txt['calendar24'], '" /></a>
</td>
<td class="windowbg2" width="100%">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>';
// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo ' <span class="smalltext" style="color: #', $modSettings['cal_holidaycolor'], ';">', $txt['calendar5'], ' ', implode(', ', $context['calendar_holidays']), '
</span><br />';
// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '<span class="smalltext" style="color: #', $modSettings['cal_bdaycolor'], ';">';
if (!empty($context['bdays']['today']))
echo count($context['bdays']['today']) > 1 ? $txt['calendar3d'] : $txt['calendar3a'], ' ', implode(', ', $context['bdays']['today']), '<br />';
// upcoming birthdays
if (!empty($context['bdays']['soon']))
echo count($context['bdays']['soon']) > 1 ? $txt['calendar3b'] : $txt['calendar3c'], ' ', implode(', ', $context['bdays']['soon']), '<br />';
echo '
</span>';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo (!empty($context['calendar_birthdays']) ? '</td><td width="50%">' : ''), '<span class="smalltext" style="color: #', $modSettings['cal_eventcolor'], ';">';
if (!empty($context['events']['today']))
echo count($context['events']['today']) > 1 ? $txt['calendar4d'] : $txt['calendar4a'], ' ', '<b>', implode(', ', $context['events']['today']), '</b><br />';
// upcoming events
if (!empty($context['events']['soon']))
echo count($context['events']['soon']) > 1 ? $txt['calendar4b'] : $txt['calendar4c'], ' ', implode(', ', $context['events']['soon']), '<br />';
// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '(<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
echo '</span>';

echo ' </td>  </tr>  </table>  </td>  </tr>';
}
Title: Re: TodaysBirthday
Post by: tk2012 on August 11, 2008, 02:49:17 PM
DING DING DING!!! 

Another instant install!!! You deserve a GOLD medal!
Title: Re: TodaysBirthday
Post by: Bulakbol on August 12, 2008, 06:19:51 AM
 8) Thanks guys for the kind words.
Title: Re: TodaysBirthday
Post by: tk2012 on August 12, 2008, 08:20:17 AM
I tested out the feature and I'm getting an odd error on my screen.  It is showing the Birthdays twice, but the events only once.  I've attached a pic of what I'm talking about.  I would think if the code was accidently put on twice, that both the events and the birthday would show twice.





It must be conflicting with another mod somewhere.  I'm going to go back over all the edits because I haven't uninstalled the mod, but it stopped showing it completely.  I'm getting errors in my log referring to this mod, but regarding to when people are using other functions that don't relate to this.  v2.0 b3.1 is what I'm using.  Will let you know what I find.
Title: Re: TodaysBirthday
Post by: Bulakbol on August 13, 2008, 11:42:16 PM
Quote from: tk2012 on August 12, 2008, 08:20:17 AM
I tested out the feature and I'm getting an odd error on my screen.  It is showing the Birthdays twice, but the events only once.  I've attached a pic of what I'm talking about.  I would think if the code was accidently put on twice, that both the events and the birthday would show twice.





It must be conflicting with another mod somewhere.  I'm going to go back over all the edits because I haven't uninstalled the mod, but it stopped showing it completely.  I'm getting errors in my log referring to this mod, but regarding to when people are using other functions that don't relate to this.  v2.0 b3.1 is what I'm using.  Will let you know what I find.

Attach your BoardIndex.template.php and helpful people will help you if I am not around.
Title: Re: TodaysBirthday
Post by: tk2012 on August 13, 2008, 11:50:55 PM
Well, later the same day I posted this something happened with the database, so when/if I get it back up and running I'll do that!  LOL!  My host site is still getting back to me.  Luckily, I made a back up the day before this happened!
Title: Re: TodaysBirthday
Post by: tk2012 on August 15, 2008, 12:50:39 AM
Ok, the site is back up after the host fixed what caused my database to go berserk.. some kind of upgrade they did to the server...

Anyway, I'm still getting the same error....

I've enclosed my files..sorry to have you look at it.  I've been doing well with going thru these manually!
Title: Re: TodaysBirthday
Post by: Bulakbol on August 15, 2008, 01:48:37 AM
I'll look at them tk2012. I'll get back to you.
Title: Re: TodaysBirthday
Post by: tk2012 on August 15, 2008, 02:50:10 AM
Sorry to update this, but I made a change to the file for another mod and don't want to forget my changes in the Display.template file.   Please ignore the other one and use this one instead since it has the correct edits for that mod!


Thanks and no hurry!  You guys help so many people and I don't want to be a hog.
Title: Re: TodaysBirthday
Post by: Bulakbol on August 15, 2008, 03:07:26 AM
This mod has nothing to do with Display.template.php though.  It modifies Sources/BoardIndex.php,  default/BoardIndex.template.php and the language files.
Title: Re: TodaysBirthday
Post by: tk2012 on August 15, 2008, 03:32:15 AM
I realized that after I posted it.  It's late here!! TK needs some sleep or some caffeine!
Title: Re: TodaysBirthday
Post by: Bulakbol on August 19, 2008, 07:12:44 PM
Some people suggested about adding separated Today and Upcoming Holidays and I finally found time to do it. :) It's now updated.
Title: Re: TodaysBirthday
Post by: Gendji on August 20, 2008, 10:08:07 AM
Cool thank you very much  :D
Title: Re: TodaysBirthday
Post by: Gendji on August 20, 2008, 11:21:13 AM
Installed it and it's working great.

The only thing i noticed is that everything is listed underneath each other instead of side by side.

Is it possible to change that? And if so what do i need 2 change  :)
Title: Re: TodaysBirthday
Post by: Bulakbol on August 20, 2008, 03:44:16 PM
Holiday titles are displayed in horizontal line separated by comma. If you will show me a sample image of what you want then I'll tell you what to do. If you can do it yourself, edit BoardIndex.template.php, find// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
and start from there.
Title: Re: TodaysBirthday
Post by: tk2012 on August 20, 2008, 08:29:18 PM
Quote from: tk2012 on August 12, 2008, 08:20:17 AM
I tested out the feature and I'm getting an odd error on my screen.  It is showing the Birthdays twice, but the events only once.  I've attached a pic of what I'm talking about.  I would think if the code was accidently put on twice, that both the events and the birthday would show twice.





Had another birthday appear today and the same thing happened.. it was shown twice..

It must be conflicting with another mod somewhere.  I'm going to go back over all the edits because I haven't uninstalled the mod, but it stopped showing it completely.  I'm getting errors in my log referring to this mod, but regarding to when people are using other functions that don't relate to this.  v2.0 b3.1 is what I'm using.  Will let you know what I find.
Title: Re: TodaysBirthday
Post by: Gendji on August 21, 2008, 07:00:24 AM
Quote from: JohnyB on August 20, 2008, 03:44:16 PM
Holiday titles are displayed in horizontal line separated by comma. If you will show me a sample image of what you want then I'll tell you what to do. If you can do it yourself, edit BoardIndex.template.php, find// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
and start from there.

The example pictures from your mod have Birthdays on the left and Events on the right.

The way it displays on my forum now is:

Today's Holiday: Test Holiday
Upcoming Holiday: Labor Day
Today's Birthday: Gendji
Upcoming Birthday: Gendji
Today's Event: * Test event
Upcoming Event: * Another Test Event

What i am looking for is something like this:



Today's Holiday: Test Holiday
Upcoming Holiday: Labor Day       
Today's Birthday: Gendji
Upcoming Birthday: Gendji       
Today's Event: * Test event
Upcoming Event: * Another Test Event

It's kinda like in your example picture just instead of the 2 being left and right it would be all 3, aligned left, middle and right.

Hope i am making sense  :)
Title: Re: TodaysBirthday
Post by: tk2012 on August 21, 2008, 01:18:54 PM
I'm not certain it is this mod or the Member Color Link mod.

I cleared my error log and cache, signed out.  (restarted computer)

Wanted everything to be fresh after clearing my data on the browser, too.

I went in and changed my birthday to today, so I could get a birthday on the screen for today.  Then, added some events to test that out, too.

I had two errors appear in my log (attached).  I still get the same visuals on the info center screen.  Today's Bday is still showing up twice.  (once in color of calendar and once in color of event type)
Upcoming Bday's are shown twice. (both in calendar color)
The Today's events are shown once each (both in color of event type)
(attached)

Everything shows in calendar correctly.  (attached)

I'm going to attach my Load.php file since that is where the error is showing.
Title: Re: TodaysBirthday
Post by: Adish - (F.L.A.M.E.R) on August 21, 2008, 01:31:57 PM
need calender enabled ? coz i cant find it working.
Title: Re: TodaysBirthday
Post by: Bulakbol on August 21, 2008, 04:34:53 PM
@Genji
   To make three columns, edit your BoardIndex.template.php.
Code (find) Select
echo '<span class="smalltext" style="color: #', $modSettings['cal_bdaycolor'], ';">';
replace
Quoteecho '</td><td><span class="smalltext" style="color: #', $modSettings['cal_bdaycolor'], ';">';

Code (find) Select
echo '<span class="smalltext" style="color: #', $modSettings['cal_eventcolor'], ';">';
replace
Quoteecho '</td><td><span class="smalltext" style="color: #', $modSettings['cal_eventcolor'], ';">';

I added "</td><td>" on both lines.


@tk2012
   There's nothing wrong with your files. This mod was installed properly. I think it is the ColorLink mod that is causing the problem. Try reinstalling the MemberColorLink mod.


@F.L.A.M.E.R
   Yes, you have to enable the calendar and configure the settings. Admin => Calendar => Calendar Settings.
Title: Re: TodaysBirthday
Post by: Gendji on August 21, 2008, 04:59:53 PM
Thank you  :)
Title: Re: TodaysBirthday
Post by: Bulakbol on August 21, 2008, 05:06:20 PM
Quote from: Gendji on August 21, 2008, 04:59:53 PM
Thank you  :)

You are welcome. if you need further assistance, just post here. Thank you too for using/trying this mod.
Title: Re: TodaysBirthday
Post by: Adish - (F.L.A.M.E.R) on August 21, 2008, 05:59:50 PM
i actually wanted that the "Calender" link in the navigation.. i thought this mod would do so and add an extra option in the admin panel... any edits i can do to do it like that ?
Title: Re: TodaysBirthday
Post by: Bulakbol on August 21, 2008, 06:31:13 PM
Sorry. I just separated the "holidays today" from "upcoming holidays". What option are you looking for? Link to where?
Title: Re: TodaysBirthday
Post by: Adish - (F.L.A.M.E.R) on August 22, 2008, 04:30:04 AM
i was just looking for the bday section to appear at the base.. and the "Calender" text in the navigation should not appear up... well i can actually remove it from index.template.php but it will cause me errors as the link wond be found...so just like to add an option or do some setting to remove the "Calender" text from the navigation bar and yet keep today's bday on the base...
Title: Re: TodaysBirthday
Post by: Bulakbol on August 25, 2008, 08:03:42 PM
How did you do it? Removing the "Calendar" tab is easy.
Title: Re: TodaysBirthday
Post by: Adish - (F.L.A.M.E.R) on August 25, 2008, 08:13:27 PM
yes i can but i dont want to remove it for time being coz next time if i want it i have to search for the theme again, then unzip it... then open the index.template.php ... then copy the code.. and then paste it where it should be originally...

and also i am afraid that if i remove that code from there.. it maybe possible that, that space is kept blank and no other navigation link can be posted there as it is as default in smf...

I actually just want something like a tickbox that would say "show the calender tab ?" which i can choose when i want the tab over in the navigation and untick it when not needed there....

Possible ?
Title: Re: TodaysBirthday
Post by: Bulakbol on August 25, 2008, 08:18:56 PM
It can't be part of the mod but you can do it. IMO, it is easier to comment-out the codes but you can do the checkbox if you want. You have to edit files though.
Title: Re: TodaysBirthday
Post by: Adish - (F.L.A.M.E.R) on August 25, 2008, 08:31:47 PM
can you please give me the checkbox edit please.. I am ready to do the edits..

Thankyou for your quick reply.
Title: Re: TodaysBirthday
Post by: Bulakbol on August 25, 2008, 08:42:00 PM
You can try. Edit your Settings.template.php and look for
array(
'id' => 'show_modify',

replace with
array(
'id' => 'calendar_tab',
'label' => 'Hide Calendar tab',
),
array(
'id' => 'show_modify',


Then edit your index.template.php and find
if ($context['allow_calendar'])

replace
if ($context['allow_calendar'] && empty($settings['calendar_tab']))

You can now hide the tab by going to Admin => Current Theme, then tick the "Hide Calendar tab" checkbox.
Title: Re: TodaysBirthday
Post by: Adish - (F.L.A.M.E.R) on August 25, 2008, 08:52:02 PM
that worked gr8... now i can do something similar for other tabs aswell... gr8.. just an advice.. many users would prefer this..you can add this into the tips and tricks section... Thank you again...
Title: Re: TodaysBirthday
Post by: Bulakbol on August 25, 2008, 10:08:01 PM
Well, if someone will ask then tell them what to do. :)
Title: Re: TodaysBirthday
Post by: islam2hamy on September 14, 2008, 05:26:53 AM
thank you for the mode
i translate it to arabic
Title: Re: TodaysBirthday
Post by: Bulakbol on September 15, 2008, 10:15:39 PM
Thanks islam3hamy. I'll check the package and upload it after.
Title: Re: TodaysBirthday
Post by: mladen_nl on September 16, 2008, 01:11:54 AM
Hi, :D

I have just installed this Mod. Installation went without any error message. Unfortunately I get this "Array, Array" words displayed in "Upcoming Calendar" on Index page (see picture).

I use SMF 1.6 with Dilber MC theme. In default SMF theme this "Array, Array" is not shown (see picture).

It is obvious to me that I have to edit my Dilber MC theme. The question is only "how?". 

Can someone help me please ...  ???

Thanks

Mladen


Title: Re: TodaysBirthday
Post by: Bobn on September 16, 2008, 12:03:21 PM
Hi,

I get the following errors upon install:

Quote!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Installation Readme



Install Actions
Installations actions for "Todays Birthday":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification install-1.x.xml Modification parse error
2. Execute Modification - Modification parse error


and error log:

Quotehttp://www.jamestownceilidhband.com/forum/index.php?action=packages;sa=install;package=TodaysBirthday1.1.zip 
8: Undefined index: package_readme
File: /home/jamestownceilidhband.com/httpdocs/forum/Sources/Packages.php
Line: 294
Title: Re: TodaysBirthday
Post by: Bulakbol on September 17, 2008, 02:56:35 AM
@mladen_dfso
   That is because your custom theme (DilberMC) wasn't edited. Attach your BoardIndex.template.php and I'll edit it for you.

@Bobn
   Not sure what the problem is. What version of SMF are you running? Try downloading the package again. You might have a corrupted copy.
Title: Re: TodaysBirthday
Post by: mladen_nl on September 17, 2008, 03:03:01 AM
Thanks JohnyB, I am attaching my BoardIndex.template.php   :D

Gr, Mladen
Title: Re: TodaysBirthday
Post by: Bulakbol on September 17, 2008, 03:19:18 AM
Here it is mladen_dfso. Try this one and let me know if there's problem.
Title: Re: TodaysBirthday
Post by: mladen_nl on September 17, 2008, 03:25:57 AM
Quote from: JohnyB on September 17, 2008, 03:19:18 AM
Here it is mladen_dfso. Try this one and let me know if there's problem.
It is working, Grat JohnyB ... thanks a lot :-))

I wish you all the best,

Mladen
Title: Re: TodaysBirthday
Post by: Bulakbol on September 17, 2008, 03:28:02 AM
You're welcome. Thank you too for trying/using this mod.
Title: Re: TodaysBirthday
Post by: kolt on October 12, 2008, 09:38:28 AM
Hello, I tried to install this Mod, but has a problem form,

QuoteInstalling this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
3. Execute Modification ./Themes/default/languages/index.english.php Test successful
4. Execute Modification ./Themes/default/languages/index.english-utf8.php Skipping file

So I tried to install it manually but in the BoardIndex.template.php, doesn't exist some files that says to modify.

I'm attaching my BoardIndex.template.php, Please can any one have a look for me?
Title: Re: TodaysBirthday
Post by: Bulakbol on October 14, 2008, 12:55:10 AM
@kolt
I need to know which theme you are using before I can edit your file. I want to do the edit once.
Title: Re: TodaysBirthday
Post by: kolt on October 14, 2008, 09:29:51 AM
Hello JonhyB, I'm using the default theme, 1.1.6 version.

Thanks in advance
Title: Re: TodaysBirthday
Post by: Bulakbol on October 14, 2008, 10:26:58 PM
@kolt
Your edited BoardIndex.template is attached. Install this mod, ignore the "failed test" error, then use this file. Make a backup first.
Title: Re: TodaysBirthday
Post by: Babygirl112 on October 17, 2008, 05:03:51 AM
Hiya,

I'm using the template "blackTed" - I edited the Boardindes-template but the infos didn't show up - what did I miss??  ::)
Title: Re: TodaysBirthday
Post by: Bulakbol on October 18, 2008, 11:49:41 PM
@Babygirl112
Your BoardIndex.template.php is fine. Maybe there's no upcoming birthdays and holidays that's why nothing showed up. Try changing your birthdate and see if it is actually working. Let me know how things goes.
Title: Re: TodaysBirthday
Post by: tk2012 on October 27, 2008, 01:32:42 PM
Hey JohnyB,

I know it says that the boardindex.template.php file does not need to be done for the mod to work, but what am I missing if I don't do that edit?  (I have the Member Color Link installed which uses the same line for an edit.)  I'm not sure if I should just skip that edit of yours that isn't needed or find a way to make it work with both.
Title: Re: TodaysBirthday
Post by: IvoLeite on October 27, 2008, 03:32:29 PM
Hello. After I've installed the Mod I got the same "error":  Array, Array in the RRR theme. Can you help me?

Quote from: JohnyB on September 17, 2008, 02:56:35 AM
That is because your custom theme (DilberMC) wasn't edited. Attach your BoardIndex.template.php and I'll edit it for you.

I've attached the file. Thanks in advanced.
Title: Re: TodaysBirthday
Post by: Bulakbol on October 28, 2008, 02:04:08 AM
@tk2012
Let me know if you need my assistance.



@IvoLeite
I'll get back to you after I edit your BoardIndex.template.php.

<edit>
Here's your edited BoardIndex.template.php @IvoLeite. Use this file after installing this mod.
</edit>
Title: Re: TodaysBirthday
Post by: tk2012 on November 03, 2008, 06:50:36 PM
Looks like I need your assistance.  I have a member who has a birthday today and it still said "upcoming"
Title: Re: TodaysBirthday
Post by: Bulakbol on November 03, 2008, 09:11:08 PM
@tk2012
Attach your BoardIndex.template.php. I would like to check it.
Title: Re: TodaysBirthday
Post by: tk2012 on November 04, 2008, 01:23:52 AM
Thanks, remember, I have that other Mod installed from someone else which uses the same edit, so didn't know hw to use them both... Member Color Link.
Title: Re: TodaysBirthday
Post by: Bulakbol on November 06, 2008, 09:08:05 PM
@tk2012
I'll look at it again then. Is it for the default theme?
Title: Re: TodaysBirthday
Post by: tk2012 on November 07, 2008, 11:12:47 PM
yes, sir.
just made color changes to the css, that's all.
Title: Re: TodaysBirthday
Post by: Bulakbol on November 08, 2008, 06:14:21 PM
Try the attached file tk2012. let me know if that works.

Title: Re: TodaysBirthday
Post by: tk2012 on November 13, 2008, 01:46:03 PM
Looks like that did the trick!  Thanks much!
Title: Re: TodaysBirthday
Post by: Father Luke on December 29, 2008, 06:23:06 PM
Quote from: Bulakbol on November 03, 2008, 09:11:08 PM
@tk2012
Attach your BoardIndex.template.php. I would like to check it.

May I ask you to do the same? It all goes well until I change
the current theme's Board Index template.

See attached.

Sorry to be a bother.


- -
Okay,
Father Luke
Title: Re: TodaysBirthday
Post by: Bulakbol on December 30, 2008, 08:30:45 PM
@tk2012
You're welcome.

@ Father Luke
Here's your modified file. Not tested though. Let me know how it goes.
Title: Re: TodaysBirthday
Post by: Father Luke on December 30, 2008, 11:19:12 PM
Quote from: Bulakbol on December 30, 2008, 08:30:45 PM

@ Father Luke
Here's your modified file. Not tested though. Let me know how it goes.


Like magic. Moocho appreciation, Bulakbol!


Next question:
Is there a mod to send members a birthday email on their birthday?
My admins. are hollering for one. . . can it be done?

- -
Okay,
Father Luke
Title: Re: TodaysBirthday
Post by: SilentMoon on January 06, 2009, 09:32:51 AM
I am using a custom theme but its a clone of the default theme with the split index.template.php to wrap the site layout around it. The theme folder holds its own index.php and index.template.php but uses the default theme language files.

After applying this mod (1.1.7 board) There are no changes on the board index where it should have todays birthdays, even when I look at the SMF Default Theme - Core.

No errors on install, no errors in the error log.
I read over most of the thread and over the manual install directions and looked via ftp at the default language index.english.php and it does have the changes from the mod.


Mods on the board are
Mod Name Version 
1. Add PM Info To Header (v1.1) 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
2. Custom Copyright 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
3. Invite 1.14   [ Uninstall ] [ List Files ] [ Delete ] 
4. Add IP2Location to Track IP 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
5. Remove Post Modified Time 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
6. Signature Settings Mod 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
7. Users Online Today Mod 1.4.0   [ Uninstall ] [ List Files ] [ Delete ] 
8. Reflection Avatar 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
9. Custom Profile Field Mod 3.19   [ Uninstall ] [ List Files ] [ Delete ] 
10. Todays Birthday 1.2  [ Apply Mod ] [ List Files ] [ Delete ] 

I am using english as the language because some of the mods above do not work using utf-8 on the board.
This theme does not have any custom files from the list of files that are modified by the mod.

It is showing todays birthdays but its doing everything in a row

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi205.photobucket.com%2Falbums%2Fbb78%2FDobemom2b%2Fbday.jpg&hash=1ee58c43ec450fa616df0f189906fa26d92d9d62)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi205.photobucket.com%2Falbums%2Fbb78%2FDobemom2b%2Fbday2.jpg&hash=4956d124dad7a5100024e13c43266d3f0d2b4dff)
rather than split it into 2 columns as the example shows

Title: Re: TodaysBirthday
Post by: Bulakbol on January 08, 2009, 10:23:34 PM
@Father Luke
I think SMF version 2.0 beta 4 does send Birthday email to celebrant. I am not sure if any mod exist for version 1.1.7. It should be different mod though IMO. You can make a request in the Mod Request board (http://www.simplemachines.org/community/index.php?board=79.0).

@SilentMoon
Can you attach your BoardIndex.template.php? I would like to look at it.
Title: Re: TodaysBirthday
Post by: SilentMoon on January 09, 2009, 05:26:06 AM
Thank you
Title: Re: TodaysBirthday
Post by: Bulakbol on January 12, 2009, 08:45:00 PM
@SilentMoon
I edited your BoardIndex.template.php just like the way you want it. Save a copy of the original in case something goes wrong.
Title: Re: TodaysBirthday
Post by: SilentMoon on January 12, 2009, 09:15:54 PM
Thank you!

Should it have shown in two columns? Was the mod supposed to do that but didn't or was the photo on the example from a previous version of the mod?

I really do appreciate your helping, just trying to understand why it did not look as I had expected based on the example on the mod site.
Title: Re: TodaysBirthday
Post by: LizN on February 09, 2009, 10:15:37 PM
I'm using version 1.1.8 and can't get your mod to work. It still shows birthday's as upcoming. Can you help? I'm not very good at this and will probably need the dummies instructions.
Title: Re: TodaysBirthday
Post by: Bulakbol on February 09, 2009, 10:28:49 PM
@SilentMoon
I probably removed the division when I updated it and don't know why. :(  I will put it back when I have time to update the mod.

@LizN
I haven't updated the mod yet. I will soon update it.
Title: Re: TodaysBirthday
Post by: Bulakbol on February 19, 2009, 12:07:25 AM
Ok guys, the mod is now updated. One package for SMF 2.0 RC1 (TodaysBirthdayRC1.zip) and one for those who installed MemberColorLink (TodaysBirthdayRC1_MCLink.zip).
Title: Re: TodaysBirthday
Post by: Akyhne on February 23, 2009, 02:50:00 AM
Danish language:
Title: Re: TodaysBirthday
Post by: Bulakbol on February 25, 2009, 11:47:22 PM
Thanks akyhne for the package that will add the Danish $txt language strings for this mod.
Title: Re: TodaysBirthday
Post by: Akyhne on February 26, 2009, 04:13:42 PM
You are welcome.

I didn't really know there were a language package somewhere to download. That's why I made a complete installation package.

I just realised there were two files from my SMG translation in the .zip. Here's the corrected file:
Title: Re: TodaysBirthday
Post by: hellboy78 on March 27, 2009, 08:37:21 PM
I tryed to install this mod, but I use blacktothefuture theme, so the mod doesn't works.
which operation I should do manually into my theme?
which modification I have to made?
Title: Re: TodaysBirthday
Post by: Bulakbol on March 28, 2009, 12:19:37 PM
@akyhne
Thanks again. If I have spare time, I will add the language translation in the package.

@hellboy78
You have to edit the BoardIndex.template.php of your theme. Attach the file and I'll look at it.
Title: Re: TodaysBirthday
Post by: hellboy78 on March 29, 2009, 09:10:22 AM
here is
Title: Re: TodaysBirthday
Post by: bullbreedluverz on May 16, 2009, 11:05:41 AM
hi ive just installed this mod on 2.0 RC1  http://www.bullbreedluverz.com/themetest/index.php (with a custom theme built as the default theme) using TodaysBirthdaysRC1_MCLink and have an issue with the displayed user name - image of issue and boardIndex.template.php attatched

Title: Re: TodaysBirthday
Post by: Bulakbol on May 17, 2009, 02:22:11 AM
@hellboy78
Apologies. Do you still need the edited BoardIndex.template.php?

@stikkki
Make sure you are using the latest version of TodaysBirthday and MemberColorLink mod.
Title: Re: TodaysBirthday
Post by: bullbreedluverz on May 17, 2009, 04:24:50 AM
Im using TodaysBirthdayRC1_MCLink as i have Member Colour Link installed

ETA my issue is resolved now, it was a problem with my modified BoardIndex.template
Title: Re: TodaysBirthday
Post by: Bulakbol on May 20, 2009, 05:29:53 AM
@hellboy78
Here's you edited BoardIndex.template.php file.


@stikkki
Cool. Thanks for letting me know.
Title: Re: TodaysBirthday
Post by: Eclipse16V on May 31, 2009, 03:16:35 PM
Nice Mod

Here the German

$txt['todays_event'] = 'Event Heute:';
$txt['todays_events'] = 'Events Heute:';
$txt['upcoming_event'] = 'N&auml;chstes Event:';
$txt['upcoming_events'] = 'N&auml;chsten Events:';
$txt['todays_birthday'] = 'Geburtstag Heute:';
$txt['todays_birthdays'] = 'Geburtstage Heute:';
$txt['upcoming_birthday'] = 'N&auml;chster Geburtstag:';
$txt['upcoming_birthdays'] = 'N&auml;chsten Geburtstage:';
$txt['todays_holiday'] = 'Feiertag Heute:';
$txt['todays_holidays'] = 'Feiertage Heute:';
$txt['upcoming_holiday'] = 'N&auml;chster Feiertag:';
$txt['upcoming_holidays'] = 'N&auml;chsten Feiertage:';
Title: Re: TodaysBirthday
Post by: Bulakbol on June 02, 2009, 01:30:49 AM
@Eclipse16V
Thanks for the translation. I will add it now.
Title: Re: TodaysBirthday
Post by: sophi on July 27, 2009, 03:15:57 AM
How can I make this mod work for SMF 1.1.10 ?
Title: Re: TodaysBirthday
Post by: Akyhne on July 27, 2009, 07:24:58 AM
It should work with SMF 1.1.10
Title: Re: TodaysBirthday
Post by: sophi on July 28, 2009, 04:21:37 PM
I have downloaded the first zip that says
TodaysBirthday.zip (7KB)

Is that not the right one?
Title: Re: TodaysBirthday
Post by: magarto on November 13, 2009, 12:47:40 PM
And into spanish:


// Today's birthday
$txt['todays_event'] = 'Evento de hoy:';
$txt['todays_events'] = 'Eventos de hoy:';
$txt['upcoming_event'] = 'Evento próximo:';
$txt['upcoming_events'] = 'Eventos próximos:';
$txt['todays_birthday'] = 'Hoy es el cumpleaños de:';
$txt['todays_birthdays'] = 'Hoy son los cumpleaños de:';
$txt['upcoming_birthday'] = 'Cumpleaños próximo:';
$txt['upcoming_birthdays'] = 'Cumpleaños próximos:';
$txt['todays_holiday'] = 'Día festivo:';
$txt['todays_holidays'] = 'Días festivos:';
$txt['upcoming_holiday'] = 'Próximo día festivo:';
$txt['upcoming_holidays'] = 'Próximos días festivos:';


Is it going to be updated to SMF RC2?
Title: Re: TodaysBirthday
Post by: Manu.G on November 22, 2009, 06:42:09 AM
Hi,

will it be available for SMF 2.0 RC2?
Title: Re: TodaysBirthday
Post by: adbrad on November 22, 2009, 03:22:59 PM
Just downloaded and installed this and all is fine. how ever i did have to do a manual edit in my custom theme,
great mod thanks
Title: Re: TodaysBirthday
Post by: Eclipse16V on November 24, 2009, 07:51:57 AM
Please update it for SMF 2.0 RC2

Thx
Title: Re: TodaysBirthday
Post by: adbrad on November 30, 2009, 06:26:25 PM
I would also like this for RC2 as running a test forum on it at the mo to see if it will be worth upgrading it works perfect on my RC1.2.
It'll do most code changes on RC 2 but get an error on my boardindex.template.php
Title: Re: TodaysBirthday
Post by: adbrad on December 01, 2009, 12:29:30 PM
So i had a play around with this and got it working in rc2. Although i'm no master coder i installed the mod then added the following to boardindex.template.php // Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
{
if (!empty($context['holidays']['today']))
echo count($context['holidays']['today']) == 1 ? $txt['todays_holiday'] : $txt['todays_holidays'], ' <strong><span class="holiday">', implode(', ', $context['holidays']['today']), '</span></strong><br />';
// upcoming holiday
if (!empty($context['holidays']['soon']))
echo count($context['holidays']['soon']) == 1 ? $txt['upcoming_holiday'] : $txt['upcoming_holidays'], ' <span class="holiday">', implode(', ', $context['holidays']['soon']), '</span><br />';
}

// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '<span class="birthday">';
if (!empty($context['bdays']['today']))
echo count($context['bdays']['today']) == 1 ? $txt['todays_birthday'] : $txt['todays_birthdays'], ' ', implode(', ', $context['bdays']['today']), '<br />';
// upcoming birthdays
if (!empty($context['bdays']['soon']))
echo count($context['bdays']['soon']) == 1 ? $txt['upcoming_birthday'] : $txt['upcoming_birthdays'], ' ', implode(', ', $context['bdays']['soon']), '<br />';
echo '</span>';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '<span class="event">';
if (!empty($context['events']['today']))
echo  count($context['events']['today']) == 1 ? $txt['todays_event'] : $txt['todays_events'], ' ', '<b>', implode(', ', $context['events']['today']), '</b><br />';
// upcoming events
if (!empty($context['events']['soon']))
echo count($context['events']['soon']) == 1 ? $txt['upcoming_event'] : $txt['upcoming_events'], ' ', implode(', ', $context['events']['soon']), '<br />';
// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '(<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
}
echo '


It will then appear as the attached image.
Title: Re: TodaysBirthday
Post by: Robbo_ on December 03, 2009, 09:37:38 PM
Will you be updating this mod to SMF 2.0 RC2 anytime soon? If not please say so and I will update it for you.
Title: Re: TodaysBirthday
Post by: C4G-TK on December 23, 2009, 09:22:00 PM
Quote from: Robbo_ on December 03, 2009, 09:37:38 PM
Will you be updating this mod to SMF 2.0 RC2 anytime soon? If not please say so and I will update it for you.

Pretty sure JohnnyB/Bulakbol is away for an indefinite period of time.  You may want to update it yourself it you don't want to wait.
Title: Re: TodaysBirthday
Post by: Robbo_ on December 23, 2009, 11:51:06 PM
I have a few other things to do before I get into it.
Title: Re: TodaysBirthday
Post by: Agantuk on January 09, 2010, 11:56:27 PM
How can i use this mod on SMF 1.1.11...
I have installed this mod but still cant set any birthday,holidays option...and i don't have any such option under calendar ... i only get these options..Manage Holidays and Calendar Settings  ...
what shall i don now?
i cant even add a new birthday or events...and nothing show up under info center...
Help me guys
Title: Re: TodaysBirthday
Post by: adbrad on January 10, 2010, 05:25:48 AM
under calender settings find the options to show birthdays/events/holidays and make sure the options are set to show on calendar and board index.
birthdays are only added if the member puts birth date in profile.
to add events you need to go to calendar and on the page should be a button saying add event or similar.
Title: Re: TodaysBirthday
Post by: Eclipse16V on March 15, 2010, 01:39:17 AM
Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
Title: Re: TodaysBirthday
Post by: adbrad on March 15, 2010, 04:46:21 AM
i have this working on my rc3 test forum
Title: Re: TodaysBirthday
Post by: XerraX on May 01, 2010, 08:31:24 AM
Cant get this to work on RC3, always get this:


[01-May-2010 14:19:07] PHP Parse error:  syntax error, unexpected $end in ...\smf\Themes\default\BoardIndex.template.php on line 594
Title: Re: TodaysBirthday
Post by: adbrad on May 01, 2010, 08:54:17 AM
try this code in boardindex.template
// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
{
if (!empty($context['holidays']['today']))
echo count($context['holidays']['today']) == 1 ? $txt['todays_holiday'] : $txt['todays_holidays'], ' <strong><span class="holiday">', implode(', ', $context['holidays']['today']), '</span></strong><br />';
// upcoming holiday
if (!empty($context['holidays']['soon']))
echo count($context['holidays']['soon']) == 1 ? $txt['upcoming_holiday'] : $txt['upcoming_holidays'], ' <span class="holiday">', implode(', ', $context['holidays']['soon']), '</span><br />';
}

// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '<span class="birthday">';
if (!empty($context['bdays']['today']))
echo count($context['bdays']['today']) == 1 ? $txt['todays_birthday'] : $txt['todays_birthdays'], ' ', implode(', ', $context['bdays']['today']), '<br />';
// upcoming birthdays
if (!empty($context['bdays']['soon']))
echo count($context['bdays']['soon']) == 1 ? $txt['upcoming_birthday'] : $txt['upcoming_birthdays'], ' ', implode(', ', $context['bdays']['soon']), '<br />';
echo '</span>';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '<span class="event">';
if (!empty($context['events']['today']))
echo  count($context['events']['today']) == 1 ? $txt['todays_event'] : $txt['todays_events'], ' ', '<b>', implode(', ', $context['events']['today']), '</b><br />';
// upcoming events
if (!empty($context['events']['soon']))
echo count($context['events']['soon']) == 1 ? $txt['upcoming_event'] : $txt['upcoming_events'], ' ', implode(', ', $context['events']['soon']), '<br />';
// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '(<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
}
echo '
Title: Re: TodaysBirthday
Post by: XerraX on May 01, 2010, 09:18:39 AM
Okay that works. Thank you.  :)
Title: Re: TodaysBirthday
Post by: ukhalik2 on May 30, 2010, 04:09:08 PM
can you make it compatible for smf 2.0 rc3?
Title: Re: TodaysBirthday
Post by: adbrad on May 30, 2010, 06:05:52 PM
Quote from: adbrad on May 01, 2010, 08:54:17 AM
try this code in boardindex.template
// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
{
if (!empty($context['holidays']['today']))
echo count($context['holidays']['today']) == 1 ? $txt['todays_holiday'] : $txt['todays_holidays'], ' <strong><span class="holiday">', implode(', ', $context['holidays']['today']), '</span></strong><br />';
// upcoming holiday
if (!empty($context['holidays']['soon']))
echo count($context['holidays']['soon']) == 1 ? $txt['upcoming_holiday'] : $txt['upcoming_holidays'], ' <span class="holiday">', implode(', ', $context['holidays']['soon']), '</span><br />';
}

// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '<span class="birthday">';
if (!empty($context['bdays']['today']))
echo count($context['bdays']['today']) == 1 ? $txt['todays_birthday'] : $txt['todays_birthdays'], ' ', implode(', ', $context['bdays']['today']), '<br />';
// upcoming birthdays
if (!empty($context['bdays']['soon']))
echo count($context['bdays']['soon']) == 1 ? $txt['upcoming_birthday'] : $txt['upcoming_birthdays'], ' ', implode(', ', $context['bdays']['soon']), '<br />';
echo '</span>';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '<span class="event">';
if (!empty($context['events']['today']))
echo  count($context['events']['today']) == 1 ? $txt['todays_event'] : $txt['todays_events'], ' ', '<b>', implode(', ', $context['events']['today']), '</b><br />';
// upcoming events
if (!empty($context['events']['soon']))
echo count($context['events']['soon']) == 1 ? $txt['upcoming_event'] : $txt['upcoming_events'], ' ', implode(', ', $context['events']['soon']), '<br />';
// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '(<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
}
echo '


j have it working in rc3 what files fail when yo try to in stall
Title: Re: TodaysBirthday
Post by: ukhalik2 on May 31, 2010, 04:31:43 AM
boardindex.php and boardindex.template.php
well,  i am not going to use it, changed my mind.
thanks for helping, great mod.
Title: Re: TodaysBirthday
Post by: tanitram on December 28, 2010, 05:37:24 PM
Can you, please, upgrade it to 2.0 RC4 ?

some code lines différents in RC4 (BoardIndex.template.php

Thank's
Title: Re: TodaysBirthday
Post by: performer189 on December 21, 2011, 10:36:24 AM
Hi, can be an update or a mod for SMF2.0 RC3? thanks.