Useless commit comments. Grrr etc.
by Howard Miller. I was digging through some recent git commit logs and noticed quite a lot of pretty useless ones. Here's an example, changed to protect the guilty...Merge branch 'MDL-12345-master'...
View ArticleRe: how to create a custom page using config
by Howard Miller. Write a proper plugin. It sounds like a 'local' plugin to me. The docs are here - http://docs.moodle.org/dev/Local_plugins - it sounds a bit daunting, but you actually won't need...
View ArticleRe: Page not displaying fully
by Ken Task. The error tells you almost exactly what is needed - 'tried to allocate 75 bytes'. That means 134217728 was only 75 bytes short. One can go beyond limits if on a shared system. If...
View ArticleRe: Useless commit comments. Grrr etc.
by Justin Filip. That message is automatically generated and rarely ever edited.If you're using Git from the commandline, run this to not see any merge commits in the history:git log --no-mergesIt...
View ArticleRe: Useless commit comments. Grrr etc.
by Andrew Nicols. Hi Howard,These are the merge commits and contain no content. I think it's unlikely that we'll change them as they are actually extremely informative. They inform the reader that:the...
View ArticleRe: Useless commit comments. Grrr etc.
by sam marshall. Personally I kind of wish that most changes were merged into a single commit before integration (there'd still be a merge commit, but only one real commit for it). Except the really...
View ArticleRe: how to create a custom page using config
by Hubert Chathi. 1. In theory, your file could be anywhere on the server (as long as it's web-accessible). In practice, you want to put your file a) somewhere where it won't get lost (i.e. if you...
View ArticleRe: Page not displaying fully
by Ken Task. No other errors in any logs? What (exactly) is the setup with that hosting provider? Dedicated/Shared? etc.PHP version, a look at phpinfo from Moodle?Finally unzipped the zip to see the...
View ArticleRe: Filemanager and downloadable link
by Oleg Mikheev. File is writing in database. May be problem in context? In my block i give into file_prepare_draft_area and other functions course context->id. I use this $context =...
View ArticleRe: Filemanager and downloadable link
by Davo Smith. From the stack trace, it appears to not be getting as far as your block_..._pluginfile function.Look at what is on line 3950 of lib/filelib.php to find out what is going wrong. From...
View ArticleRe: Upload / Create file for /local/report/index.php
by Andrew Normore. So I don't really need to use the $fs methods to write the image to database? What I'm attempting to do is simply write to /local/charts/pix/chart1.pngI'm just trying to understand...
View ArticleRe: Problem in Navigation and Settings Menu(Tree Menu)
by Andrew Normore. I've encountered this problem! Try clearing your site cache, and putting your theme in to designer mode. I bet if you look elsewhere, you'll see that JavaScript is not working...
View ArticleRe: Retrieve submenu items from navigation
by Andrew Normore. I believe they are stored in the $PAGE global variable.Inside your function, try thisfunction whatever() {global $PAGE;var_dump($PAGE);var_dump($PAGE->navigation);}
View ArticleRe: Validate the dropdown menu value
by Andrew Normore. BumpI'm trying to figure this concept out as well. It doesn't seem like my form validation() method does anything to validate.Any one have experience with custom validate rules?
View ArticleRe: How to remove SCORM player scrollbars?
by Andrew Normore. Try with CSS?body {overflow:none;}
View ArticleRe: Removing paragraph tags from Tiny MCE Editor?
by Andrew Normore. I hate Tincy MCE some times...You could always modify the margins on your CSS! Another idea is to check out the Tiny MCE forums.You could also use PHP to strip out <p> and...
View ArticleTracking systemic login failures
by Robert Brenstein. We are using a mail server for authentication, which is not under our control. Once a while, it has a technical issue and users can't log in. The outages do not usually last long...
View ArticleRe: Building a facebook wall style forum
by Frankie Kam. I got it working. Thanks to Waldemar.
View ArticleRe: Page not displaying fully
by Vijay N. Hi Ken, No other error logs when using Developer debugging mode. - Setup is dedicated server for this site.PHP Version 5.3.3Regarding the zipped images, please note that I can only upload...
View ArticleRe: Building a facebook wall style forum
by Frankie Kam. And here it is working for Moodle 2.3.2.Frankie Kam
View Article