[EventCalendar] Maroon date

Alex Tingle alex at firetree.net
Tue Oct 28 18:41:13 UTC 2008


Rick Boatright wrote:
> I'm going to have to go back to the php-debugger to figure out why the if
> isn't triggering when you flip the hide the schedule setting

You need a:
  global ec3;


Furthermore, this isn't doing what you think it is...

>    if(preg_match("[EC3BigCalendar]",$post_content)) {
>      ...

[EC3BigCalendar] matches ANY of the letters 'E', 'C', '3', 'B'... etc. I think
you mean...

   if(strpos($post_content,'[EC3BigCalendar]')!==FALSE)
   {
     ...

-Alex

-- 
:: Let me solve your problems: http://www.firetree.net/consulting/
:: alex.tingle AT firetree.net  +44-7901-552763

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://penguin.firetree.net/pipermail/eventcalendar/attachments/20081028/549d4c2d/signature.pgp


More information about the EventCalendar mailing list