In the moodle documentation it says
"You may add non-standard blocks simply by using a file manager to copy the new block as a directory into the moodle/blocks directory and Moodle will install it next time you visit the admin page. Moodle uses the name of the directory as the name of the block. The same applies for blocks which you delete and wish to reinstall later."
I have put the right directories in the blocks directory, but I just cant get the blocks to show up in that list. Do you need to manually add some extra rows to the blocks table in the moodle database to get it working or something like that ?
Any help would be most appreciated.
Geoff
and Moodle will install it next time you visit the admin page
have you visited the admin page?
Ok...
Which block(s) did you install?
Can you post a screenshot (or listing) of the blocks directory? Most of the time blocks don't install because they somheow end up in the wrong place.
You don't need to add anything manually to the database, but if you have access to the database, you can check if the blocks have been added to
mdl_blocks
I have tried installing a number of blocks. One was a simple "time" block.
Attached is a screenshot of the "blocks" directory within my moodle install
I have had a look at the "mdl_blocks" table in my moodle database and the new blocks aren't coming up in there.
Thanks
Most of the time one "Bad block" is blocking the loading of the others:
- take out the blocks which are not mentioned in your mdl_blocks_table
- place one back
- visit the admin page ( ../admin/index.php )
- does that one show up?
- yes? put next one back
- no? got'm!! ..now just find the bug
(Another reason for not showing up: check how the content string in the block is built up: a block with an empty string does also not show up, but in your case it is not registrating as a block.)
Turns out that I just thought that when you were logged in as admin, and clicked "turn editing on" that I was on the admin page.
But the admin page is actually /admin/index.php ...
When I went there, the table was updated and the block works.
I told you I was a newb. Sorry to waste your time.. thanks heaps for your help ..
Do you know if there is a link to this "admin" page (../admin/index.php) anywhere from the main page of moodle?
Thanks again
thanks for the extra information.
The time block comes with it's own language string and readme. Did you copy the whole time directory straight into the blocks directory? Can you post a screenshot / tell me what exactly is inside blocks/time/ ?
Where did you find this documentation? I've looked at the non-standard blocks page, but it is not there.