User tours defaults

User tours defaults

Edgardo Palazzo -
Atsakymų skaičius: 5
Plugin developers paveikslėlis

Is it possible to set "disabled" by default to user tours when installing moodle? If not, is there any way to do this unattended?

I could do it by running a selenium script but I would like not to depend on this.

Įvertinimų vidurkis: -
Atsakymas į Edgardo Palazzo

Re: User tours defaults

Ken Task -
Particularly helpful Moodlers paveikslėlis

Have looked at php cfg.php for variable related to tours ... doesn't appear there is one setting that would allow to turn them off during install or right after.

However DB wise:

mysql> select id,name,enabled from mdl_tool_usertours_tours;

One could set all of them to enabled=0.

Comment: if users are moving from a 3 to a 4 ... they might need tours!!!   Am still playing 'who moved my cheese' as an Admin level user with 4.x liūdnas

'SoS', Ken


Atsakymas į Ken Task

Re: User tours defaults

Edgardo Palazzo -
Plugin developers paveikslėlis
Thanks for the advice 😁

I'm testing things and I got tired of seeing the tours each time I reset the site (I'm using the docker images for testing). Also, there should be a way to enable/disable/add tours using a set up script for unattended installs, that's what I'm looking for.


Atsakymas į Edgardo Palazzo

Re: User tours defaults

Ken Task -
Particularly helpful Moodlers paveikslėlis

Yes, I get it.  Should there be a way?   Well, if ... IF ... moodle was to be consistent with past ability ... php cfg.php > allsettings.txt;cat allsettings.txt |more would show something one could add to config.php to turn off tours ... but ... there isn't.   Only way ... DB manipulation.

Maybe it's because 4.0 and up is no longer the 'old moodle' and UX/UI advisors/programmers 'know better' .... uhhhh, but for whom?

Anyhoo ... think, in this case, it is what it is! besišypsantis

You could submit an improvement suggestion in tracker and then ask for folks to vote for it.

'SoS', Ken


Atsakymas į Ken Task

Re: User tours defaults

Howard Miller -
Core developers paveikslėlis Documentation writers paveikslėlis Particularly helpful Moodlers paveikslėlis Peer reviewers paveikslėlis Plugin developers paveikslėlis
It's a fairly trivial local plugin that could be written just to do that on installation. Local plugins are guaranteed to load last.

As you say, it kind of makes sense to have an option in 'Advanced features' or even just a $CFG in config.php somewhere.

There doesn't appear to be a 'view tours' role capability, either. That's really remiss IMO