Quantcast
Channel: General developer forum
Browsing all 37669 articles
Browse latest View live

Re: HTML in Moodle Forms error messages - downgrading?

by Anthony Borrow.  Oleg - Could you give some code samples. If you pass the link as a variable ($a->link) you should be able to use it within the string. Let me know what version of Moodle you are...

View Article


How to found out if user is teacher in the selected course

by Black Dream.  Hello, I am trying to create a block to show all the courses that the CURRENT USER is a teacher on them. What i have created so far is this: $courses = enrol_get_my_courses();foreach...

View Article


Image may be NSFW.
Clik here to view.

[OT] Why Linux Sucks

by Visvanath Ratnaweera.  As the subject says off-topic. Still insightful for the geek community - and entertaining!

View Article

Problems getting javascript working

by Sergi Rodríguez.  Hi guys,I have read and understood the javascript guidelines, since I want to use a YUI module, I followed this tutorial.The problem is that I can't make it to work, I know the...

View Article

Re: How to found out if user is teacher in the selected course

by Black Dream.  Anyone please???

View Article


Image may be NSFW.
Clik here to view.

Re: Problems getting javascript working

by Mary Evans.  I'll assume that your code is correct, but something you need to understand about Moodle is that it uses the cached data NOT current so if you have made changes added any code be it...

View Article

Re: Problems getting javascript working

by Sergi Rodríguez.  It worked like charm! I would never had thought on the possibility of cleaning the cache.Thank you for your fast reply :D

View Article

Protect Excel Workbooks from Unauthorized Access Using REST APIs

by zarfishan zahid.  The latest version of Saaspose.Cells enhances the security measures by protecting the workbooks from unauthorized access to modify the structure or content. It allows to encrypt...

View Article


Re: HTML in Moodle Forms error messages - downgrading?

by Oleg Sychev.  Well, I attached screenshot. In previous version of Moodle it was nice link you could click on. In Moodle 2.3.1+ it print HTML tags insteadThis isn't actually bug, but losing of useful...

View Article


Re: How to found out if user is teacher in the selected course

by Black Dream.  Hello i solved it. Thanks

View Article

Get All Assigns For A Course

by Black Dream.  Hello, How it is possible to get all the assigns in a course with PHP? 

View Article

Different breadcrumb trail for teacher and other user

by ajeet kumar.  How to redirect Home link of breadcrumb trail to different page in case of teacher role.For exp the default breadcrumb tral isHome->My Test->Math for Class VI->Question...

View Article

Course Completion

by danny willford.  Where is the code that fires to update the database when a course is completed?  I need to add code to send confirmation of completion to another database outside of moodle.  I know...

View Article


Re: Course Completion

by Darko Miletić.  Subscribe to the course completion event.http://docs.moodle.org/dev/Events_APISee also lib/eventslib.php and lib/completionlib.php

View Article

Re: Get All Assigns For A Course

by Darko Miletić.  Use API function get_enrolled_users (in lib/accesslib.php)Something like:$users = get_enrolled_users(context_course::instance($courseid));foreach ($users as $user) {  // do something}

View Article


Re: Different breadcrumb trail for teacher and other user

by Darko Miletić.  The only wy to do this is override homepage logic builtin into <moodle>/index.phpLook at this part of code:if (get_home_page() != HOMEPAGE_SITE) { // Redirect logged-in users...

View Article

Image may be NSFW.
Clik here to view.

Struggling with get_record_sql()

by Sergi Rodríguez.  Hi again,Now I'm trying to get some values from my block's database. I tested it with phpmyadmin and it works well, the query it's something like this:SELECT cm.id,...

View Article


Re: Struggling with get_record_sql()

by Darko Miletić.  Note the name of the method you are using - get_record_sql . This method retourns ONE record only. If you want to get all records in a table use get_records_sql.

View Article

Image may be NSFW.
Clik here to view.

Re: Struggling with get_record_sql()

by Sergi Rodríguez.  Oh my god, I can't believe it was that, I was looking everywhere around the code... Thanks for your fast reply, now it works right

View Article

Re: Plugin "theme_city-by" is defective or outdated, cannot continue, sorry.

by Azmat Ullah.  You can fix this error by adding version.php  file and add following line of code$plugin->component = 'theme_themename';

View Article
Browsing all 37669 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>