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


Go Back   Easy PHP Calendar > General Discussion > Customizations (Themes / Templates)

Customizations (Themes / Templates) Help with customizing the themes and templates. Post your own custom themes for others to enjoy.

Closed Thread
 
Thread Tools Search this Thread Display Modes

Events not Displaying in Blog + List View
Old 05-22-2007, 11:19 AM   #1
strobogirl
Calendar User
 
strobogirl is offline
Join Date: May 2007
Posts: 13
Default Events not Displaying in Blog + List View

Hello,

I am unable to get my events display properly. I am using Blog and List modes, but now I suspect that I either don't fully understand how they work together or my code is incorrect.

I would like the events listed in List Mode. However, if someone clicks on a specific day in the calendar, I would like the events of that day displayed. No pop-ups -- they should be displayed in the space where the list was.

The problem is that when clicking on a specific day, only *some* of the events show up, not all of them. The ones that show up are those that span more than one day.

My code looks like this:

Code:
<div style="width:555px;">

<h1>Calendar of Events</h1>

<div style="float:left; width:340px;margin-right:20px;">

<?php
$LIST=1; 
$DF = "l, F j"; 
$noOld = 1;
$template="modern.php"; 
require ("calendar.php"); 
?>

</div>


<div style="float:left; width:190px;">

<?php
$EPCBLOG=1; 
require ("calendar.php"); 
?>

<br />
<strong>SORT EVENTS:</strong> <br />
<table width="195" border="0" style="margin-bottom:0;">
<tr><td width="15" class="s2 ledCatName" style="background-color:#FFC18A;">&nbsp;</td>
<td><span class="ledCatName"><a href="/vis2/calendar/index.php" style="font-weight:bold;">Show All</a></span></td></tr>
</table>

<?php require("plugins/legend.php"); ?>


</div> <!-- end float right -->
Here is my page: http://www.bbg.org/vis2/calendar

Also - I tried using Blog Mode, instead of List mode, but I couldn't find a way to have more then one day display. Perhaps that is the route to take, with modifications to display more than a day..... ?


I would greatly appreciate any help or clarification that you can give me.

Thank you,
Alison
 

Old 05-22-2007, 05:43 PM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

I'll have to do some testing before I can give you an answer, but I am positive that it can be done.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

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

Replace this bit from your code
Code:
<?php
$LIST=1; 
$DF = "l, F j"; 
$noOld = 1;
$template="modern.php"; 
require ("calendar.php"); 
?>
for this
Code:
<?php
if (isset($_REQUEST['ev'])) {
  $EPCBLOG=2;
  $DF = "l, F j"; 
  $template="modern.php"; 
  require ("calendar.php"); 
} else {
  $LIST=1; 
  $DF = "l, F j"; 
  $noOld = 1;
  $template="modern.php"; 
  require ("calendar.php"); 
}
?>
This will make the list display if there's no day selected, and the blog mode once a day is clicked.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 05-23-2007, 11:00 AM   #4
strobogirl
Calendar User
 
strobogirl is offline
Join Date: May 2007
Posts: 13
Default

Thank you Gervais! That is exactly what I wanted. Except there is one tiny glitch...

The events that appear after clicking on a specific date do not have a date. It shows "[date]" instead of the actual date. Do you know how I could pull this info into the listing? Or place the date at the top of the page?

Again, thanks for your help. Much appreicated.

- Alison
 

Old 05-23-2007, 12:30 PM   #5
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Change the first $template to say "blog.php" and edit your blog.php template so that the style matches your modern.php.

The Blog templates don't parse the date at the same place as the List templates - something I hadn't realized till just now.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 
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 of events in Blog template gratmm General Support 1 05-14-2007 06:10 AM
Layout - BLOG w/90 days list of events jwt General 1 01-27-2007 03:40 PM
Some Events missing from list mode beeptech General Support 3 12-29-2006 06:13 PM
Printing List of Events tina9msu General Support 4 10-05-2006 10:57 PM
list module doesn't list all events... hazonweb General Support 2 04-14-2005 04:34 PM



All times are GMT -4. The time now is 02:45 AM.


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 |