I have a related question. I'm running 2.4.5 and would like to add a customized logo to the FormFactor theme, Is it possible to do it without touching the codes? If it really require touching the codes, how do we do it? Also is there any Moodle stock theme that has black/red color scheme and is similar to themes like "Afterburner" that can be easily inserting logo? Thanks for your help...
Judy Hsu
Posts made by Judy Hsu
I'm glad that I found this old thread.
Just a quick related question. It seems that in Moodle 1.9.x, the "short name for site" setting in the Front page settings will be used as the breadcrumb trail of your Moodle site. However, this is no longer the case for Moodle 2.x. If you changed the wording of your "Short name for site", the beginning of your breadcrumb will still show as "Home" instead of the "Short name for site." Can anyone please confirm this? Is this a bug or is there a revised "feature?" Many thanks!
Yeah I guess our managers just want to confirm what students can see on that course listing page, so they want to be able to "switch" to other roles even before they clicked into any course. However I just found out that the "switchroles" does not always give me a true picture of what the course would look like to someone with that role so it's probably better to have a seperate "test" user account anyway, see:
http://docs.moodle.org/23/en/Capabilities/moodle/role:switchroles
I'm thinking though that if that "switch roles to" feature does not always give me a true picture then why implement such feature? It can be a bit misleading though. Also, exactly in what kind of scenario it will NOT give me a true picture? Can someone please give some examples? Thank you!
Thanks for reading this quick question. We are running Moodle 2.3.3. Is there a setting or option once administrator logged in, on the "course listing" page (without actually going into any course), I can still have the "switch role to" option? Thanks you!
J
Hi, I'm hoping the Joseph or some other questionnaire guru can help with this question..
I have written a very simple custom report that looks like this:
foreach($mods as $mod) { // ah here is the KEY!
if($mod->modname == 'questionnaire'){
$items = $DB->get_records_sql("SELECT i.*, t.response_table FROM {questionnaire} c, {questionnaire_survey} g, {questionnaire_question} i , {questionnaire_question_type} t WHERE c.id = ".$mod->instance." AND g.id = c.sid AND i.survey_id = g.id AND t.typeid = i.type_id");
foreach($items as $item){
if($item->response_table == 'response_text')
$question = $DB->get_record_sql("SELECT e.response FROM {questionnaire_response} r, {questionnaire_$item->response_table} e WHERE r.survey_id = $item->survey_id AND r.username = $user->id AND e.response_id = r.id AND e.question_id = $item->id");
else // refer to all OTHER (than text) types of questions
$question = $DB->get_record_sql("SELECT c.content as response FROM {questionnaire_quest_choice} c, {questionnaire_response} r, {questionnaire_$item->response_table} e WHERE r.survey_id = $item->survey_id AND r.username = $user->id AND e.response_id = r.id AND e.question_id = $item->id AND c.id = e.choice_id");
echo html_writer::tag('td', $question->response);
}
//die();
}
}
It seems that it will output all of student's responses, but just NOT the response_bool type of questions. Can anyone see what part of the logic was wrong?
I'm running Questionnaire 2.0.1 (Build - 20120106) on Moodle 2.0.10.
Thank a million!