Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

Empy list not showing "no events to display" text?
Old 02-05-2006, 04:06 PM   #1
Danimal
Calendar User
 
Danimal is offline
Join Date: Feb 2006
Posts: 14
Default Empy list not showing "no events to display" text?

When I have a date range that doesn't include any events, I should see the "There are no events to display for this time period" bit (I'm using modern.php template), but I don't see anything.

Is there a value that turns it on (or off?)

I have $noNav=1 set but other than that I don't have anything that I can think of that would cause this part to not be displayed.

Is there a FAQ on this or a previous thread? The annoying thing is that I think this was working at some point, but isn't now. Hrm.

Any thoughts/help?

Thanks!

-Danimal
 

Old 02-05-2006, 04:10 PM   #2
Danimal
Calendar User
 
Danimal is offline
Join Date: Feb 2006
Posts: 14
Default

Ok,

Here's the weird thing... I have at the top of the page a list view with a custom template (mostly just no table formatting... really stripped down), and then later on in the page, I have a navigatable list view using the default "modern.php" template.

The one at the top of the page shows the "empty" stuff in the template when there are no events, but the other one (that uses modern.php) does not.

So I wonder if there is a setting that needs to be explicitly set (or unset!) between the two?

-Danimal
 

Old 02-05-2006, 06:38 PM   #3
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

I think I remember something about some value needing to be reset if you're using the listing module twice in the same page.

Try disabling the first list to see if the one using modern.php works then.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

No luck searching...
Old 02-06-2006, 10:47 AM   #4
Danimal
Calendar User
 
Danimal is offline
Join Date: Feb 2006
Posts: 14
Default No luck searching...

Hrm... I did some searching but I can't find anything. Here's the relevant code...

First, at the top of the page (but in the <body> tag so after the $OL=1 call), I have:

Code:
        <?php
// SHOW LISTINGS MODULE
$epcListMouseover=1; // WILL USE THE MOUSE-OVER POPUPS FOR LIST MODE
$LIST=1;
$listWeeks=52;
$listEvents=3;
$showCat=9;
$noOld=1;
$DF = "M jS, Y";
$template="latestnewslist.php";
require("calendar/calendar.php");
?>
And then later I have:

Code:
<?php
unset($showCat);
?>
To make sure that calendars below don't only show category 9. Then I have:

Code:
 <?php
$noNav=1;
// SHOW LISTINGS MODULE
    require("calendar/plugins/navigation.php");
    $epcListMouseover=1; // WILL USE THE MOUSE-OVER POPUPS FOR LIST MODE
    $LIST=1;
    unset($listWeeks);
    unset($listEvents);
    $listMonths=12;
    $DF = "M jS, Y (D)";
    $template="modern.php";
    unset($shownEvents);
    require("calendar/calendar.php");
?>
And the interesting thing is that the listing at the top of the page shows the "no events for this time period" blurb (the "empty" tag in the template) when there are no events... but the second listing doesn't show it (the "empty" tag stuff from the template) when there are no events.

If I turn the first one off completely (i.e. comment out the code), then the second one works just fine.

So there's something being set that I need to unset, presumably, but I have no idea what it is.

Any thoughts anyone?

Thanks!

-Danimal

P.S. FWIW the require line regarding "navigation.php" is a plugin I made myself to create a customized navigation include with images and with some stateful calculations (like if I'm in single month view, it navigates by single months, if I'm in month + list view, it navigates by 3-month increments and if I'm in list-only view, it navigates by year increments). Also, this require and the $noNav=1 make no difference in terms of this issue.

Last edited by Danimal; 02-06-2006 at 10:51 AM.
 

Old 02-06-2006, 03:05 PM   #5
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

I can't test this right now, but try to unset($ev); .
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 02-06-2006, 04:28 PM   #6
Danimal
Calendar User
 
Danimal is offline
Join Date: Feb 2006
Posts: 14
Default

Nope. Didn't work. :-(
 

Old 02-06-2006, 05:11 PM   #7
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Can you zip and attach your original page so I can test it locally? (Or attach it to a support ticket).
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 02-06-2006, 06:06 PM   #8
Danimal
Calendar User
 
Danimal is offline
Join Date: Feb 2006
Posts: 14
Default

Yup. Ticket submitted.

Thanks!

-Danimal
 

Old 02-07-2006, 12:01 AM   #9
Danimal
Calendar User
 
Danimal is offline
Join Date: Feb 2006
Posts: 14
Default

unset($displayedEvents);

That was it!

-Danimal
 

Old 02-07-2006, 07:45 AM   #10
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Glad to help!
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
List Mode - Being able to list events far into future cmb1202 General Support 2 11-04-2005 10:39 AM
List mode - show all past events for year neubeedoo Customizations (Themes / Templates) 3 11-01-2005 02:46 PM
I'd Like to show Past Events in List Mode macdonut General Support 4 08-24-2005 10:01 AM
list module doesn't list all events... hazonweb General Support 2 04-14-2005 04:34 PM
Showing events in from previous and next months in TOC. charlotte21 General Support 9 03-30-2005 09:25 AM



All times are GMT -4. The time now is 07:17 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |