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


Go Back   Easy PHP Calendar > General Discussion > Installation / Upgrade Questions

Installation / Upgrade Questions Questions or issues concerning the installation of the Easy PHP Calendar script.

Closed Thread
 
Thread Tools Search this Thread Display Modes

Link from calendar to event on a date
Old 07-13-2006, 07:56 PM   #1
Ulysses
Calendar User
 
Ulysses is offline
Join Date: May 2006
Posts: 13
Question Link from calendar to event on a date

Hi,

How can we make dates on a calendar link to an event page?

The calendar is at: http://singleinthecity.com.au/

We would to be able to click on a date and go to that date's event or at least a page with all the events in that month.

Example: http://singleinthecity.com.au/index.php?page=calendar

Thanks
 

Old 07-13-2006, 08:14 PM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

As per the Online Documentation -- under Customize - Command-Line Variables

Quote:
unset($epcAltLink); $epcAltLink="X";
By inserting this line just before requiring the normal calendar, the calendar will not display pop-ups and will instead link to the URL X when clicked (Example: $epcAltLink="http://www.easyphpcalendar.com/events.php"; ). This is useful when you have a small calendar on the home page, that when clicked, will then open another page with the TOC calendar or to the listing module, etc...
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 07-13-2006, 09:30 PM   #3
Ulysses
Calendar User
 
Ulysses is offline
Join Date: May 2006
Posts: 13
Default

Thanks for your help ve9gra.

However, we have two instances of require calendar.php.

<?php $CSS=1; require("calendar/calendar.php"); ?> above </head>
and
<?php require("calendar/calendar.php"); ?> where the small calendar is on the page.

First we tried adding
Code:
$epcAltLink="http://singleinthecity.com.au/index.php?page=calendar";)
then we tried adding
Code:
unset($epcAltLink); $epcAltLink="http://singleinthecity.com.au/index.php?page=calendar";)
above each of the require calendar.php instances (one at a time) but could not get it to work. In fact it broke the page and spat out an error message.

What do you think is the matter?

Thanks again
 

Old 07-14-2006, 08:54 AM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,885
Default

The altLink should go right before the last require. Shouldn't break the page...

What you may want to do is put standard HTML links in your description and make the pop-ups "sticky" which will allow users to click them. These links would then take them to the page you want.
__________________
-- Brian

Questions?

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

Old 07-14-2006, 10:51 PM   #5
Ulysses
Calendar User
 
Ulysses is offline
Join Date: May 2006
Posts: 13
Default

Ok,

We found the problem. The correct code to add was:

<? $epcAltLink="http://singleinthecity.com.au/index.php?page=calendar"; ?>
Not:
$epcAltLink="http://singleinthecity.com.au/index.php?page=calendar";)

Now, is there any way to have the mouseover pop-ups on the calendar as well, or is this like having your cake and eating it?

Thanks
 

Old 07-15-2006, 09:31 AM   #6
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,885
Default

Actually, if you added the altLink code just before the last require, it would look something like this:

<?php $epcAltLink="http://singleinthecity.com.au/index.php?page=calendar"; require("calendar/calendar.php"; ?>

The php script tags would already be there...

It's either the pop-ups or the alt-link. Currently you can't do both.
__________________
-- 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
Event Manager and Text on Calendar Mode together? palatinate11 General 3 03-22-2006 03:53 PM
Link inside event vlus General 2 11-23-2004 03:20 PM
passing the event date in a url stewart.campbell General Support 0 11-22-2004 04:55 PM
Delete Event after the Current Date? Muneo General Support 1 02-08-2004 05:04 PM



All times are GMT -4. The time now is 05:34 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 |