Text Output when Calender is emty like "Currently no Event"


Hi… The Topis said it already. Just a Text Output. Is it possible?

Ah, I’m using the WP Plugin Event Calendar / Scheduler V.1.3



Great Plugin btw!

The next code will add such effect


scheduler.attachEvent(“onXLE”,function(){
window.setTimeout(function(){
var all = scheduler.getEvents(new Date(1,1,1),new Date (9999,1,1));
if (!all.length){
var message = document.createElement(“DIV”);
message.innerHTML=“Currently no Event”;
message.style.cssText = "position:absolute; top:5px; left:80px; z-index:10002; ";
scheduler._els[“dhx_cal_data”][0].appendChild(message);
}
},1)
})

In case of WP plugin, it need to be added in wp-content\plugins\event-calendar-scheduler\scheduler_init.php , before scheduler.load line ( all quotes need to be escaped to not break php syntax )

Hi, i insert it here… Didn’t work so far.
Cache is emty. The position is right isn’t it?

An idea?




$final .="

            scheduler.init(“scheduler_here”,null,"".get_option(‘scheduler_default’)."");

scheduler.attachEvent(“onXLE”,function(){
    window.setTimeout(function(){
        var all = scheduler.getEvents(new Date(1,1,1),new Date (9999,1,1));
        if (!all.length){
              var message = document.createElement(“DIV”);
              message.innerHTML=“Currently no Event”;
              message.style.cssText = “position:absolute; top:5px; left:80px; z-index:10002; “;
              scheduler._els[“dhx_cal_data”][0].appendChild(message);
        }
    },1)
})

            scheduler.load(””.WP_PLUGIN_URL."/event-calendar-scheduler/events_rec.php?uid="+scheduler.uid());";


" signs should be escaped to make the string correct. For example:


$final .="
scheduler.init(“scheduler_here”,null,"".get_option(‘scheduler_default’)."");

scheduler.attachEvent(onXLE,function(){