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

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 Article


Problem 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 Article


Re: 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 Article

Re: 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 Article

Re: 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 Article


Re: 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 Article

Semantic 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 Article

Transform 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 Article


Re: 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 Article


Re: Transform timestamp to date in Moodle 2.3

by Paul Holden.  Use the userdate() method from lib/moodlelib.php

View Article

Image may be NSFW.
Clik here to view.

Re: 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 Article

Re: 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 Article

Re: Semantic web

by Darko Miletić.  Are you talking about this?http://en.wikipedia.org/wiki/Semantic_Web

View Article


Re: 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 Article

Re: Transform timestamp to date in Moodle 2.3

by Erik Gotera.  Perfect,usinguserdate() doeswhat I want.Thank you very muchto all.

View Article


Re: 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 Article

Re: Semantic web

by Lukas Ferko.  Yes

View Article


Search 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 Article

Re: 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 Article

Re: 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
Browsing all 37667 articles
Browse latest View live


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