- Видео 35
- Просмотров 449 417
Moodle Tips
Австралия
Добавлен 22 май 2020
This channel will show clips with guides and tips for the Moodle LMS. en.wikipedia.org/wiki/Moodle
You can support me here: www.patreon.com/moodletips
Moodle tips discord, for further discussion and help, let's chat: discord.gg/ZTsVMWkXG5
Send me an email: kristian.ringer+moodletips@gmail.com
Visit our website: moodletips.org
Thanks for watching!
You can support me here: www.patreon.com/moodletips
Moodle tips discord, for further discussion and help, let's chat: discord.gg/ZTsVMWkXG5
Send me an email: kristian.ringer+moodletips@gmail.com
Visit our website: moodletips.org
Thanks for watching!
Moodle Hosting Tutorial 2 - Configure Moodle and access to database
We have some more things to set up like cron, and talk about some options in how we host the site.
Main commands used can be found here: github.com/kristian-94/moodle-local_message/wiki/Hosting-Moodle-Commands
To set up a custom domain and HTTPS, check out the full paid course!
Get the full course on Udemy: www.udemy.com/course/moodle-developer-course/?referralCode=117EAE3796C1BA840895
For custom development work, one on one training, or Moodle hosting, get in touch with us over at ringertech.org/contact
Main commands used can be found here: github.com/kristian-94/moodle-local_message/wiki/Hosting-Moodle-Commands
To set up a custom domain and HTTPS, check out the full paid course!
Get the full course on Udemy: www.udemy.com/course/moodle-developer-course/?referralCode=117EAE3796C1BA840895
For custom development work, one on one training, or Moodle hosting, get in touch with us over at ringertech.org/contact
Просмотров: 4 418
Видео
Moodle Hosting Tutorial 1 - How to host a Moodle site in AWS
Просмотров 13 тыс.2 года назад
This goes through hosting a Moodle site in the cloud using AWS Lightsail. This is a simple way to host a moodle site but there are many different configurations. Other configurations will have better scaling, handle bursts of usage, or have easier more automated deployments. Main commands used can be found here: github.com/kristian-94/moodle-local_message/wiki/Hosting-Moodle-Commands Get the fu...
Tutorial: How OAuth 2 works with real world example
Просмотров 4,9 тыс.2 года назад
Normally on this channel we have Moodle specific videos. This is a general video on how OAuth 2 code type flow works. It's definitely useful for any developer and for some specific Moodle plugins. Get the full course on Udemy: www.udemy.com/course/moodle-developer-course/?referralCode=117EAE3796C1BA840895 For custom development work, one on one training, or Moodle hosting, get in touch with us ...
Moodle error tutorial - plugin 'Cannot downgrade' error. What it is and how to deal with it
Просмотров 2,3 тыс.2 года назад
This is a pretty common error in Moodle development I've run into, when you're switching switching between plugin versions you can run into this error. Hopefully this helps someone when they run into this error, to know what is happening, and understand some parts of how to deal with it and the drawbacks. Upgrading a plugin is a one way trip in Moodle. You need to be sure you want to upgrade, i...
Moodle form tutorial - Add styling and fix lang strings #4
Просмотров 5512 года назад
Here we add styles so that we can see what type each message is on the manage screen, by adding a dynamic background colour. Get the full course on Udemy: www.udemy.com/course/moodle-developer-course/?referralCode=117EAE3796C1BA840895 For custom development work, one on one training, or Moodle hosting, get in touch with us over at ringertech.org/contact
Moodle form tutorial - Implement deleting and updating functions #3
Просмотров 4 тыс.2 года назад
Here we create some functions in our message manager class that can use the extracted form data to actually perform the database queries of deleting or updating the message type on all selected elements. Get the full course on Udemy: www.udemy.com/course/moodle-developer-course/?referralCode=117EAE3796C1BA840895 For custom development work, one on one training, or Moodle hosting, get in touch w...
Moodle form tutorial - Process form data after submitting #2
Просмотров 3,8 тыс.2 года назад
Here the user has input some data into our dynamic form. Now we want to process that data and extract the exact messages that the user has chosen to perform an action on. Get the full course on Udemy: www.udemy.com/course/moodle-developer-course/?referralCode=117EAE3796C1BA840895 For custom development work, one on one training, or Moodle hosting, get in touch with us over at ringertech.org/con...
Moodle form tutorial - Create dynamic form definition #1
Просмотров 7 тыс.2 года назад
Here we create a form definition that is dynamic in that it depends on data. The form will be different every time. To code along, you can clone the code from this repo and this commit is where we start off in this video: github.com/kristian-94/moodle-local_message/commit/41d3d62e3d203505ae17e4ef8672454e2eed8206 Get the full course on Udemy: www.udemy.com/course/moodle-developer-course/?referra...
Moodle plugin developer tutorial - Tidying up our plugin's language strings #8
Просмотров 6 тыс.3 года назад
In this video we do some quick tidy ups to the code to improve it in terms of style and formatting. I released some extra videos exclusive to my course on Udemy: www.udemy.com/course/moodle-developer-course/?referralCode=117EAE3796C1BA840895 or skillshare: skl.sh/3deuyuv That's the best place to keep up with the latest developer tutorials! For custom development work, one on one training, or Mo...
Moodle setup tutorial - how to set up and run unit tests in moodle
Просмотров 3,5 тыс.3 года назад
The idea here is that we could continue from the first setup video: ruclips.net/video/JzYjPF5ybT8/видео.html It will be good for us to have unit tests set up so that we can integrate them into our custom plugin. Getting tests going is super useful to the development process as we'll see. Get the full course on Udemy: www.udemy.com/course/moodle-developer-course/?referralCode=117EAE3796C1BA84089...
Moodle plugin developer tutorial - build SQL to mark a message as read #7
Просмотров 8 тыс.3 года назад
Here we build a more complex SQL query. We get messages that are not read by our current user, or not read by any user. We use this query to decide in the before_footer hook whether to display any message to the end user. Get the full course on Udemy: www.udemy.com/course/moodle-developer-course/?referralCode=117EAE3796C1BA840895 or skillshare: skl.sh/3deuyuv You can get the code here: github.c...
Moodle plugin developer tutorial - display dynamic notification #6
Просмотров 9 тыс.3 года назад
Here we read in data from our custom tables to display a dynamic notification to the end user. We can create a new message with different type and content by submitting the form again. Moodle docs: docs.moodle.org/dev/Callbacks Get the full course on Udemy: www.udemy.com/course/moodle-developer-course/?referralCode=117EAE3796C1BA840895 or skillshare: skl.sh/3deuyuv You can get the code here: gi...
Moodle plugin developer tutorial - handle form submission #5
Просмотров 15 тыс.3 года назад
Here we handle the form submission and store the data in our custom database tables that we created earlier. Moodle docs: docs.moodle.org/dev/Form_API Get the full course on Udemy: www.udemy.com/course/moodle-developer-course/?referralCode=117EAE3796C1BA840895 or skillshare: skl.sh/3deuyuv You can get the code here: github.com/kristian-94/moodle-local_message To set up a local moodle environmen...
Moodle plugin developer tutorial - create a moodle form #4
Просмотров 21 тыс.3 года назад
Here we create a new form. This is a class that extends the core moodleform class. We then instantiate it in a new 'edit' page. Moodle docs: docs.moodle.org/dev/Form_API You can get the code here: github.com/kristian-94/moodle-local_message Get the full course on Udemy: www.udemy.com/course/moodle-developer-course/?referralCode=117EAE3796C1BA840895 or skillshare: skl.sh/3deuyuv To set up a loca...
Moodle plugin developer tutorial - create new page #3
Просмотров 25 тыс.3 года назад
Here we create a new page and use a mustache template to output dynamic content calculated over in PHP. We send those to the template to display nicely in html. Moodle docs: docs.moodle.org/39/en/Context#Roles_and_contexts docs.moodle.org/dev/Templates You can get the code here: github.com/kristian-94/moodle-local_message To set up a local moodle environment, see: www.youtube.com/watch?v=JzYjP....
Moodle plugin developer tutorial - create database tables #2
Просмотров 43 тыс.3 года назад
Moodle plugin developer tutorial - create database tables #2
Moodle plugin developer tutorial - Introduction #1
Просмотров 49 тыс.3 года назад
Moodle plugin developer tutorial - Introduction #1
Moodle theme developer tutorial 4/4 - how to override a renderer
Просмотров 10 тыс.3 года назад
Moodle theme developer tutorial 4/4 - how to override a renderer
Moodle theme tutorial 3/4 - How to override a template in Moodle
Просмотров 13 тыс.4 года назад
Moodle theme tutorial 3/4 - How to override a template in Moodle
Moodle theme tutorial 2/4 - Creating settings page and custom scss files
Просмотров 16 тыс.4 года назад
Moodle theme tutorial 2/4 - Creating settings page and custom scss files
Moodle theme tutorial 1/4 - Create a child theme based off boost
Просмотров 22 тыс.4 года назад
Moodle theme tutorial 1/4 - Create a child theme based off boost
Moodle developer tutorial 5/5 - adding a setting to our new block and use that in the code
Просмотров 7 тыс.4 года назад
Moodle developer tutorial 5/5 - adding a setting to our new block and use that in the code
Moodle developer tutorial 4/5 - Fetch list of users from the database and display that in our block
Просмотров 10 тыс.4 года назад
Moodle developer tutorial 4/5 - Fetch list of users from the database and display that in our block
Moodle developer tutorial 3/5 - How to create a test course automatically so we get dummy content
Просмотров 6 тыс.4 года назад
Moodle developer tutorial 3/5 - How to create a test course automatically so we get dummy content
Moodle developer tutorial 2/5 - Explaining what the MOODLE_INTERNAL || die code is doing
Просмотров 8 тыс.4 года назад
Moodle developer tutorial 2/5 - Explaining what the MOODLE_INTERNAL || die code is doing
Moodle developer tutorial 1/5 - Creating a new moodle block plugin initial skeleton/boilerplate code
Просмотров 26 тыс.4 года назад
Moodle developer tutorial 1/5 - Creating a new moodle block plugin initial skeleton/boilerplate code
Moodle overview 5/5 - How to customise a lang string through the front end UI without changing code
Просмотров 3,7 тыс.4 года назад
Moodle overview 5/5 - How to customise a lang string through the front end UI without changing code
Moodle overview 4/5 - How to add a setting to the core moodle html block (and why you shouldn't)
Просмотров 4,6 тыс.4 года назад
Moodle overview 4/5 - How to add a setting to the core moodle html block (and why you shouldn't)
Moodle overview 3/5 - storing and updating data in the database
Просмотров 6 тыс.4 года назад
Moodle overview 3/5 - storing and updating data in the database
Moodle overview 2/5 - Explaining the overall folder and plugin structure
Просмотров 8 тыс.4 года назад
Moodle overview 2/5 - Explaining the overall folder and plugin structure
💯💯 worth 2024
Any idea on how this can be dockerised?
Start with the official moodle image, it's pretty good: github.com/moodlehq/moodle-docker Your Dockerfile can look something like: FROM moodlehq/moodle-php-apache:8.2 COPY . /var/www/html/
Hi i am not able to connect to phpmyadmin when i installed phpmyamdin its giving me not found This page isn’t workinglocalhost is currently unable to handle this request. HTTP ERROR 500
Hi, thank for sharing this has been very helpful, do you know how to override the actions menu (the gear icon) or how to hide from some user roles?
That should be editable directly from role capabilities, eg. if the user doesn't have course:manageactivities some of the options there won't display
@@moodletips thanks I’ll check
Hi I try the firs part of the local plugin, show a notification. I create directory and files same as you but can't see notification. It could be the version ? I am working with moodle v4.1.10
I see it now, I have to change the "hook" in my function by "before_standard_top_of_body_html" It appears that i dont render a footer I am using Boost theme
Its easy to update table configuration that add new column as name "marked" and update when read message
hello sir, is this is Windows or Linux?
This is linux but it should work similarly on windows. The code is the same, the way you write plugins is the same, it's just running within a different environment
@@moodletips thank you. I am using Linux Mint so it should work.
please explain how to create a custom dynamic and static page
Moodle, oh Moodle, you've been a bit of a headache for us over the past five years. But hold the phone - the magic of YouTestMe has turned things around for us. E-learning is finally a vibe, and we're bidding farewell to those frustrating moments with Moodle's dumpster fire limitations!
Not working this way. always displays invalid login. what to do??
If you want to change the admin password, another easy way is to use the admin/cli/reset_password.php script with the --ignore-password-policy flag
pls make a tutorial on it@@moodletips
I don't know why, but 'class edit extends moodleform' didn't work, it said `Exception - Class "local_message\form\moodleform" not found`. but `class edit extends \moodleform` seemed to be fine
Looks like you just had to import it at the top, so you don't need the full path
how do I find out which numbers I need to write now in lines 27 and 28? 1:25
Check the docs here: docs.moodle.org/dev/Moodle_versions#Version_numbers One is just your own plugin's version, and one is the minimum moodle version it works with. So if you're testing it on Moodle 4.1, it should be the 4.1 version, atm that's 2022112809
Heya I know this is quite an old guide but I've got an issue. When I go to localhost/phpmyadmin I only get a blank white page. I'm not sure of the first step to even troubleshoot the issue. Any help would be appreciated, cheers.
Hi, do you have any tutorials on how to accept/import a csv file ?
Check the class csv_import_reader in moodle, there are a few places where that's used to parse csv's, good luck
i have do all the steps shown in the video but there is only one problem the css and js not loading when i deploy this using cloudfront in aws as https but in the http it is working well. can you fix this problem ?
Always shows [[pluginname]] why is that pls help me
It's probably because you need to clear moodle caches, the lang strings are pretty heavily cached. Otherwise you might have the language file incorrectly named - plugin/lang/en/XXX.php - it needs to be in the exact right location with the right name for Moodle to find it. moodledev.io/general/development/policies/codingstyle/frankenstyle#language-files
@@moodletips Thank you vary much for the instructions ...
hi, I love watching your tutorials. But I have some concern and maybe you can help me with this? when i ran the upgrade.php, i don't think it proceeded it showed [System] this test must pass - PHP setting max_input_vars must be atleast 5000. I tried adjusting the max_input_vars and still getting that response when I ran the upgrade. Thank you!
Thanks for watching :) Yes that is a new requirement for the new Moodle versions. If you want to run that you'll need to change this php setting. You'll need to make sure you've changed it for the web server/apache php.ini file and restart the server. If you look at phpinfo() you should see your new config there, that's what moodle will look at
thank you! @@moodletips
Useful for the most part. I found it impossible to follow the early steps where you say 'you should do [something]', but you don't show how. Also, when you edit the files in the ssh terminal, you're too fast so I can't see what commands you're typing to save the files and go back to the terminal.
hey, i don't really sure if you're gonna answer this or not. i want to develop plugins on my own and it's not published i want to add some javascript to a quiz attempt. so whenever a user try to attempt a quiz. i want to embed some javascript function into it. Where do i start tho. been reading the documentation but i am still clueless
Hey, there are a few different places you could do this but it really depends what your end goal is. Javascript could be injected with the theme, theme settings, or directly in the core quiz/attempt.php page. It looks like the quiz rendering code is really old, not using templates so it's not as easy to override those.
Hi there! I really enjoyed your video, and I was able to follow along until the installation part around the 11-minute mark, despite encountering a few errors (mostly my fault, I admit!). I'm wondering if it's possible to configure Moodle through the website itself, or do I have to make changes to the config-dist.php file like you did in the video? I'm relatively new to programming, and I've never used Vim, so there are some steps in your video that I find a bit challenging to grasp, especially when you copied the config-dist.php and created a new one to edit. If there's a way to configure Moodle more easily through the web interface, that would be fantastic!
Hey, thanks for watching and great that you're getting some value out of the vids :) I copied the config-dist.php file to a new file called config.php. In the new file, that's where we set all the config. If you have no config.php file Moodle will take you through a UI wizard to create one in sitedata and then you'll still need to manually move it to the right spot in the code folder. I'd recommend you try to do it the way I did in the video though, and understand what we're doing. Better to know this stuff long term and if you're going to be hosting a Moodle you can fix problems. You can ask questions here too, good luck
@@moodletips Thank you very much, I've managed to do using Vim. You're right, the sooner I learn to use this method the better for future updates or troubleshooting. I'm currently bulding an website for a friend that have a music school, and it involves creating an Angular web page that is more informational and visually pleasing, with some functionality. This Angular page is connected through s to the Moodle page. My idea is for students to access the Angular page and, upon clicking the login button, be redirected to the Moodle login page. Similarly, I'd like direct access on the Moodle page to redirect to the Angular page. I'm only concerned about the deploy of both on a AWS instance, and that is what I'm gonna be trying to do today, I already have the moodle deployed (thanks to your tutorial) and now to the angular page deploy. You have any advice on that? thanks a lot
@@gabrielcardoso3879 If your angular page is just compiled down to simple html and javascript in the end, I would recommend looking into hosting it using a static site on S3. That's really cheap hosting and pretty easy to do. You can get https by putting cloudfront CDN in front which also makes it faster, worth learning.
@@moodletips Thanks for the tip. I'll check it out. I think I can use Iframes on separate instances and have a smooth interaction between them. I want it to feel like you're on the same page, working within the same domain-maybe by using a subdomain for one of them. Thanks a bunch! Appreciate your help :)
Hi, thanks for the tutorial. Trying to figure out the costs. So the cloud version says it will be 850$ annually for 500 users and 2 gb storage. Can you please advice on the approximate cost for the same setup on AWS?
The way we've set it up here it's just that lightsail instance. It depends which one you choose, you get different specs on your server. Can be as little as $5/month
if i want to setup my whole environ on vs code not in phpstorm so how can i proceed with that can u please explain me how many extesnions and many more canu please share the steps for that ::
I use phpstorm so I wouldn't know how to get this in vs code. That's why I like phpstorm because it's all set up 'out of the box' and you don't need to get extensions
hi, whats that application youre using? is this eclipse or visual studio?
It's phpstorm, it's a premium paid IDE, worth trying though!
thanks @@moodletips
Cash not Case-sh
Thank you so much for your tutorial! :-)
after i created the version file and updated it it shows the error ''Invalid permissions detected when trying to create a directory. Turn debugging on for further details.'. any fixes ? im using docker compose
Start with what moodle suggests which is turning up the debugging settings to see the full error message docs.moodle.org/402/en/Debugging You probably just need to fix the permissions on the moodle dataroot directory to make it writable, a chmod command
thnx for getting back. i just had a error in my docker setup :)
In moodle 4.2.2 you can find the html config page under: * Site administration plugins -> Blocks -> Text * [serverip]/[moodlepath]/admin/settings.php?section=blocksettinghtml
Any ideas? : Deprecated: Return type of moodle_recordset::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /opt/bitnami/apache/htdocs/lib/dml/moodle_recordset.php on line 61 Fatal error: Type of xml_format_exception::$line must be int (as in class Exception) in /opt/bitnami/apache/htdocs/lib/xmlize.php on line 0
Update PHP 8 is not supported must downgrade to PHP 7
Does anyone know how to install on PHP 8?
@@jyemarshall8101 You need the moodle version, php version, mysql version to all be compatible. It looks like you're on an older moodle branch. If you checkout the moodle 4.1 branch that should work with php 8. It's much easier to change moodle branches than install a different php version
how to migrate my local moodle to aws?
I would follow the tips in docs.moodle.org/402/en/Moodle_migration
max_input_vars this test must pass PHP setting max_input_vars must be at least 5000. Having this issue and when changed still doesnt work
It should normally be just a matter of changing that in php.ini and restarting apache. Try the steps outlined here docs.moodle.org/402/en/Environment_-_max_input_vars
Hola, hay posobilidad de asociar este plugin a un curso?
You probably want a course context block or course module to limit the scope to just a course, but the ideas of the form in this video are the same for that part
I’m unable to get that new installation page to appear after the vim edits. Any ideas why?
You need to have a config.php file in your site root. Don't just edit the config-dist.php file. If you have a config file it should skip the installation
Deprecated: Return type of moodle_recordset::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /opt/bitnami/apache/htdocs/lib/dml/moodle_recordset.php on line 61 Fatal error: Type of xml_format_exception::$line must be int (as in class Exception) in /opt/bitnami/apache/htdocs/lib/xmlize.php on line 0
Seems like you're running some old or buggy code from a plugin or something. Check that you're on a stable moodle branch
what editor do you use?
Check out this video on how I set up phpstorm ruclips.net/video/dArD8qeqTRk/видео.html You can use vscode or any editor though and it will work fine, it's up to you
Is there a way to use VS code for this series?. I don't really want to download another rare coding software just for a single project
Totally optional, it doesn't matter. This is some optional setup showing you some extra tips. You just need a way to edit files
What IDE do you use for this tutorial? I am thinking about purchase Intellij to develop some things. My desire is to follow the classes in one click. It's not possible with vscode neither atom. Thanks in advance!
I'm using Phpstorm, I think it's great but vscode could work similarly with plugins. The database browser in intellij is something I never found a good plugin for though
For some reason, my previous post no longer shows up, so I am reposting. First, thank you for the tutorial. It was great. However, the link attached to "You can get the code here" is invalid. Is it possible for you to replace it with a valid URL? Thanks.
Thanks for catching that, have fixed the link now
Hey! Great video I have been also following the step by step website of moodle but when I change the /var/www/html to /moodle folder I don't get the front page. I know this is because php is not correctly installed in apache2 however have tried like 5 times and can't make it work. Could you please help me out? Thanks buddy!
My next step is trying with the latest version of moodle that supports php8 but would like to know the answer in case the latter option doesn't work either
I know I am two years late but if you respond, can I have the add blocks feature within the manage page
Are you talking about adding blocks to these custom pages that we build? For that look up creating a new block region in your plugin templates
@@moodletips yes. Okay, will do. Thanks for the speedy response. You are still awesome!
@@moodletips the reason why I asked also because following your tutorial the pages don't have an "add a block" option
Great tutorial. Thanks for clearly explaining what you did and why. Especially thanks for all the DB and SQL hints and advice
Thanks so much and glad you enjoyed!
ты блять лучший
Is access.php determines the capability? if we skip the page then in define roles- we cant assign capablity?
You only need to include that file if you want to create some new capabilities. So yes, no capability will show up in roles if it hasn’t been created
Is it okay to host Moodle on a regular hosting? Or do I need VPS? and also, why did you stop making more tutorials, is there any place to learn more of development? :)
What do you mean by a regular hosting? You can host it however you like but using a cloud services provider is the standard these days. More videos will keep being added slowly, I have a few ideas. Thanks for watching
why skip the js content?
We can do form processing and definitions in PHP
Can you help me please. i followed the tutorial step by step. and after i modify the DocumentRoot to /var/www/html/moodle i get an error: Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /var/www/html/moodle/lib/adminlib.php on line 3886
Thank you very much, help me a lot
Hello, I had stopped doing your tutorials because I was stuck. because I think my php storm is misconfigured. I went to the next step tutorial #4 and I have an error page when I try to display my page: /local/message/edit.php The page shows me: Exception - syntax error, unexpected '...' (T_ELLIPSIS) More information about this error Can you help me please. Thanks
Bonjour j'avais arrêté de faire vos tuto, car je bloquais. car je pense que mon php storm est mal configuré. Je suis passé à l'étape suivante tuto#4 et j'ai une page erreur lorsque j'essaie d'afficher ma page : /local/message/edit.php La page m'affiche : Exception - syntax error, unexpected '...' (T_ELLIPSIS) More information about this error Can you help me please. Thanks
Very useful! Thank you!
Thank you!