027-0013 Duplicate Birthday Entries »  Show posts from    to     

Icy Phoenix


Old Bugs - 027-0013 Duplicate Birthday Entries



Chaotic [ Sat 03 May, 2008 21:53 ]
Post subject: 027-0013 Duplicate Birthday Entries
I think this is a bug, but double check to be sure.

When viewing the forum.php page, notice the calendar row showing the birthdays:

Spoiler: [ Show ]


When viewing the viewforum.php page, notice the double entries of birthdays on the calendar row:

Spoiler: [ Show ]


This happens in every theme installed. I'm using the latest patched version of IP.


KasLimon [ Sun 04 May, 2008 23:45 ]
Post subject: Re: Duplicate Birthday Entries
It also happens to me...

Thanks for reporting


Mighty Gorgon [ Sun 18 May, 2008 20:15 ]
Post subject: Re: Duplicate Birthday Entries
You are right, it is a bug.

OPEN includes/functions_calendar.php
FIND
Code: [Hide] [Select]
$current_page = $_SERVER['PHP_SELF'];

for ($i = 0; $i < count($pages_array); $i++)
{
if (strpos(strtolower($current_page), strtolower($pages_array[$i])) !== false)
{
get_birthday($events, $number, $start_date, $end_date);
}
}

REPLACE WITH
Code: [Hide] [Select]
$current_page = basename($_SERVER['PHP_SELF']);

if (in_array(strtolower($current_page), $pages_array))
{
get_birthday($events, $number, $start_date, $end_date);
}


Let me know if this will solve your problem.


Lopalong [ Fri 20 Jun, 2008 13:00 ]
Post subject: Re: 027-0013 Duplicate Birthday Entries
Chaotic wrote: 
Lopalong,

Sorry to be sending you a PM, but I guess it's the best way to tell you this.

http://www.icyphoenix.com/viewtopic.php?p=28228#p28228

I'm sorry I didn't see MG's last post until today. I applied the fix he mentioned in his post and it worked perfectly. I tried to reply to the topic, but it said only moderators were allowed to reply.

Just wanted to let you guys know that worked.

Thanks again,

Chaotic


Thanks for letting us know.


Mighty Gorgon [ Thu 26 Jun, 2008 16:52 ]
Post subject: Re: 027-0013 SOLVED - Duplicate Birthday Entries
Thanks Chaotic.

I appreciate.




Powered by Icy Phoenix