Re: Number of participants code
by Darko Miletić. Query for this :SELECT COUNT(DISTINCT ra.userid) FROM mdl_role_assignments ra,mdl_context ct,mdl_config mc,mdl_user uWHEREra.contextid = ct.idANDra.userid = u.idANDu.deleted =...
View ArticleProblem with capability
by Daniel Garcia. Hi,I would like to add a condition role in my block and show different content if the user is a Teacher or Student.This is my code of my block:block_myblock.php//TEACHER if...
View ArticleRe: Problem with capability
by Rex Lorenzo. Short answer: It is most likely because you didn't bump up the version number in your version.php file. Once you do that Moodle will ask you to update your block and it will add any...
View ArticleRe: como actualizar a versiones estables usando codigo propio
by Richard Price. I also do not read spanish, but with a little translation help it looks like:You have Moodle 2.2, You want to upgrade to Moodle 2.3.There is a guide (manual) for upgrading to Moodle...
View ArticleRe: Events API
by roc mehra. Hi Onno, I want to use message_send event for sending custom message.I dont know much about code. Please tell me the appropriate files i need to use
View ArticleRe: How to check if a localized string exist
by Federico Ghigini. Sorry,probably i have misspelled some instruction. The code posted by Tim and Matteo works great (and that code is very similar to the code in my first post).Thanks to all!
View ArticleSemantic web
by Lukas Ferko. Hi,I am interesting in how apply semantic web technologies moodle. If its possible to create module or somethig, what should provide this functions.I'd like to create ontologies for...
View ArticleTransform timestamp to date in Moodle 2.3
by Erik Gotera. Hello,I want to changethe value thatis storedin the database(timestamp)andtransform ittoDate Time.For example:DueDatein Database->1354632000DueDateinMoodle->Duedate:Tuesday,...
View ArticleRe: Transform timestamp to date in Moodle 2.3
by Lavanya Peddapeta. SYNTAX :select (FROM_UNIXTIME(fieldname,"format string") from tablenameExample :select id,(FROM_UNIXTIME(startdate,"%Y")) as startdate from pauls_dp_plan
View ArticleRe: Transform timestamp to date in Moodle 2.3
by Paul Holden. Use the userdate() method from lib/moodlelib.php
View ArticleRe: Error restoring course in 2.3.2
by Inter Fan. Hi,Many thanks for your help.Yes, it is a custom plugin made by someone else .I've actually updated the plugin, and that seems to have solved the problem.
View ArticleRe: Transform timestamp to date in Moodle 2.3
by Patrick Pollet. userdate() is definitively a much better solution since FROM_UNIXTIME is known only on MySQL databases to my knowledge.Cheers
View ArticleRe: Semantic web
by Darko Miletić. Are you talking about this?http://en.wikipedia.org/wiki/Semantic_Web
View ArticleRe: I have developed a TRUE Ecommerce Solution to Moodle 2 - Interest?
by Andrew Normore. Thanks Howard. So I should simply declare my company and what we're doing? I was trying to see if there were developer interest for an 'in house' Moodle Ecommerce solution, and...
View ArticleRe: Transform timestamp to date in Moodle 2.3
by Erik Gotera. Perfect,usinguserdate() doeswhat I want.Thank you very muchto all.
View ArticleRe: Timestamps in mdl_user and mdl_log don't match
by Tim Hunt. If you only use mdl_log for running reports, you will find that over time it gets very slow, because mdl_log gets very big. That is why the user_last_access table was added in the first...
View ArticleSearch refactor
by Jeremy Schweitzer. I know that work was being done on adding a global search feature (such as existed in pre-2.0 releases) back into Moodle 2.3, but as far as I can tell that effort was not...
View ArticleRe: Search refactor
by Tomasz Muras. Hi Jeremy,Unfortunately I am not able to finish the work on Global Search because of the lack of free time. As far as I know there is no ongoing work on that feature by anyone...
View ArticleRe: Files API: time for MUCification?
by Matteo Scaramuccia. Again, just for the record, here is an interesting and natural evolution of the abstraction provided by file_storage (and stored_file):...
View Article