PDA

View Full Version : Redeclare problem


Halfhidden
05-31-2010, 12:43 PM
Hi everyone I'm hoping that you will be able to help me as I've been going around in circles on this one.
I am trying to parse bb code in the events calendar script. I've added what I think I should in order for the page to parse. I'm calling this script through a VBAdvanced module so I've added changedir() to the script.
I thought I was on a winner but now I get the following redeclare error:
Fatal error: Cannot redeclare groupbyevent() (previously declared in /home/mydomain/public_html/forum/forum.php:315) in /home/mydomain/public_html/forum/modules/upcomingevents.php on line 207

Here is the script:

Thanks for helping me :)

Halfhidden
06-13-2010, 08:37 PM
Wow I'm so surprised nobody knows the answer to this.

ForumsMods
06-13-2010, 08:47 PM
Use this.

Halfhidden
06-13-2010, 09:00 PM
@VBStyle thanks for answering my thread.
I did try the xml file but got the same result. This is what I get instead of the bbcode parse

http://www.picturepenzance.co.uk/other_sites_pictures/marazion_carnival.JPG Marazion Carnival 2010 The carnival will be held on Sunday 13th June 2010 and it is hoped that it will be even bigger and better than last year. For more information phone Lorraine 01736 361528

Thanks for trying anyway... really appreciated. :)

Sorry I had to put it in a PHP quote because this site parses bbcode correctly otherwise.