Good morning,
After some time editing moodle's code, look and feel I came across with some unsolveable (until now, I hope) issues in Moodle 2.0.
How do I disable "My private files" block to everyone? There's no such option in Administration > Plugins > Blocks > Manage blocks.
How do I disable some activities types such as "Offline activity" and "Advanced uploading of files"? There's only an option to disable ALL types of tasks, but how do I remove only specific types? Will I have to dig into moodle's code or is there any kind of option in the admin panel?
Teachers and pupils at the university are really confused about the usage of the advanced upload. In my opinion, this is a great feature, but we've decide to minimize the amout of options in order to make easier for the teachers and students.
By the way, I deleted the folders of the subtypes and it still shows up on the course page. Am I missing something?
I'd suggest you log in as admin, the click on the 'home' button. I'd also click on 'site admin, development, purge all caches', as that should clear things out a bit.
If that doesn't work, you might have to do some manual fixes to the database to get rid of them properly (I guess new subtypes are set to install properly, but maybe no one added any code to handle the deleting of them?).
Another question, I'll be very grateful if someones spends their time helping me!
How do configure which block will be default in new courses? I tried opening a random course, adding blocks in it and then created a new course, however the new one doesn't acquire the settings I've made in the older one.
Take a look in config-dist.php for code to put in you config.
// These variables define DEFAULT block variables for new courses// If this one is set it overrides all others and is the only one used.//
$CFG->defaultblocks_override = 'participants,activity_modules,search_forums,admin,course_list:news_items,calendar_upcoming,recent_activity';
//// These variables define the specific settings for defined course formats.
// They override any settings defined in the formats own config file.
// $CFG->defaultblocks_site = 'site_main_menu,admin,course_list:course_summary,calendar_month';
// $CFG->defaultblocks_social = 'participants,search_forums,calendar_month,calendar_upcoming,social_activities,recent_activity,admin,course_list';
// $CFG->defaultblocks_topics = 'participants,activity_modules,search_forums,admin,course_list:news_items,calendar_upcoming,recent_activity';
// $CFG->defaultblocks_weeks = 'participants,activity_modules,search_forums,admin,course_list:news_items,calendar_upcoming,recent_activity';
//
Also I do the following in my customized IMS import to order them to my liking.
function order_default_course_blocks($course)
{ $contextid = get_context_instance(CONTEXT_COURSE,$course->id)->id;
global $DB;
$instances = $DB->get_recordset('block_instances', array('parentcontextid' => $contextid));
foreach ($instances as $instance)
{ switch ($instance->blockname)
{
case "fac_help"; $instance->defaultweight = -6; break;
case "help"; $instance->defaultweight = -6; break;
case "stu_help"; $instance->defaultweight = -5; break;
case "participants"; $instance->defaultweight = -4; break;
case "messages"; $instance->defaultweight = 5; break;
case "staff"; $instance->defaultweight = 6; break; }
$DB->update_record('block_instances', $instance);
}
$instances->close();
}
Yes the config info from config-dist.php are examples/defaults for the config.php .
For the block ordering code all our courses are generated via the ims enterprise import plugin. I had to do some work there to make it work for our school. In doing that I added things like this that as specific to us. You would need to find the appropriate place in your course creation process for your school.
Re: Disable "My private files" block and "Offline activity" type
Re: Disable "My private files" block and "Offline activity" type
Hi Johnny
Did you manage to remove these files from your site? I too wish to remove them as we seem to have the same confusion. I have worked through the forum and done as suggested but still see the words even though I have remove the files from the server.
What did you do to remove them totally from the dropdown list? I am using 2.2.7 moodle
Many thanks Sarah x