Re: uploaduser.php enhanced to upload also courses
by Daniel Phillips. Hi Rosaio,Your mod looks promising.I am wondering if I could use it to semi-automate backing up and restoring of courses.At my place we use an integration to create the courses...
View ArticleRe: How to create static page in moodle?
by Julian Ridden. Simplest way to do this is inside a course, turn editing on and then add a "page" from the resoure list. This will allow you to create a static page of content for your users to...
View ArticleVery simple data transfer (mysqli to postgresql)
by Russell England. Attached is some code that will copy data from one database to another - seems to work...To use it, the structure in the source and target tables need to be identical. Ideally,...
View ArticleNumber of participants code
by Patrick Hallermann. Hi All,I am trying to display only the number of students currently enrolled in a course next to the course description but cannot find a good way to do this. I am using Moodle...
View ArticleAdd new college(Information)
by Syed Ammar. Please help me...to create the following..1. I want to add a "college" sub-category as like UsersCoursesGradesLocationLanguagePluginsSecurityAppearanceFront...
View ArticleRe: uploaduser.php enhanced to upload also courses
by Rosario Carcò. YES, you will find all the code you need to do so.The actual logic is this way:read in csv filein first pass create courses that do not exist alreadyif a course-template file is...
View ArticleRe: config settings for course formats?
by sam marshall. To add to Tim's response - you can manually implement custom settings pages, as he described - but you can't have 'standard' admin settings in a course format. I believe this feature...
View ArticleRe: HEADS UP: Moodle 2.4 coming Mon 3 Dec
by Tim Hunt. We are getting better at:Documenting all API changes in the code, in files like https://github.com/moodle/moodle/blob/master/mod/upgrade.txt (basically, search the code for files called...
View ArticleError restoring course in 2.3.2
by Inter Fan. Hi all,I am trying to restore a course in moodle 2.3.2 and keep getting this error:Debug info: Unknown column 't.intro' in 'field list'SELECT t.id, t.introFROM mdl_nanogong tJOIN...
View ArticleRe: How to check if a localized string exist
by Federico Ghigini. Hi,thanks for all the reply, soon I am testing it.Tim: i have tried exactly your code, but it doesn't work. Could it be a bug?Soon i'll post the code i'm using.
View ArticleRe: HEADS UP: Moodle 2.4 coming Mon 3 Dec
by Andrew Normore. Thanks Tim & Team.We have SO many customizations to Moodle now, it's crazy. We've got changes every where, moodlib, course view and render, 20+ local plugins.It's a fairly...
View ArticleRe: Error restoring course in 2.3.2
by Andrew Normore. Hey there, looks like it could be an easy problem to fix. Look at: Unknown column 't.intro' in 'field list'So t.intro is missing. Great. Where is that?Look at: t.intro FROM...
View ArticleRe: config settings for course formats?
by Andrew Normore. Are you looking to add layouts to courses? I've built a custom one, you need to add a DEFINITION_VARIABLE in /lib/moodlelib.php;)
View ArticleRe: How to check if a localized string exist
by Tim Hunt. If you go to Admin -> Plugins -> Overview, that page works, so the code I gave works when in context.
View Articlewhere is the class user?
by errol zantua. pardon me for this newbie question but on which php file could i see the USER class? tnx
View ArticleRe: where is the class user?
by Tim Hunt. It is of no particular class. (Or, to be precise it is the stdClass class, which is built in to PHP).If you want to see what $USER looks like, just make a test script that...
View ArticleRe: where is the class user?
by errol zantua. thank you for you reply. sorry, but i am very noob in PHP.this is what i wrote in my test.php<?phprequire_once ("/moodle/lib/datalib.php");print_object($USER); ?> it printed an...
View ArticleRe: where is the class user?
by Tim Hunt. <?phprequire_once ("/moodle/config.php");print_object($USER); ?>
View Articlecomo actualizar a versiones estables usando codigo propio
by ivan espitia. tengo el problema de haber hecho un proyecto en moodle 2.2 ahora quiero actualizar a moodle 2.3 pero no se como hacerlo, la version que tenia era basada en 2.2 pero necesito tener el...
View Articlerender output using ajax
by Arjun Baliga. Dear all,I am trying to customize quiz to work completely using Ajax& i have a query like how can i get main output of a page using Ajax.or how can i use core_renderer_ajaxThanks...
View Article