https://www.icyphoenix.com/viewtopic.php?f=29&t=4156
-----------------------------------
Chaotic
Sat 03 May, 2008 21:53

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][img]http://www.icyphoenix.com/files/images/3295/birthday1_1209844349_864165.jpg[/img][/spoiler] 

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

 [spoiler][img]http://www.icyphoenix.com/files/images/3295/birthday2.jpg[/img][/spoiler]

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


-----------------------------------
KasLimon
Sun 04 May, 2008 23:45

Re: Duplicate Birthday Entries
-----------------------------------
It also happens to me...

Thanks for reporting :mricy:


-----------------------------------
Mighty Gorgon
Sun 18 May, 2008 20:15

Re: Duplicate Birthday Entries
-----------------------------------
You are right, it is a bug.

OPEN [b]includes/functions_calendar.php[/b]
FIND
[codeblock]	$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);
		}
	}[/codeblock]
REPLACE WITH
[codeblock]	$current_page = basename($_SERVER['PHP_SELF']);

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

Let me know if this will solve your problem.


-----------------------------------
Lopalong
Fri 20 Jun, 2008 13:00

Re: 027-0013 Duplicate Birthday Entries
-----------------------------------
[quote=Chaotic] 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 [/quote]

Thanks for letting us know.  8)


-----------------------------------
Mighty Gorgon
Thu 26 Jun, 2008 16:52

Re: 027-0013 SOLVED - Duplicate Birthday Entries
-----------------------------------
Thanks Chaotic.

I appreciate.


