addEvent via lightbox oustide the scheduler

The HTML output is still empty. Any other ideas?

Hello,

[code]

<?php require_once($_SERVER['DOCUMENT_ROOT'].'/testsite/wp-content/plugins/event-calendar-scheduler/scheduler.php'); echo scheduler_init(); ?>
[/code] Forgot 'echo' part.. :blush:

Best regards,
Ilya

That was the trick and now it is working. Thank you!

I am using the new dhtmlxscheduler.js file that you provided, but I would like to modify the positioning of the lightbox. It is centered perfect, but the top (or bottom) offset is too much. It shows up at the bottom if not half below the screen fold. I would like to have it appear dead center of the screen.

I played around with the getOffset functions that did not appear to do anything.

Hello,

dhtmlxscheduler.js
Look for

box.style.top=Math.round(((document.body.offsetHeight-box.offsetHeight)/2) + 9)+"px";

You can try to play with +9 part.

I can confirm the issue, maybe I will come up with a solution.

Best regards,
Ilya

If I change it between -250 and -300 it comes in line better, but I had to do that on both lines of the if/else statement. If you do identify a better solution to calculate the center spot, I would love to get the code.

Thanks for all your help.

Well almost there. I am finding with long pages it is still falling way below the fold. Very odd!

Hello,

Open dhtmlxscheduler.js file, locate following part:

scheduler.showCover=function(

Change whole function declaration to:

scheduler.showCover=function(D){if(D){D.style.display="block";var A=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;var E=window.pageXOffset||document.body.scrollLeft||document.documentElement.scrollLeft;var C=window.innerHeight||document.documentElement.clientHeight;var B=window.innerWidth||document.documentElement.clientWidth;if(A){D.style.top=Math.round(A+Math.max((C-D.offsetHeight)/2,50))+"px"}else{D.style.top=Math.round(Math.max(((C-D.offsetHeight)/2),50)+9)+"px"}if(E){D.style.left=Math.round(E+(B-D.offsetWidth)/2)+"px"}else{D.style.left=Math.round((B-D.offsetWidth)/2)+"px"}}this.show_cover()};

Now lightbox should be displayed correctly.

Best regards,
Ilya

Works perfectly. Thank you so much.

If you would like to check it out, please feel free at:
blogstew.net/foodfrenzy

Note, the calendar icons to adding a post as an event on scheduler will show up if you register with the site, but hey who isn’t interested in food…right?

thanks again.