Gl.ib.ly

(glibly); Just another techie blog.

All configuration variables in Moodle code - Part two?

Posted by Tariq • Wednesday, June 24. 2009 • Category: Moodle
Earlier we looked at how you can extract a list of all the $CFG variables in your Moodle code. Now that's not of much use! We need to know where in the code all these variables hide. I feel some spooky awk a coming on.

Continue reading "All configuration variables in Moodle code - Part two?"

Defined tags for this entry: , , , , , ,

Common translation errors in Moodle language packs

Posted by Tariq • Friday, February 6. 2009 • Category: Moodle
If you have ever had to deal with language packs you will know how much of a pain they can be. I regularly interact with 9 Moodle language packs and I don't like doing that much. For some reason, can't remember why now, we gave people the raw language string files (PHP code files) to translate and they translated these files and sent them back. Only these people are not PHP coders and they make mistakes. Here is my list of what goes wrong and how to solve.

Continue reading "Common translation errors in Moodle language packs"

Defined tags for this entry: , , , ,

All configuration variables in Moodle code?

Posted by Tariq • Monday, December 15. 2008 • Category: Moodle, One liners
Sometimes Moodle introduces some nice new configuration variables and I like to make sure that I know what they are and where they are. So to begin my investigation without heading off to the web I use the following command to get me a sorted list of the $CFG variables.

Continue reading "All configuration variables in Moodle code?"

Defined tags for this entry: , , , , , , ,

Getting logins per day in Moodle

Posted by Tariq • Tuesday, December 2. 2008 • Category: Moodle, One liners
Today I got the urge to see how many logins we had on some of our Apache servers in November. We host more than one moodle site on one server and so I wanted the total number of logins we handled. As usual this ended up becoming an awkward but useful one liner.

Continue reading "Getting logins per day in Moodle"

Defined tags for this entry: , , , , , , ,