[EventCalendar] Option to Show Selected Events as Normal Blog
Entries Too?
Dr. Peter Troxler
peter.troxler at gmx.net
Tue Sep 18 06:04:37 UTC 2007
Here's a patch....
>>
>> Index: eventcalendar3.php
>> ===================================================================
>> --- eventcalendar3.php (revision 245)
>> +++ eventcalendar3.php (working copy)
>> @@ -232,8 +232,8 @@
>> elseif(!$ec3->is_category):
>>
>> // Hide all events
>> - $where.=" AND ec3_sch.post_id IS NULL ";
>> - $ec3->join_ec3_sch=true;
>> + $where.=" AND
>> ec3_post2cat.category_id!=$ec3->event_category ";
>> + $ec3->join_post2cat=true;
>>
>> endif;
>> endif;
1) @@ --> tells you on what lines to look for, line 232 in this case
2) find this line
3) basically remove (or comment out) all lines in your file that
correspond to the lines above except for the little - at the beginning
4) add all lines from the above that have a + sign, obviously without
that + sign
(note: the '$where.=" AND' and 'ec3_post2cat.category_id!=$ec3-
>event_category ";' would obviously want to be on one line ;-)
On 17-sep-2007, at 23:32, Rob Shurtleff wrote:
> Hopefully this pushes this thread back up from last month. Can
> anyone point to instructions for the patch that will cause an event
> with an additional category to be displayed as a normal post and in
> the event calendar. This is a great capability (and hopefully goes
> main line at some point in the future).
>
> new to list, thanks for the help in advance
>
>
> Maybe a dumb question, but how exactly are you supposed to apply
> this patch?
>
> Joe Subs <
>
> subs.scriber at gmail.com> wrote: Thanks Alf,
>
> have just sent you an email for more instructions and tips.
>
> To the others on the list, I'll share with you the answer to the
> mysteries once its resolved.
>
>
>
> cheers,
>
> JK
>
>
>
> On Aug 29, 2007, at 10:07 PM, Alf Haakon Lund wrote:
>
> > Hi All,
> >
> > I had a similar wish for my website, where I wanted the first
>
> >
> upcoming event to be displayed not only in the calendar, but as a
> > front page posting. The solution for me was following the Doctor's
> > advice, adding an extra loop in my index.php
> making a query for the
>
> > event category, displaying one post. You can see it in action on
> >
> http://aas-stasjon.no/ (Norwegian only, sorry).
> >
> > However I suspect you might be happier using the patch posted in
>
> >
> http://penguin.firetree.net/pipermail/eventcalendar/2006-November/
> > 001089.html
> >
> >
> The patch will keep events separate as long as they're only
> > assigned to the event category. If it's assigned to multiple
>
> > categories, it will display on your normal blog section as well.
>
> >
> > Good luck!
> >
> > Alf
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20070918/151609b0/attachment.htm
More information about the EventCalendar
mailing list