[EventCalendar] Problem with advanced queries

Torsten Landsiedel Torsten.Landsiedel at gmx.de
Wed Nov 22 02:14:30 UTC 2006


Am 21.11.2006 16:45 schrieb Alex Tingle:
>> But I have got a problem. The "advanced queries" do not function on my 
>> site:
>>
>> http://www.lag-film-sh.de/cms/?ec3_before=today
>> http://www.lag-film-sh.de/cms/?ec3_days=7
>> http://www.lag-film-sh.de/cms/?ec3_after=2006-10-15
>> http://www.lag-film-sh.de/cms/?ec3_before=2006-10-15
>>
>> Just the first site of my website is appearing...
> 
> I think it's because your front page doesn't contain a WordPress loop. 
> You are not showing posts on your front page, so the modified query is 
> never used. If you use the advanced queries on a page that DOES have a 
> loop, then then work fine.
> 
> http://www.lag-film-sh.de/cms/kategorie/programm/?ec3_days=7
> http://www.lag-film-sh.de/cms/kategorie/programm/?ec3_before=today

Hello Alex,
yes, you are right. That was it. Thanks for your fast help!

>> BTW, in the CSS-file there are missing some semikolons (";") and I have
>> removed the "\n" after the line: "<!-- Generated by Event Calendar
>> v3.1.0 -->", because it creates a HTML-Failure.
> 
> Would you send me a patch?

Line 396 in template-functions.php:
echo "<!-- Generated by Event Calendar v$ec3->version -->\n";
edited version:
echo "<!-- Generated by Event Calendar v$ec3->version -->";

If I do not edit this line, I get a HTML-Failure, because a HTML-block 
element closes the paragraph. (Tidy, W3C-Validator) Maybe it is just in 
*my* template and not in all templates.

> BTW, you do realise that there is nio need to put a semi-colon 
> immediately before a '}'?

You are again right. There is no need to do this. My CSS-Editor shows me 
(with syntax-highlighting) that I should insert a semikolon, but if 
there are no more definitions after a CSS-defintion you do not have to 
insert a semikolon. So you are right!

Keep up your great work!


Greetings from Germany
Torsten



More information about the EventCalendar mailing list