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

Image may be NSFW.
Clik here to view.

Re: What is technique to POST a user FORM to Moodle FORM??

by Dan Poltawski.  Just to back up what Davo is saying and mention some acronyms , the sesskey is protection from CSRF (Cross Site Request Forgery). See...

View Article


Re: How to change position of custom Site Navigation link

by Barry Oosthuizen.  That works great, thanks Sam

View Article


Re: Auto Generate Content/Users Plugin

by Dan Poltawski.  My colleague at Moodle HQ, Frédéric Massart has created an authentication module for Moodle (auth_mdk) which automatically creates user accounts and enrols them to every course when...

View Article

Re: A line of code needed ...

by Bob Puffer.  Just a thought, email is THE most unsecure method of transmitting information short of placing it in the newspapers.

View Article

Re: File based sessions in Moodle 2

by Matteo Scaramuccia.  Hi All,just for the record, in...

View Article


How to add images and icons to a block

by Kieran Briggs.  Hi, I'm working on a block which I need to have an image in.  I've added a pix folder in the block and added a number of svg files with matching png files into it.In the get_content...

View Article

Re: How to add images and icons to a block

by Davo Smith.  inside the renderer:echo$this->pix_icon('name of image without extension', 'alt text identifier', 'block_myblock'); ORecho html_writer::empty_tag('img', array('src' =>...

View Article

Re: pluginfile.php, Moodle 2.4 and the Byte Order Mark

by Tim Hunt.  The most likely file is your config.php, since that is the only one you won't have overwritten when you copied the clean code in. I suppose it could also be in a language file cached in...

View Article


Re: Building a course programatically (2.3+); db structure questions

by Tim Hunt.  You have successfully reverse-engineered a lot. To pick up on one other point:The mdl_resources.displayoptions column is storing PHP serialised data....

View Article


Re: How to add images and icons to a block

by Kieran Briggs.  Thanks for that.  Got it sorted now!

View Article

Re: Filemanager and downloadable link

by Oleg Mikheev.  I'am really don't understand what i do wrong. If you have any ideas, please help.

View Article

Display an extra field from the User Profile

by Kieran Briggs.  Hi, I've added a new set of fields to the user profile for different social media sites. I'm building a block now to show the links if they have filled them in.I've written the code...

View Article

Re: Filemanager and downloadable link

by Davo Smith.  Have you tried looking at what line 3935 of lib/filelib.php is doing?That is likely to be the best place to look for errors.Put some 'echo' or 'var_dump' statements in there to output...

View Article


$DB->get_record IGNORE_MULTIPLE not recommended?

by Joseph Rézeau.  The IGNORE_MULTIPLE parameter is just what I need in my current develoment in order to avoid the error message "mdb->get_record() found more than one record!".I wonder why the doc...

View Article

Re: $DB->get_record IGNORE_MULTIPLE not recommended?

by Andrew Normore.  $DB->get_record is for ONE result$DB->get_records is for multipleIt is not recommended to use the wrong method! It just doesn't make sense.

View Article


Re: Display an extra field from the User Profile

by Andrew Normore.  Remember to use global $USER in your function, that usually gets missed.Then you can var_dump($USER) and make sure your twitter field is actually there.Then, it should be echo...

View Article

Image may be NSFW.
Clik here to view.

Re: Creating a file from a /local/plugin.php

by Andrew Normore.  Davo, thanks for your excellent level of assistance over the last few days. Can't I just use file.php or draftfile.php to call this image? It doesn't seem to be working, and am...

View Article


Re: $DB->get_record IGNORE_MULTIPLE not recommended?

by Hubert Chathi.  I believe get_record will return an arbitrary row if there are multiple rows (and IGNORE_MULTIPLE is specified), so it is not predictable.  Also, in most cases, if it finds multiple...

View Article

Image may be NSFW.
Clik here to view.

Re: pluginfile.php, Moodle 2.4 and the Byte Order Mark

by Gareth J Barnard.  Thanks Tim, I'll give that a bash

View Article

Image may be NSFW.
Clik here to view.

Re: $DB->get_record IGNORE_MULTIPLE not recommended?

by Joseph Rézeau.  Hi Andrew, I quite agree, but actually I have a table with the same value in more than one field and I only need to retrieve that value once. So the IGNORE_MULTIPLE param is...

View Article
Browsing all 37669 articles
Browse latest View live


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