PDA

View Full Version : Single Event in MouseOver pop up


unkNown_
09-21-2006, 02:32 PM
I am currently using the trial version, trying to work out all the kinks before I order. I have inputted about 6 events for one day, and when using the mouseover pop up feature, all the events are displayed for that day in the pop up. I want the event that the mouse is over to be displayed instead of all the events. The TOC Demo calendar located here --> http://www.easyphpcalendar.com/demoTOC.php shows what I am looking to do. The mouseover pop up has one event, while the onclick popup has all of them.

Thanks for the assistance, and thus far, very nice product!

Brian
09-21-2006, 02:36 PM
This is a limitation of Version 6. It's assumed that if you're using the TOC mode, you wouldn't need both the mouseover and on-click pop-ups. This may be changed in a future release.

unkNown_
09-21-2006, 02:39 PM
How is the demo on your site using it then? All I want, is to get a single event into a pop up instead of all of them.

Brian
09-21-2006, 04:22 PM
On the demo on this site, if you click on a date with more than one event, the pop-up shows all of the events? The mouse-over will show only the event that was pointed to.

unkNown_
09-21-2006, 04:37 PM
Exactly. I'm fine with the onClick having all the events. My problem is the mouseOver has all the events also. See here: http://www.firehallfitness.com/index.php?z=events

Thanks for your quick responses!

Brian
09-21-2006, 05:15 PM
Then you're using an older version. Please download the latest release from the Free Download page and install the files to your server. This should do what you're looking for.

unkNown_
09-21-2006, 05:20 PM
hmm strange, I downloaded it today from your site, but I'll give it a try again.

Thanks

Brian
09-21-2006, 05:31 PM
That is strange. Please let me know if you continue to have this issue...

unkNown_
09-21-2006, 05:36 PM
I downloaded the newest version from http://www.easyphpcalendar.com/getFile/?file=ic and I'm still getting the same results. If you look the 11th there are three events. When you mouseOver on any of the events they all show up in the pop-up.

Brian
09-21-2006, 10:16 PM
It doesn't do this on the demo.php page: http://www.firehallfitness.com/calendar/

Something on your page or the way it's integrated is causing this.

Can you zip and attach your index.php file? (Or, if you want, do so in a support ticket).

ve9gra
09-22-2006, 07:38 AM
I just checked your installation, and it seems that you've included the demo.php instead of following the instructions for a proper integration.

Please check the "Integration" section in the Online Documentation (http://docs.easyphpcalendar.com/).

unkNown_
09-22-2006, 12:08 PM
You are correct, I was doing require("calendar/demo.php") instead of the way you guys specify. I have now switched the methods used to call the calendar and I am still getting the same results. My index.php file is very simple. It's basically an html file with calls to php functions within the file functions.php.


<? require('functions.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><? echo displayTitle(); ?></title>
<link href="/css/main.css" rel="stylesheet" type="text/css" media="screen" />
<? headInput(); ?>
</head>
<body>
<? bodyInput(); ?>
<div id="container">
<div id="header"></div>
<div id="menuContainer">
<div id="mainMenu">
<h1><span class="menumiddle">Menu</span></h1>
<ul>
<? mainMenu(); ?>
</ul>
</div>
</div>
<div id="contentContainer">
<? displayContent(); ?>
</div>
<div id="footer"><p>&nbsp; <a href="?z=login">© </a> 2006 Firehall Fitnesss & Health Center</p></div>
</div>
</body>
</html>


headInput() and bodyInput() is were created specifically to set the $CSS and $OL vars respectively (and require calendar.php after each one).

function headInput() {
if ($_GET['z'] == "events") {
$CSS = 1;
require("calendar/calendar.php");
}
else {
return 0;
}
}
function bodyInput() {
if ($_GET['z'] == "events") {
$OL = 1;
require("calendar/calendar.php");
}
else {
return 0;
}
}

Here is the php output for this page for each function:

displayTitle() ::
if ($_GET['z'] == 'events') { return 'Firehall Fitness :: Event Calendar'; }

mainMenu() ::
function mainMenu() {
echo '<li><a href="?z=home">Home</a></li>
<li><a href="?z=aboutus">About Us</a></li>
<li><a href="?z=contact">Contact Info</a></li>
<li><a href="?z=events">Events/Classes</a></li>
<li><a href="?z=vtour">Virtual Tour</a></li>
<li><a href="?z=healthcenter">Health Center</a></li>
<li><a href="?z=specials">Current Specials</a></li>
<li><a href="?z=newsarch">News Archive</a></li>';
if (($_SESSION['news'] == 1) || ($_SESSION['admin'] == 1)) {
echo '<li><a href="?z=addnews">Add News</a></li>';
}
if (($_SESSION['events'] == 1) || ($_SESSION['admin'] == 1)) {
echo '<li><a href="calendar/events/index.php?name='.$_SESSION['username'].'&pwd='.$_SESSION['realpass'].'">Event Manager</a></li>';
}
if ($_SESSION['logged_in'] == 1) {
echo '<li><a href="?z=logout">Logout</a></li>';
}
}

displayContent() ::
if ($_GET['z'] == 'events') { displayEvents(); }

displayEvents() ::
function displayEvents() {
echo '<h1>Firehall Fitness Event Calendar</h1>';
$TOC = 1;
require("calendar/calendar.php");
}

I think that's everything. Obviously, my css file is located here --> http://www.firehallfitness.com/css/main.css

Thanks for your help!

Brian
09-22-2006, 12:17 PM
The problem is that you're calling the calendar parts from within functions. These functions are not allowing the needed variables to pass to the calendar when it displays (it's just the way PHP works... variables in functions die when the function is complete).

Can you do this without functions?

unkNown_
09-22-2006, 12:28 PM
hmm, the cms that I have built relies completely on the functions. I'll try a few different things and get back to you. Thanks for the quick response.

unkNown_
09-22-2006, 06:23 PM
Solution ::

Here's the workaround I did to get it functioning:

The new index.php ::

? require('functions.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><? echo displayTitle(); ?></title>
<link href="/css/main.css" rel="stylesheet" type="text/css" media="screen" />
<?php
if ($_GET['z'] == 'events') {
require('eventscss.php');
} ?>
</head>
<body>
<?php
if ($_GET['z'] == 'events') {
require('eventsol.php');
} ?>
<div id="container">
<div id="header"></div>
<div id="menuContainer">
<div id="mainMenu">
<h1><span class="menumiddle">Menu</span></h1>
<ul>
<? mainMenu(); ?>
</ul>
</div>
</div>
<div id="contentContainer">
<?
if ($_GET['z'] == 'events') {
require('events.php');
}else{
displayContent();
} ?>
</div>
<div id="footer"><p><a href="?z=login">© </a> 2006 Firehall Fitnesss & Health Center</p></div>
</div>
</body>
</html>


As you can see, I'm checking to see if the url z get value is "events" and if it is to require one of three php files. Those files are:

eventscss.php ::
<?php
$CSS = 1;
require("calendar/calendar.php");
?>

eventsol.php ::
<?php
$OL = 1;
require("calendar/calendar.php");
?>

and events.php ::
<?php
$TOC = 1;
require("calendar/calendar.php");
?>


This seemed to do the trick! Thanks for all your help, and I will be ordering very soon.

unkNown_
09-22-2006, 06:26 PM
and I realized I probably made it more difficult than it needs to be. I could simply do:

<?php
if ($_GET['z'] == 'events') {
$TOC = 1;
require('calendar/calendar.php');
}
else {
displayContent();
}
?>


Oh well, it was a good learning experience about functions...

Brian
09-22-2006, 06:32 PM
Glad you got it working!

:)