Easy PHP Calendar Script

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

Displaying unique events in LIST view.
Old 03-10-2010, 02:02 PM   #1
Mindsvirge
Calendar User
 
Mindsvirge is offline
Join Date: Jan 2010
Posts: 6
Default Displaying unique events in LIST view.

Good Day,

I'm using the LIST view and would like to know if it's possible to show only 1 listing for each event regardless of re-occurrence over the year.
(Targeting unique events basically)
I know that this can be done by making separate categories but I would like to avoid this if possible as these items are in a subcategory already.

I'll try to explain...

For example if I have the following events:
Running with scissors Session 1 (Every Thursday in April)
Entered as: Running(MainCat) > With Scissors(SubCat) | Description: Running with scissors Session 1

Running with scissors Session 2 (Every 2nd day in May&June)
Entered as: Running(MainCat) > With Scissors(SubCat) | Description: Running with scissors Session 2

Running Blindfolded Session 1 (Every 2nd day in July&Aug)
Entered as: Running(MainCat) > Blindfolded(SubCat) | Description: Running Blindfolded Session 1

Running Blindfolded Session 2 (Every 2nd day in May)
Entered as: Running(MainCat) > Blindfolded(SubCat) | Description: Running Blindfolded Session 2

In a perfect world I would like my list to read as:

Running with scissors Session 1 (Dates lists here or perhaps just the month(s) or no dates at all)
Description here (We can add the data range manually in here if it can be added above)

Running with scissors Session 2 (Dates lists here or perhaps just the month(s) or no dates at all)
Description here (We can add the data range manually in here if it can be added above)

Running Blindfolded Session 1 (Dates lists here or perhaps just the month(s) or no dates at all)
Description here (We can add the data range manually in here if it can be added above)

Running Blindfolded Session 2 (Dates lists here or perhaps just the month(s) or no dates at all)
Description here (We can add the data range manually in here if it can be added above)
 

Old 03-10-2010, 02:26 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 9,977
Default

This isn't a built-in function, but I think our forum moderator (ve9gra) came up with a solution to a similar request.

He should chime in here when he checks the forums.
__________________
-- Brian

Questions?

Instructions | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 03-10-2010, 04:09 PM   #3
Mindsvirge
Calendar User
 
Mindsvirge is offline
Join Date: Jan 2010
Posts: 6
Default

Change of plans.

I have added all of my event types in a main Category:
(Running - With scissors)
(Running - Blindfolded)

As a subcategory I have added:
(Session 1)
(Session 2)
(Session 3)

But I would still like to list the first or perhaps next instance of each.

Example:
(Running - With scissors) (Session 1) Runs Mondays April-May
(Running - With scissors) (Session 2) Runs Tuesdays May-June
(Running - Blindfolded) (Session 1) Runs Wednesdays April-May

Thanks again,
Love the product BTW
 

Old 03-10-2010, 07:57 PM   #4
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,458
Default

Try adding a list with the proper $showCat setting, and then $listMonths=12; and $listEvents=1;

You'd have to reset some variables between your lists, but I'll post that later because I don't remember which ones off the top of my head.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 03-10-2010, 08:28 PM   #5
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,458
Default

I think the ones to unset are:

unset($displayedEvents, $showDateS);

Just slip that in between each list.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 03-16-2010, 06:16 PM   #6
Mindsvirge
Calendar User
 
Mindsvirge is offline
Join Date: Jan 2010
Posts: 6
Default

Sorry for my delay and thanks again for your help.
I tried the following but it did not change how the list looked.
But it does provide the single listing as desired.
Now if I could only get rid of the "date header" (in dark blue) or list a date range.

Should I consider copying and modifying the template to achieve my goal?
Or perhaps I did not use the unset command properly?



<?php

// SHOW LISTINGS MODULE

$showCat="106|";
$LIST=1;
$listMonths=12;
$listEvents=1;

$DF = "M jS, Y (D)";

$template="modern.php";
unset($displayedEvents, $showDateS);
require("scripts/calendar/calendar.php");

?>

Last edited by Mindsvirge; 03-16-2010 at 06:26 PM.
 

Old 03-16-2010, 06:32 PM   #7
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 9,977
Default

Yes, to remove the date header, you'll need to modify the template.
__________________
-- Brian

Questions?

Instructions | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 03-17-2010, 02:01 PM   #8
Mindsvirge
Calendar User
 
Mindsvirge is offline
Join Date: Jan 2010
Posts: 6
Default

Please excused my ignorance (I tried searching the forums) is it now possible to only display some of the categories?

I know this was not possible in the past but I was not sure if the functionality was since added?

Thanks again for the help,
 

Old 03-17-2010, 03:55 PM   #9
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 9,977
Default

Yes, by using the showCat variable, just like in your post above.
__________________
-- Brian

Questions?

Instructions | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 03-17-2010, 05:11 PM   #10
Mindsvirge
Calendar User
 
Mindsvirge is offline
Join Date: Jan 2010
Posts: 6
Default

Sorry I was not very clear, I meant in the listing itself
For example my list show up like this:

[date] [time]
Mar 3rd, 2010 (Wed) -- Mar 4th, 2010 (Thu) 8:00 PM - 9:00 PM

[categories]
*Main* Introductory Swim Classes (March 3-25, 8-9pm)

*Sub*Location: Las Vegas
*Sub*Class Code: 01

[descr]
Long description here

I would like to hide the information for Class Code and Location for within [categories] for example.
 

Old 03-17-2010, 07:59 PM   #11
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,458
Default

Remove the [categories] placeholder from the template.
__________________
-- 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 View: can you group multiple events in one box by date? lynnephelps General 1 10-13-2009 03:53 PM
Displaying Months as Table Heading in List View cgrodriguez Customizations (Themes / Templates) 5 10-07-2009 10:45 AM
Hide today events in List Mode... crisware General Support 1 08-27-2008 04:14 PM
No events are showing on calendar or list view Cappiels General Support 15 07-30-2007 12:34 PM
Events not Displaying in Blog + List View strobogirl Customizations (Themes / Templates) 4 05-23-2007 12:30 PM



All times are GMT -4. The time now is 08:54 PM.


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

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