News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

TodaysBirthday

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

Previous topic - Next topic

Robbo_

I have a few other things to do before I get into it.
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

Agantuk

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

adbrad

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.

Eclipse16V

Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
I worked with:
SMF 2 in German

Shop:
SID Giessen

adbrad

i have this working on my rc3 test forum

XerraX

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
ReAliTy iS JuST a DrEAm. HaCk ThE PLaNet!

adbrad

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 '

XerraX

Okay that works. Thank you.  :)
ReAliTy iS JuST a DrEAm. HaCk ThE PLaNet!

ukhalik2

can you make it compatible for smf 2.0 rc3?

adbrad

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

ukhalik2

boardindex.php and boardindex.template.php
well,  i am not going to use it, changed my mind.
thanks for helping, great mod.

tanitram

Can you, please, upgrade it to 2.0 RC4 ?

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

Thank's

performer189

Hi, can be an update or a mod for SMF2.0 RC3? thanks.

Advertisement: