Joomla - id_user in event table

Hello,
I’m using the scheduler for joomla and there is my problem :

in events_rec.php :
I’ve changed a little the table…
$scheduler->render_table($table_name,“id”,“date_deb,date_fin,libelle, id_user”);

in scheduler.php :
if ($options[$usertype] == ‘0’ ) {
$scheduler .= ’
scheduler.attachEvent(‘onClick’,function(id){
var ev = scheduler.getEvent(id).id_user;
if(ev != “-1”)
scheduler.showLightbox(id);
scheduler.config.readonly_form = false;
return true; });’;}

I want that when the event has id_user “-1” the event isn’t editable but when the event has another id_user, the event can be modified.

Please, I need help!

You can try to use

scheduler.attachEvent("onBeforeLightbox",function(id){ if (scheduler.getEvent(id).id_user == -1 ) return false; else return true; })

It will block lightbox for events with specific id_user value.

Thank you very much !
It works !

Now, I need to have a different lightbox when I create/modify an event and when I just view one.

Thanks in advance.

In fact, I have a color in my render_table and I want that the lightbox take this color.
I want that the event by day, week and month also have this color.

Check
samples\02_customization\01_events_coloring.html