Access rights

Hi

I installed the plugin in wp recently and am setting it. In the Access Rights tab I only see the Default user group/role, how do you add the other roles?
I can not create events by double clicking the calendar as an administrator, is for this reason?
Thank you!

Hi,
are you using default wordpress user groups or maybe some special plugin for this purpose?
Try to open file wp-content/plugins/event-calendar-scheduler/admin.php and modify it like here:

$groups = '['.implode(',', $groups).']';
echo $groups;

It should output something like this in scheduler admin panel:

[{ id: "subscriber", label:"Subscriber" },{ id: "contributor", label:"Contributor" },{ id: "author", label:"Author" },{ id: "editor", label:"Editor" },{ id: "administrator", label:"Administrator" }]

Does it output such line?

Hi

thank you for your answer. Not show any group, only []
We are using the s2member plugin to manage users rights

Salu2

hello,
I have the same problem. This error message is there. only default by the userrules. is there a solution?
wp 3.3.2 using default wordpress user groups
Warning: include(DIR/groups.php) [function.include]: failed to open stream: No such file or directory in /www/htdocs/w00e2b03/www-exampel/exampel/wp-content/plugins/event-calendar-scheduler/admin.php on line 2

Warning: include(DIR/groups.php) [function.include]: failed to open stream: No such file or directory in /www/htdocs/w00e2b03/www-exampel/exampel/wp-content/plugins/event-calendar-scheduler/admin.php on line 2

Warning: include() [function.include]: Failed opening ‘DIR/groups.php’ for inclusion (include_path=’.:/usr/share/php:…’) in /www/htdocs/w00e2b03/www-exampel/exampel/wp-content/plugins/event-calendar-scheduler/admin.php on line 2

Warning: Invalid argument supplied for foreach() in /www/htdocs/w00e2b03/www-exampel/exampel/wp-content/plugins/event-calendar-scheduler/admin.php on line 3

Warning: implode() [function.implode]: Invalid arguments passed in /www/htdocs/w00e2b03/www-exampel/exampel/wp-content/plugins/event-calendar-scheduler/admin.php on line 5

Hi,
please, open file wp-content/plugins/event-calendar-scheduler/admin.php and modify the second line like here:

include(dirname(__FILE__).'/groups.php');

Hi

Nothings

thanks, now I can see all user groups.
Mike

Ok,
now I can see my groups but I can not create any event by double click (or single) on the calendar. The groups have all permissions to add and edit :blush:

Felipe

Please, open file wp-content/plugins/event-calendar-scheduler/codebase/dhtmlxSchedulerConfigurator.php and modify function schedulerInit:

public function schedulerInit($usergroups, $locale, $url, $loader_url) {
	echo "<pre>";
	print_r($usergroups);
	print_r($this->settings['access']);
	echo "</pre>";

	$url = $this->replaceHostInURL($url);
	...

Load scheduler page in browser. It must include information like here:

Array
(
    [0] => administrator
)
Array
(
    [-1] => Array
        (
            [id] => -1
            [view] => true
            [add] => false
            [edit] => false
        )

    [subscriber] => Array
        (
            [id] => subscriber
            [view] => true
            [add] => false
            [edit] => false
        )

    [contributor] => Array
        (
            [id] => contributor
            [view] => true
            [add] => false
            [edit] => false
        )

    [author] => Array
        (
            [id] => author
            [view] => true
            [add] => false
            [edit] => false
        )

    [editor] => Array
        (
            [id] => editor
            [view] => true
            [add] => true
            [edit] => true
        )

    [administrator] => Array
        (
            [id] => administrator
            [view] => true
            [add] => true
            [edit] => true
        )

)

Please, make sure that user group has access rights in configured permissions set.

Hi
shows the following

Array
(
[0] => administrator
)
Array
(
[-1] => Array
(
[id] => -1
[view] => true
[add] => true
[edit] => true
)

[subscriber] => Array
    (
        [id] => subscriber
        [view] => true
        [add] => true
        [edit] => true
    )

[contributor] => Array
    (
        [id] => contributor
        [view] => true
        [add] => true
        [edit] => true
    )

[author] => Array
    (
        [id] => author
        [view] => true
        [add] => true
        [edit] => true
    )

[editor] => Array
    (
        [id] => editor
        [view] => true
        [add] => true
        [edit] => true
    )

[administrator] => Array
    (
        [id] => administrator
        [view] => true
        [add] => true
        [edit] => true
    )

)

Could you provide link to your scheduler page and ability to edit it?
Access rights are correct.

Hi

You admin user is dhtmlx. Recovery password at info@dhtmlx.com

Web desafios.visualbit.net/wp-admin/

Thanks!

Hi all

Any idea why we can not create events?

It is possible download a previous version?

How to help, is someone I could screens capture or content of the database with the basic definitions for if we had done wrong us?

Thanks

Hi

I made a local installation on my server (ubuntu) and it works perfectly!! Review settings. Could be a permissions problem?

Thank you!

Hi again

At error_log found that

[11-May-2012 03:35:10] PHP Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘SchedulerConfig::posts_table_builder’ was given in /home1/…/wp-content/plugins/event-calendar-scheduler/codebase/connector/tools.php on line 93

Hi

Solved!

If at settings is enabled is shown that the post is creating events disables double click on the calendar.

Just one more question. We need to include a link to a post which is a form (for reserves, for example) is there any way to pass parameters like date = 20120513 # desafios.visualbit.net/formulario/, event_id = 22?

Hi,

Yes, “show posts as events” prevent creating/editing/deleting events.

Scheduler plugin doesn’t provide such functionality, but you may customize it yourself.
Scheduler parses window.location.hash and takes current date and view.
You may pass something like:
yoursite/scheduler/?page_id=4#da … eek,id=152
When page is loaded you have to check if id parameter presents in location hash:

var hash = window.location.hash; // #date=2012-05-14,mode=week,id=152
hash = hash.split("#")[1]; // date=2012-05-14,mode=week,id=152
hash = hash.split(","); // [date=2012-05-14 , mode=week , id=152] it's array
var incoming = {};
for (var i = 0; i < hash.length; i++) {
   var tmp = hash[i].split('=');
   if (tmp.length === 2)
      incoming[tmp[0]] = tmp[1];
}
// incoming.id contains information about passed event id.
// show lightbox with event details
if (typeof(incoming.id) !== 'undefined')
   scheduler.showLightbox(incoming.id);

hello… i am a wordpress newbie and i installed the dhtmxl scheduler v3.0 (tried to install 4.0 but kept getting an error The package could not be installed. No valid plugins were found.) on wordpress 3.8.1. i cannot get access rights to show anything but the default user group. i looked though this thread but i do not see a “wp-content” when i navigate to the scheduler in my control panel i see this at the top:

Warning: include(DIR/groups.php) [function.include]: failed to open stream: No such file or directory in /home/content/27/7278227/html/calendar/wp-content/plugins/event-calendar-scheduler/admin.php on line 2

Warning: include() [function.include]: Failed opening ‘DIR/groups.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php’) in /home/content/27/7278227/html/calendar/wp-content/plugins/event-calendar-scheduler/admin.php on line 2

Warning: Invalid argument supplied for foreach() in /home/content/27/7278227/html/calendar/wp-content/plugins/event-calendar-scheduler/admin.php on line 3

Warning: implode() [function.implode]: Invalid arguments passed in /home/content/27/7278227/html/calendar/wp-content/plugins/event-calendar-scheduler/admin.php on line 5

i am sure this has SOMETHING to do with the problem but i am not sure. the scheduler seems to work fine except since i do not have access groups and only the default group shows any user that has access can add and change events in the scheduler. i do not want that to happen.

can anyone help a total newbie??