[MODDB] Upcoming Birthday list 1.0.0a

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [BETA] Upcoming Birthday list

Post by lefty74 »

sent you a pm, this really has nothing to do with my mod anymore...
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: [BETA] Upcoming Birthday list

Post by joebart72 »

Works with RC 7 :)
I learn English with phpbb.com :)
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [BETA] Upcoming Birthday list

Post by lefty74 »

many thanks, :) i have not had a chance to review any of my mods except the announcement centre
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: [BETA] Upcoming Birthday list

Post by joebart72 »

Installed on a fresh phBB RC7 version :) Everything is Ok ;)
I learn English with phpbb.com :)
guitartuner
Registered User
Posts: 15
Joined: Wed Nov 07, 2007 12:00 pm

Re: [BETA] Upcoming Birthday list

Post by guitartuner »

i'm having a little problem with this.
i don't know if there's a setting or anything in acp but if there are no birthdays today, it doesn't display anything, even if someone has birthday within the next 7 days.

but when someone has birthday today, it display both.
how do i stop the table from disappearing?
i use acid tech style. (subsilver2 based)
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [BETA] Upcoming Birthday list

Post by lefty74 »

could you post the code that you have in your index_body.html pse?
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
guitartuner
Registered User
Posts: 15
Joined: Wed Nov 07, 2007 12:00 pm

Re: [BETA] Upcoming Birthday list

Post by guitartuner »

ya here it is... ;) thanks!

Code: Select all

<!-- INCLUDE overall_header.html -->

<!-- IF U_MCP -->
	<div id="pageheader">
		<p class="linkmcp">[ <a href="{U_MCP}">{L_MCP}</a> ]</p>
	</div>

	<br clear="all" /><br />
<!-- ENDIF -->

<!-- INCLUDE forumlist_body.html -->

<span class="gensmall"><!-- IF not S_IS_BOT --><a href="{U_DELETE_COOKIES}">{L_DELETE_COOKIES}</a> | <!-- ENDIF --><a href="{U_TEAM}">{L_THE_TEAM}</a></span><br />

<br clear="all" />

<!-- INCLUDE breadcrumbs.html -->

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<br clear="all" />

	<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
	{$CA_CAP_START}<!-- IF U_VIEWONLINE --><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a><!-- ELSE -->{L_WHO_IS_ONLINE}<!-- ENDIF -->{$CA_CAP_END}
	<tr>
	<!-- IF LEGEND -->
		<td class="row1" rowspan="2" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ELSE -->
		<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ENDIF -->
		<td class="row1" width="100%"><span class="genmed">{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}</span></td>
	</tr>
	<!-- IF LEGEND -->
		<tr>
			<td class="row1 nobold"><b class="gensmall">{L_LEGEND} :: {LEGEND}</b></td>
		</tr>
	<!-- ENDIF -->
	</table>
<!-- ENDIF -->

<!-- IF S_DISPLAY_BIRTHDAY_LIST && BIRTHDAY_LIST -->
	<br clear="all" />

	<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
	{$CA_CAP_START}{L_BIRTHDAYS}{$CA_CAP_END}
	<tr>
		<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/birthday.gif" alt="{L_BIRTHDAYS}" /></td>
		<td class="row1 nobold" width="100%"><p class="genmed"><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <b>{BIRTHDAY_LIST}</b><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF -->		<br /><!-- IF BIRTHDAYS_AHEAD_LIST -->{L_BIRTHDAYS_AHEAD}: <b>{BIRTHDAYS_AHEAD_LIST}</b><!-- ENDIF --></p></td>
	</tr>
	</table>
<!-- ENDIF -->

<!-- [+] Karma MOD -->
<!-- IF KARMA_TOPLIST -->
	<br clear="all" />

	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat" colspan="2"><h4>{L_KARMA_TOPLIST}</h4></td>
	</tr>
	<tr>
		<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_KARMA_TOPLIST}" /></td>
		<td class="row1" width="100%"><p class="genmed">{L_KARMA_TOPLIST_EXPLAIN}: <b>{KARMA_TOPLIST}</b></p></td>
	</tr>
	</table>
<!-- ENDIF -->
<!-- [-] Karma MOD -->

<br clear="all" />

<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
{$CA_CAP_START}{L_STATISTICS}{$CA_CAP_END}
<tr>
	<td class="row1"><img src="{T_THEME_PATH}/images/stats.gif" alt="{L_STATISTICS}" /></td>
	<td class="row1 nobold" width="100%" valign="middle"><p class="genmed">{TOTAL_POSTS} | {TOTAL_TOPICS} | {TOTAL_USERS} | {NEWEST_USER}</p></td>
</tr>
</table>

<!-- IF not S_USER_LOGGED_IN -->
	<br clear="all" />

	<form method="post" action="{S_LOGIN_ACTION}">
	
	<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
	{$CA_CAP_START}<a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>{$CA_CAP_END}
	<tr>
		<td class="row1" align="center"><span class="genmed">{L_USERNAME}:</span> <input class="post" type="text" name="username" size="10" />&nbsp; <span class="genmed">{L_PASSWORD}:</span> <input class="post" type="password" name="password" size="10" />&nbsp; <!-- IF S_AUTOLOGIN_ENABLED --><span class="gensmall">{L_LOG_ME_IN}</span> <input type="checkbox" class="radio" name="autologin" />&nbsp;<!-- ENDIF --> <input type="submit" class="btnmain" name="login" value="{L_LOGIN}" /></td>
	</tr>
	</table>
	{S_FORM_TOKEN}
	</form>
<!-- ENDIF -->

<br clear="all" />

<table class="legend">
<tr>
	<td width="20" align="center">{FORUM_NEW_IMG}</td>
	<td><span class="gensmall">{L_NEW_POSTS}</span></td>
	<td>&nbsp;&nbsp;</td>
	<td width="20" align="center">{FORUM_IMG}</td>
	<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
	<td>&nbsp;&nbsp;</td>
	<td width="20" align="center">{FORUM_LOCKED_IMG}</td>
	<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>

<!-- INCLUDE overall_footer.html -->
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [BETA] Upcoming Birthday list

Post by lefty74 »

try this
find

Code: Select all

<!-- IF S_DISPLAY_BIRTHDAY_LIST && BIRTHDAY_LIST -->
replace with

Code: Select all

<!-- IF S_DISPLAY_BIRTHDAY_LIST && BIRTHDAY_LIST  or BIRTHDAYS_AHEAD_LIST -->
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [BETA] Upcoming Birthday list

Post by lefty74 »

cheers :)
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
guitartuner
Registered User
Posts: 15
Joined: Wed Nov 07, 2007 12:00 pm

Re: [BETA] Upcoming Birthday list

Post by guitartuner »

lefty74 wrote:try this
find

Code: Select all

<!-- IF S_DISPLAY_BIRTHDAY_LIST && BIRTHDAY_LIST -->
replace with

Code: Select all

<!-- IF S_DISPLAY_BIRTHDAY_LIST && BIRTHDAY_LIST  or BIRTHDAYS_AHEAD_LIST -->
cool that fixed it!

thanks! ;)
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [BETA] Upcoming Birthday list

Post by lefty74 »

I got contacted by primehalo, author of many cool mods around here to make this mod compatible with his Prime Birthddate Require.

To do this you will need to do the following:
find:

Code: Select all

$result = $db->sql_query($sql);     
Add before:

Code: Select all

    $prime_birthdate_installed = function_exists('user_show_congrats');
    if ($prime_birthdate_installed)
    {
        $sql = str_replace('FROM ' . USERS_TABLE, ', user_show_age FROM ' . USERS_TABLE, $sql);
    }    
find:

Code: Select all

       $birthday_ahead_list .= (($birthday_ahead_list != '') ? ', ' : '') . '<a' . $user_colour . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&u=' . $row['user_id']) . '" title="' . date('d M', $user_birthday) . '">' . $row['username'] . '</a>';     
Add before:

Code: Select all

        if ($prime_birthdate_installed)
        {
            if (!user_show_congrats($row['user_show_age']))
            {
                continue;
            }
            $row['user_birthday'] = (user_show_age($row['user_show_age'])) ? $row['user_birthday'] : '';
        }    
This method will make it work for people who have primehalo's MOD installed and keep it compatible for those who don't.

I will also include this in the next release of this mod.
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
User avatar
JezUK1
Registered User
Posts: 735
Joined: Wed Jul 27, 2005 11:12 pm
Location: England, Somerset
Contact:

Re: [BETA] Upcoming Birthday list

Post by JezUK1 »

Hi, Can any of you please tell me if this works with phpbb3 3.0.0?
Jez

ControlThis.co.uk - Your online model shop
moifest
Registered User
Posts: 251
Joined: Tue Nov 06, 2007 4:58 pm

Re: [BETA] Upcoming Birthday list

Post by moifest »

Working on my Gold board 8-)
User avatar
JezUK1
Registered User
Posts: 735
Joined: Wed Jul 27, 2005 11:12 pm
Location: England, Somerset
Contact:

Re: [BETA] Upcoming Birthday list

Post by JezUK1 »

Can you please tell me how I could go about installing this mod plz with phpbb3 as I dont have easymod yet lol?
Jez

ControlThis.co.uk - Your online model shop
Locked

Return to “[3.0.x] MODs in Development”