-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Placing an image in the HTML block #2
Comments
no its probably a bug of the version you have
you may try to get the latest at
http://github.com/vfremaux/moodle-block_rolespecifichtml on the relevant
branch for you
It may be newer code. I know i had to review back the file management as
not trivial to master in moodle.
Let me know
Valery.
2017-02-24 20:58 GMT+01:00 gemguardian <notifications@github.com>:
… Hello Valery,
I am not sure if it's not possible or if it's a bug.
I am using Moodle 2.9 on this.
We placed an image in the HTML block, and we do see it in the editing
mode. But when we save the changes the image doesn't appear on the course
page.
Is this a bug? Or is this something that is part of the functionality of
the block.
Thank you very much.
Gemma
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABrId4OFflbyuRy8ouZ3v8-5pcFGcajhks5rfzZ7gaJpZM4MLnWY>
.
|
Thank you for your responds, I will do a check and give you feedback as soon as possible. |
Hi Valery, We tried it with branch 2.9 but the technical department reported these issues back to me:
Since I have no local 2.9 moodle I couldn’t test it myself, so this is the information I can give. And while mailing you now, do you have any plans to upgrade the block for Moodle 3.2? |
I know this issue is old, but in the current version (of both the rolespecific html block and Moodle) files do not work. There are 3 issues that I can see. 2 - On line 63 of lib.php, you have: 3 - Currently all files are placed in /content. To fix 3a, it would require changing edit_form.php and block_rolespecifichtml.php to change the file area to something more unique, such as content_all and content_roleid. Then also changing the block_rolespecifichtml_pluginfile to allow more files, either by checking for all possible fileareas, or just checking the first part of the string. To fix 3b, as well as the change for 3a, it also requires adding a check for the role into the above function. I have submitted a pull request to fix all bar 3b. |
Good day. This issue is still happening in latest version from master branch. Environment Steps:
Result: You will see that the text is displayed, but the image is not. See screenshot attached. |
Yes, the pull request I submitted to solve this issue has not yet been accepted. You can try using my master branch which fixes this and has a few other issues fixed, or you can use my branch specifically for this fix: Note that the branch to just fix uploading of files doesn't check if people can access the section of the block the file is in to be able to access the file. So if someone knows the URL to a file, and has access to the block, they can access any file in the block. My master version includes that checking as well as some other functionality to make blocks work in other locations. |
Thanks. We will have a look and review. Regards. |
Hello Valery,
I am not sure if it's not possible or if it's a bug.
I am using Moodle 2.9 on this.
We placed an image in the HTML block, and we do see it in the editing mode. But when we save the changes the image doesn't appear on the course page.
Is this a bug? Or is this something that is part of the functionality of the block.
Thank you very much.
Gemma
The text was updated successfully, but these errors were encountered: