moodle with wordpress 由Ashish Jain發表於2014年 04月 29日(週二) 12:19 Number of replies: 2 I'm integrating wordpress with moodle. Is it possible to fetch course image in wordpress. I'm able to get course details in wordpress using sql queries, but got stuck in fetching images. Can somebody please help me with it. 評比平均分數: - 永久鏈接 回覆 In reply to Ashish Jain Re: moodle with wordpress 由Ajeet Kumar發表於2014年 04月 29日(週二) 13:34 Hi Ashish, You can use following code global $CFG, $DB; $context = context_course::instance($course->id);$summary = file_rewrite_pluginfile_urls($mycoursesum->summary, 'pluginfile.php', $context->id, 'course', 'summary', null); echo $summary; 評比平均分數: - 永久鏈接 顯示上層文章 回覆 In reply to Ajeet Kumar Re: moodle with wordpress 由Ashish Jain發表於2014年 04月 29日(週二) 17:41 Hello Ajeet, But, how do I use global $CFG and $DB; in wordress. ? 評比平均分數: - 永久鏈接 顯示上層文章 回覆
In reply to Ashish Jain Re: moodle with wordpress 由Ajeet Kumar發表於2014年 04月 29日(週二) 13:34 Hi Ashish, You can use following code global $CFG, $DB; $context = context_course::instance($course->id);$summary = file_rewrite_pluginfile_urls($mycoursesum->summary, 'pluginfile.php', $context->id, 'course', 'summary', null); echo $summary; 評比平均分數: - 永久鏈接 顯示上層文章 回覆 In reply to Ajeet Kumar Re: moodle with wordpress 由Ashish Jain發表於2014年 04月 29日(週二) 17:41 Hello Ajeet, But, how do I use global $CFG and $DB; in wordress. ? 評比平均分數: - 永久鏈接 顯示上層文章 回覆
In reply to Ajeet Kumar Re: moodle with wordpress 由Ashish Jain發表於2014年 04月 29日(週二) 17:41 Hello Ajeet, But, how do I use global $CFG and $DB; in wordress. ? 評比平均分數: - 永久鏈接 顯示上層文章 回覆