View Full Version : Mouse over in block
Were do i put
<?php $OL=1; require("calendar/calendar.php"); ?>
in a phpnuke 7.6 site to get mouseover function to work :confused: .
I have the block to show on my site but thats all.
any help would be great, been looking on zola´s page and i really would like something like that.
/pata
ve9gra
01-20-2006, 10:57 AM
You can add the $OL section in your block, right before the call to require the calendar.
I use this code in the block (found here)
<?php
if (eregi("block-Calendar.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
ob_start();
//required if you're going to use overLib
$OL=1; require ("calendar/calendar.php");
//makes the whole calendar point to a TOC link
//unset($epcAltLink); $epcAltLink="modules.php?name=Calendar";
//the line that shows the calendar
require ("calendar/calendar.php");
$content = ob_get_clean();
?>
Should this work ? it shows the calender but i get error message in left corner of IE when moving mouse over an event.
The demo.php works fine (http://www.pata.se/calendar/demo.php)
But not this block (http://www.pata.se)
/pata
the one click mouse funtion is working :classic:
so its only mouse over thats not working
/pata
ve9gra
01-20-2006, 03:27 PM
If you follow the instructions indicated in this post (http://www.easyphpcalendar.com/forums/showpost.php?p=11654&postcount=9) you should be able to get it going. (step #3 is optional - the module can be found in the same thread at this post (http://www.easyphpcalendar.com/forums/showpost.php?p=11608&postcount=4)).
I´m pretty sure i followed those instructions.
I tested the page with Mozilla Firefox 1.5 and then mouse over popup works perfectly, but when using IE 6.0 only one click will work mouse over only indicates an error. Any ideas? Something with my nuke setup ?
/pata
ve9gra
01-21-2006, 07:52 AM
The calendar is not the problem here. You have several <head> tags sprinkled all over your page. Actually, 4 to be exact. This breaks many standards. Also, you have several problems with your CSS...
Error: Expected color but found '#'. Error in parsing value for property 'background'. Declaration dropped.
Source File: http://www.pata.se/themes/Callofduty2/style/style.css
Line: 217
Error: Expected ',' or '{' but found '0.1'. Ruleset ignored due to bad selector.
Source File: http://www.pata.se/themes/Callofduty2/style/style.css
Line: 428
Error: Expected ',' or '{' but found '0.2'. Ruleset ignored due to bad selector.
Source File: http://www.pata.se/themes/Callofduty2/style/style.css
Line: 440
Error: Error in parsing value for property 'background'. Declaration dropped.
Source File: http://www.pata.se/
Line: 864
This is only a few of the errors that popped up when I went to your site... And all the code related to the calendar is all fine and coded properly. It's the other scripts that you need to check out.
PS: These line numbers were calculated using Firefox with the Web Developer's Toolbar.
Thanks for the tip got it working now, it was the squery block that made it not to work, by turning it off calender works great. :)
Thanks for yor super support :clap:
And a great product :clap:
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.