<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Module: Birthdays</title>
        <description>This module shows a list of active users that have upcoming birthdays.

* Admins can select:
    - number of days into the future to check for birthdays (1-365)
    - forum pages to display birthdays on
    - caching of user data
    - hiding page when no birthdays to show

* Users can:
    - input their birthdays in the Control Center
    - choose to hide or show their age (hidden by default)

Created by Jorgen Hansen, Sunbringer (update), Steve Healy (update)
(this was the ShowTodaysBirthdays mod, updated, renamed and repackaged by me)

[b]Language files needed:[/b] If you want to help out here, then please create your language file of choice with the strings from english.php and upload the new file in this thread.  (german.php could use proofreading too)

[code]
Changelog:
----------

2008-02-08 v1.0.4

    - Modified language file: simplified and easier to translate
      (now uses variable #&#039;s in strings)

    - Modified api user search to improve performance

2008-02-08 v1.0.3

    - Using proper phorum cache directory as defined in admin

2008-02-08 v1.0.2

    - Cache is now reset when a user updates their profile

    - Added more documentation to the code

    - Changed user separator so it displays one user per line
      (it was looking too messy as a comma separated list)

    - Only checking active users now (using new api)

2008-02-07 v1.0.1

    - Fixed more PHP warnings for undefined fields

2008-02-07 v1.0.0

    - Added admin option to select number of days to check

    - Added Maurice Makaay&#039;s custom profile installer

    - Added user option to hide age
      (requires new profile- if you have a bunch of birthdays 
       stored in the old profile you&#039;ll need to write a script
       to move them, or re-enter them)

    - Fixed assorted PHP warnings

    - Completed the templates for english and german
      (some strings were missing, and my german may need help)

    - Cleaned up the documentation (and added this file)

    - Applied reported fixes (thanks to DarkElf109)

    - Renamed module from ShowTodaysBirthdays to birthdays
      (shorter, no caps, and more appropriate)

    - (updated by Steve Healy)

2007-12-21 v0.7.05

    - english.php by DarkElf109

2007-12-15 v0.7.05

    - Update by Sunbringer

2006-11-28 v0.7.05

    - future birthday hack by babba 2000

2006-10-06 v0.7.05

    - Last update by author Juergen Hansen
[/code]</description>
        <link>https://www.phorum.org/support/read.php?62,127919,127919#msg-127919</link>
        <lastBuildDate>Wed, 09 Sep 2026 16:41:59 -0500</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,158432#msg-158432</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,158432#msg-158432</link>
            <description><![CDATA[ The module has an issue with leap years. I suggest to change the test<br />
[code=&quot;php&quot;]<br />
if($ubirthday[&quot;yday&quot;] &gt;= $jetzt[&quot;yday&quot;])<br />
[/code]<br />
by<br />
[code=&quot;php&quot;]<br />
if (($ubirthday[&quot;mon&quot;] &gt; $jetzt[&quot;mon&quot;]) || ($ubirthday[&quot;mon&quot;] == $jetzt[&quot;mon&quot;] &amp;&amp; ($ubirthday[&quot;day&quot;] &gt;= $jetzt[&quot;day&quot;])))<br />
[/code]<br />
in the file birthdays.php]]></description>
            <dc:creator>slashbin</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 21 Jun 2016 00:05:54 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,155588#msg-155588</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,155588#msg-155588</link>
            <description><![CDATA[ It seems to me that there is a small bug in this module. When the birthday is at the beginning of the year, but the current date is towards the end of the previous year, the age is not properly computed. This is because only the difference between the current year and the birth year is used to compute the future age. On my system, I have corrected this by adding the lines<br />
<br />
if(($ubirthday[&quot;mon&quot;] == 1) &amp;&amp; ($jetzt[&quot;mon&quot;] &gt; 1)) {<br />
   $user_age++;<br />
}<br />
<br />
after the &#039;else&#039; of the condition &#039;if($daysTillBirthday == 0)&#039;]]></description>
            <dc:creator>slashbin</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 26 Dec 2014 11:23:51 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,139688#msg-139688</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,139688#msg-139688</link>
            <description><![CDATA[ I&#039;m guessing this module is no longer compatible with the latest version of Phorum. Does anyone know how I could do something like this, but just have the birthday to edit in the ControlCenter, and have the age of said birthday appear in the profile?]]></description>
            <dc:creator>Ryan</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 01 Aug 2009 20:30:16 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,137012#msg-137012</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,137012#msg-137012</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Jan-Willem</strong><br />
However, the mod is not working very well for me. If I try to set my birthday it won&#039;t remember the date. It allways says december 31 1969, whatever I try. Any suggestions?</div></blockquote>
<br />
Good day!<br />
I have the same problem and after reading this post I don&#039;t understood how can I correct this... As I understood, I have to rewrite this module at all for solving this problem. May be I mistake?<br />
Please help me...<br />
With best regards.]]></description>
            <dc:creator>tsyuha</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 06 Mar 2009 05:08:28 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,136561#msg-136561</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,136561#msg-136561</link>
            <description><![CDATA[ FYI, I just diagnosed a Phorum using this module.  It was causing the MySQL server to OOM and causing the server to hit its PHP memory limit.  I have not looked deep into the code yet, but it appears this module does not handle thousands of users very well.]]></description>
            <dc:creator>Brian Moon</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 11 Feb 2009 20:45:38 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,134626#msg-134626</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,134626#msg-134626</link>
            <description><![CDATA[ I have uploaded version 1.0.5 of this module with the following changes:<br />
<br />
 - Fixed a bug in the tpl_cc_usersettings hook (needed to return $profile data)<br />
<br />
 - Modified to use display_name rather than simply username<br />
<br />
 - Added the Dutch Informal (from Jan-Willem) and Turkish (from scabboy) language files]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 11 Nov 2008 12:10:31 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,134064#msg-134064</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,134064#msg-134064</link>
            <description><![CDATA[ Hi, this is a great module, works perfectly. However I would like to include Birthdays on the New User Registration page, register.php. Is there an easy way to do this or is it even possible? My PHP skills are a little rusty and I really only know PHP 4 - haven&#039;t had time yet to study up on PHP 5, so I&#039;d rather not go hacking around without some guidance. Thanks for any help you can give.]]></description>
            <dc:creator>ImpalaLove</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 21 Oct 2008 21:29:35 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,133400#msg-133400</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,133400#msg-133400</link>
            <description><![CDATA[ I just started using this mod and wanted to say thanks for your work on it, it looks great!<br />
<br />
I do have one suggestion though as I have users&#039; real names showing on my site and found that those weren&#039;t used for this mod.  If you change line 291 to read $user[&#039;display_name&#039;] rather than $user[&#039;username&#039;], this will allow the default to be shown (whether it is user or real name).<br />
<br />
Anyways, thanks again for all your hard work.]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 24 Sep 2008 19:19:29 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,129749#msg-129749</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,129749#msg-129749</link>
            <description><![CDATA[ After my little changes above your posts it is working well.]]></description>
            <dc:creator>Sunbringer</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sun, 27 Apr 2008 04:39:59 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,129741#msg-129741</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,129741#msg-129741</link>
            <description><![CDATA[ Is anyone using this Mod? Is it stable and working well?]]></description>
            <dc:creator>John Shallo</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 26 Apr 2008 19:31:12 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,129348#msg-129348</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,129348#msg-129348</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Sunbringer</strong><br />Somehow the Birthdays today are not shown. The Birthdays in die Future are working fine, but not the actual birthdays today.<br />
<br />
Any hints for that problem?</div></blockquote>
<br />
OK, problem solved: the mod didn&#039;t recognise that 2008 is a leap year so this little hack shouldt help out:<br />
<br />
change <br />
<pre class="bbcode">
322    if($ubirthday[&quot;yday&quot;] &gt;= $jetzt[&quot;yday&quot;])
323        $nextBirthday = mktime(0,0,1,$ubirthday[&quot;mon&quot;],$ubirthday[&quot;mday&quot;],$jetzt[&quot;year&quot;]);
324    else
325        $nextBirthday = mktime(0,0,1,$ubirthday[&quot;mon&quot;],$ubirthday[&quot;mday&quot;],$jetzt[&quot;year&quot;]+1);</pre>
<br />
to<br />
<pre class="bbcode">
322    if((date(&quot;L&quot;, mktime(0,0,1,$jetzt[&quot;mon&quot;],$jetzt[&quot;mday&quot;],$jetzt[&quot;year&quot;])) == 1) || ($ubirthday[&quot;yday&quot;] &gt;= $jetzt[&quot;yday&quot;])) 
323        $nextBirthday = mktime(0,0,1,$ubirthday[&quot;mon&quot;],$ubirthday[&quot;mday&quot;],$jetzt[&quot;year&quot;]);
324    else
325        $nextBirthday = mktime(0,0,1,$ubirthday[&quot;mon&quot;],$ubirthday[&quot;mday&quot;],$jetzt[&quot;year&quot;]+1);</pre>
<br />
greetings<br />
Sun]]></description>
            <dc:creator>Sunbringer</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 07 Apr 2008 11:42:22 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,129334#msg-129334</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,129334#msg-129334</link>
            <description><![CDATA[ Can you please give me a hint, how to change the fontsize for this module? Changes in cc_usersettings wont show any effect in forum.]]></description>
            <dc:creator>Adornit</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sun, 06 Apr 2008 08:16:32 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,129279#msg-129279</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,129279#msg-129279</link>
            <description><![CDATA[ Somehow the Birthdays today are not shown. The Birthdays in die Future are working fine, but not the actual birthdays today.<br />
<br />
Any hints for that problem?]]></description>
            <dc:creator>Sunbringer</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 02 Apr 2008 07:20:50 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128191#msg-128191</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128191#msg-128191</link>
            <description><![CDATA[ So now you know I&#039;m from before 31-12-1969 &lt;g&gt;]]></description>
            <dc:creator>Jan-Willem Stekelenburg</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 13 Feb 2008 17:25:38 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128189#msg-128189</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128189#msg-128189</link>
            <description><![CDATA[ Thanks for new language strings. here is turkish language file.]]></description>
            <dc:creator>scabboy</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 13 Feb 2008 16:17:11 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128188#msg-128188</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128188#msg-128188</link>
            <description><![CDATA[ I have set birthdays prior to 1969 with this module, and it worked fine.  While it certainly sounds like Jan-Willem is having a problem with the UNIX date, it isn&#039;t a universal problem.  Perhaps something different in his installation?  <br />
<br />
At any rate, once I rewrite the module to store YYYY and MMDD the UNIX timestamp issue will go away.]]></description>
            <dc:creator>Steve H</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 13 Feb 2008 14:43:42 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128152#msg-128152</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128152#msg-128152</link>
            <description><![CDATA[ I looked at the code and I see that the getdate() PHP function is used for working with the date. That is problematic here, since UNIX dates (a.k.a. Epoch) are defined as the number of seconds since Januari 1st 1970. Therefore, you can not use dates before that time when using the standard UNIX date processors.<br />
<br />
For my own projects, I nowadays use SQL queries for advanced date processing. Most SQL server systems (and MySQL as well) have well written date functions in their library. Of course doing so would make this module MySQL targeted, unless care would be taken to allow multiple db layers (which is not too hard too do; check the spam hurdles module for example).]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 13 Feb 2008 02:19:20 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128143#msg-128143</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128143#msg-128143</link>
            <description><![CDATA[ Here&#039;s a Dutch language file.<br />
<br />
However, the mod is not working very well for me. If I try to set my birthday it won&#039;t remember the date. It allways says december 31 1969, whatever I try. Any suggestions?]]></description>
            <dc:creator>Jan-Willem Stekelenburg</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Feb 2008 18:44:28 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128134#msg-128134</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128134#msg-128134</link>
            <description><![CDATA[ Such array would not be accessible from the search function. There are quite some options for working with custom profile fields, but serialized data isn&#039;t easily accessible and for sure not by SQL. Therefore if you want data to be searchable, then you can&#039;t use array data (as you already found out).<br />
<br />
An option would be to use more than one field. Of course I was stupid with YYYYMMDD :-) So instead of one field, you could split it in a YYYY field and a MMDD field. An extreme option would be to create a table for the birthdays storage. For some applications, custom tables might even be needed, because custom fields just don&#039;t deliver the goods. But for this typical application, I think that working with custom fields should be sufficient.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Feb 2008 13:23:40 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128131#msg-128131</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128131#msg-128131</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>mmakaay</strong><br /><blockquote class="bbcode"><div><small>Quote<br /></small><strong>stevehealy</strong><br />Also the user search now only loads those users with birthdays defined.  This should improve performance, at least until all your users add their birthdays.  ;)</div></blockquote>
<br />
If you store the birthday as &quot;YYYYMMDD&quot; in the field, then you could use &quot;&lt;&quot; and &quot;&gt;&quot; operators to select only a range from the birthdays. There is no need to pull in all configured birthdays. That should make the script scale just fine, unless you get thousands of user birthdays on a single day ;)</div></blockquote>
<br />
Actually, that won&#039;t work because the YYYY will be all over the place.  (depending on the age of users)  That&#039;s why I said earlier that I need to ignore the year when searching.<br />
<br />
On top of that, the birthday is stored in an array which doesn&#039;t seem to be accessible from the phorum_api_user_search_custom_profile_field.  If it is, I need help with the syntax.<br />
<br />
My custom profile is &quot;mod_birthdays&quot;, which is an array containing &quot;birthday&quot; and &quot;age&quot;.]]></description>
            <dc:creator>Steve H</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Feb 2008 11:00:40 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128098#msg-128098</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128098#msg-128098</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>stevehealy</strong><br />Also the user search now only loads those users with birthdays defined.  This should improve performance, at least until all your users add their birthdays.  ;)</div></blockquote>
<br />
If you store the birthday as &quot;YYYYMMDD&quot; in the field, then you could use &quot;&lt;&quot; and &quot;&gt;&quot; operators to select only a range from the birthdays. There is no need to pull in all configured birthdays. That should make the script scale just fine, unless you get thousands of user birthdays on a single day ;)]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Feb 2008 04:01:04 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128097#msg-128097</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128097#msg-128097</link>
            <description><![CDATA[ Thanks for your hard work on this Steve, this is working for me now! Yay!]]></description>
            <dc:creator>M@AATW</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Feb 2008 03:45:06 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128086#msg-128086</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128086#msg-128086</link>
            <description><![CDATA[ New version uploaded, with some new language strings.<br />
<br />
Also the user search now only loads those users with birthdays defined.  This should improve performance, at least until all your users add their birthdays.  ;)  I think it still needs some work, but it may require another overhaul of the code.]]></description>
            <dc:creator>Steve H</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 11 Feb 2008 17:52:13 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128082#msg-128082</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128082#msg-128082</link>
            <description><![CDATA[ Likek thomas pointed out, it is possible to do your own rewriting on the strings. Till now, the main language file and some modules use %variable% as the variable name. So if you want to use this type of rewriting, then use %days% to be compliant with the other code.<br />
<br />
For plural words it is fun how some languages might even have different wordings for one, two or more than two. So in my latest module code, I try to leave using different strings open for the language file writer. Here&#039;s a slightly generalized excerpt from the onlineusers module file that implements this:<br />
<pre class="bbcode">
            $lang = $PHORUM[&#039;DATA&#039;][&#039;LANG&#039;][&#039;MOD_.....&#039;];
            $count = ...some code to get a count ...;
            $str = isset($lang[&quot;SomeLanguageKey$count&quot;])
                 ? $lang[&quot;SomeLanguageKey$count&quot;]
                 : $lang[&#039;SomeLanguageKey&#039;];
            $str = str_replace(&#039;%count%&#039;, $count, $str);</pre>
<br />
Using this, the language file could define the strings:<br />
<pre class="bbcode">
$PHORUM[&#039;DATA&#039;][&#039;LANG&#039;][&#039;MOD_.....&#039;] = array(
    &quot;SomeLanguageKey0&quot; =&gt; &quot;None at all!&quot;,
    &quot;SomeLanguageKey1&quot; =&gt; &quot;One single lonely.&quot;,
    &quot;SomeLanguageKey2&quot; =&gt; &quot;A duo!&quot;,
    &quot;SomeLanguagekey&quot;  =&gt; &quot;There are %count% of them.&quot;
);
</pre>]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 11 Feb 2008 16:17:52 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128080#msg-128080</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128080#msg-128080</link>
            <description><![CDATA[ More on phorum_api_user_search_custom_profile_field()...<br />
<br />
What is the best way to combine this with phorum_api_user_search() so that I can search on both regular user fields (like &quot;active&quot;) and custom profile fields?<br />
<br />
Also, I see that you&#039;re using an unspecified operator (%):<br />
<pre class="bbcode">
$user_ids = phorum_api_user_search_custom_profile_field(
    $field[0], &#039;&#039;, &#039;%&#039;, TRUE
);</pre>
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />Valid operators are &quot;=&quot;, &quot;!=&quot;, &quot;&lt;&gt;&quot;, &quot;&lt;&quot;, &quot;&gt;&quot;, &quot;&gt;=&quot; and &quot;&lt;=&quot;, &quot;*&quot;. The &quot;*&quot; operator is for executing a &quot;LIKE &#039;%value%&#039;&quot; matching query.</div></blockquote>
<br />
Is % equivalent to *?<br />
<br />
edit...<br />
upon further study.. it is also giving an undefined offset warning, thus it should be:<br />
<pre class="bbcode">
        $field[&#039;id&#039;], &#039;&#039;, &#039;*&#039;, TRUE
</pre>]]></description>
            <dc:creator>Steve H</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 11 Feb 2008 14:48:09 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128079#msg-128079</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128079#msg-128079</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>mmakaay</strong><br />You can use phorum_api_user_search_custom_profile_field() for that.<br />
Here a excerpt from the Google Maps module which does a lookup on a custom profile field:<br />
<pre class="bbcode">
// Collect all users which have a &quot;mod_google_maps&quot; custom user profile field.
require_once(&#039;./include/api/custom_profile_fields.php&#039;);
$field = phorum_api_custom_profile_field_byname(&#039;mod_google_maps&#039;);
if (empty($field)) trigger_error(
    &#039;No custom profile field named &quot;mod_google_maps&quot; available&#039;,
    E_USER_ERROR
);
$user_ids = phorum_api_user_search_custom_profile_field(
    $field[0], &#039;&#039;, &#039;%&#039;, TRUE
);
</pre></div></blockquote>
<br />
I&#039;ve been playing with this without success.  My problem is that the custom field I need to search on is in an array:<br />
<br />
mod_birthdays[&quot;birthday&quot;]<br />
<br />
I&#039;m not sure if this api will support that, and if it will, what the proper syntax is?<br />
<br />
Beyond that, I suspect that there is no good way to search for current birthdays as timestamps with simple pattern matching.  I need to store them as separate fields for month, day and year so I can ignore the year when searching.  (or perhaps store an additional &quot;fake&quot; timestamp with the year set to an arbitrary year strictly for searching)]]></description>
            <dc:creator>Steve H</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 11 Feb 2008 14:09:16 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128078#msg-128078</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128078#msg-128078</link>
            <description><![CDATA[ regular:   <br />
<br />
 &quot;BlockContentNone&quot;    =&gt; &quot;No birthdays in the next&quot;,<br />
 &quot;Days&quot;                           =&gt; &quot;days&quot;,<br />
<br />
[No birthdays in the next] $30 [days]<br />
<br />
___________________________________<br />
<br />
turkish:<br />
<br />
    &quot;BlockContentNone&quot;    =&gt; &quot;next &quot;,<br />
    &quot;Days&quot;                            =&gt; &quot;days in no birthdays&quot;,<br />
<br />
<br />
<br />
[next] $30 [days in no birthdays]]]></description>
            <dc:creator>pat</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 11 Feb 2008 13:59:41 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128076#msg-128076</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128076#msg-128076</link>
            <description><![CDATA[ It shold be like that<br />
<br />
[next 30 days] [in] [no birthdays]<br />
<br />
according to turkish. Also<br />
<br />
<br />
I hope that I could explain :)]]></description>
            <dc:creator>scabboy</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 11 Feb 2008 13:25:56 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128075#msg-128075</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128075#msg-128075</link>
            <description><![CDATA[ well, sure. you just need to run your own replacements on the language strings before using them ;).<br />
something like<br />
$PHORUM[&#039;DATA&#039;][&#039;LANG&#039;][&#039;MyLanguageString&#039;] = str_replace(&quot;[#]&quot;,$myvariablewiththatnumber,$PHORUM[&#039;DATA&#039;][&#039;LANG&#039;][&#039;MyLanguageString&#039;]);]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 11 Feb 2008 12:24:58 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,127919,128072#msg-128072</guid>
            <title>Re: Module: Birthdays</title>
            <link>https://www.phorum.org/support/read.php?62,127919,128072#msg-128072</link>
            <description><![CDATA[ This reminds me of a question for the experts which I had while working on the language file:<br />
<br />
Is it possible to put a variable within a language string?<br />
<br />
It would simplify this process significantly if I could write language strings like<br />
<br />
<pre class="bbcode">
    &quot;BlockContentNone&quot;    =&gt; &quot;No birthdays in the next [#] days&quot;,</pre>
<br />
(or something like that)]]></description>
            <dc:creator>Steve H</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 11 Feb 2008 12:11:17 -0600</pubDate>
        </item>
    </channel>
</rss>
