[SOLVED] Birthdays Aren't Showing On Calendar Row


Subject: [SOLVED] Birthdays Aren't Showing On Calendar Row
They show up in the Birthday box in forum.php, they show up in the users' profiles, they show up in calendar's full view, but they do not show on the calendar row in the forum.php page.

Any ideas on how to make them show up there?

Thank you in advance for your kind help.

Regards

Last edited by BIG BOSS on Sat 15 Mar, 2008 15:29; edited 1 time in total
Profile PM  
Subject: Re: Birthdays Aren't Showing On Calendar Row
Calendar's row in the forum page? I think that is supposed to be removed, MG didn't like it. Which version of Icy are you using?

Actually if you are seeing the calendar block, it may not be coded to display birthdays... if you go into includes/functions_calendar.php, look for the lines:
Code: [Download] [Hide] [Select]
if ( strstr($_SERVER['PHP_SELF'] , 'calendar.php' ) == true)
{
get_birthday($events, $number, $start_date, $end_date);
}


Perhaps try modifying this to:

Code: [Download] [Hide] [Select]
if (( strstr($_SERVER['PHP_SELF'] , 'calendar.php' ) == true)|| ( strstr($_SERVER['PHP_SELF'] , 'forum.php' ) == true))
{
get_birthday($events, $number, $start_date, $end_date);
}

Last edited by moreteavicar on Fri 14 Mar, 2008 22:38; edited 1 time in total
Profile PM  
Subject: Re: Birthdays Aren't Showing On Calendar Row
Actually thats a bit untidy doing it that way... think
I prefer...
Code: [Download] [Hide] [Select]
$current_page= $_SERVER['PHP_SELF'];

if (ereg("calendar.php" , $current_page) || ereg("forum.php" , $current_page))
{
get_birthday($events, $number, $start_date, $end_date);
}


Hope it helps ;)

Profile PM  
Subject: Re: Birthdays Aren't Showing On Calendar Row
That did the trick,

THANK YOU!!!

:D

Profile PM  
Subject: Re: [SOLVED] Birthdays Aren't Showing On Calendar Row
You're welcome ;)

Profile PM  
Subject: Re: [SOLVED] Birthdays Aren't Showing On Calendar Row
moreteavicar wrote: [View Post]
Calendar's row in the forum page? I think that is supposed to be removed, MG didn't like it.

Not everything you don't see is something I don't like. :P

Sometimes there are bugs, or simply something not implemented. :wink:

Anyway with the patch this should be solved. :wink:

Thanks for having shown me how to solve this (I've slightly modified your code). :wink:

Subject: Re: [SOLVED] Birthdays Aren't Showing On Calendar Row
Mighty Gorgon wrote: [View Post]
moreteavicar wrote: [View Post]
Calendar's row in the forum page? I think that is supposed to be removed, MG didn't like it.

Not everything you don't see is something I don't like. :P

Sometimes there are bugs, or simply something not implemented. :wink:

Anyway with the patch this should be solved. :wink:

Thanks for having shown me how to solve this (I've slightly modified your code). :wink:
Oh... Well... I do vaguely remember seeing you post (quite a long time ago, during phpBBXS to Icy transition) that you didn't like the javascript calendar and was thinking of removing it...
I mean, its not like you wouldn't have been able to do a simple fix like this if you wanted to ;)
And of course, I'm not going to go dredging through ancient posts to see if my memory serves me correct... I just know I am :P

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.0895s (PHP: 20% SQL: 80%)
SQL queries: 12 - Debug Off - GZIP Enabled