HTML (per role) icon

HTML (per role)

Allows distinct roles to get differetn content within an HTML bloc at the same layout location.
Price option: Free

Supports Moodle 1.9-3.1 See all versions
Latest release: 9 years ago
Installations: 34
Downloads (last 90 days): 43

Frankenstyle name: block_rolespecifichtml
Blocks

Comments

Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.

Thank you, Jeffrey! Believe it or not, I'm only getting back to this now!!!! Your tip helped, for sure. I've found a few other buggy behaviours that I'm currently testing before implementing it in our production system. It looks as though this plugin doesn't get a lot of attention.
Blair, if you are able to edit the code, the easiest thing to do is to remove or comment out this line:
if (empty($this->content->text)) $this->content->text = ' ';
Found in block_rolespecifichtml.php, which is currently on line 104.
Does anyone know if it's possible to have the block NOT show for any of the roles that don't have content? I tried entering content for only two of the roles and they show as expected. However, all the other roles see an empty block. I would like it so that the block is only visible to the roles that have actual content.
Update to my previous post.
It turns out that the plugin works fine. There is, however, a drop-down menu that controls the 'Context to check'. The options are system level or course level. If you have problems with roles not seeing their content please adjust that setting to enable it for your users. Cheers!
Hi Valery, can you confirm if the plugin works with 3.3.1. We upgraded and it seems like HTML (per role) plugin stopped working (content not showing). I am not sure what has changed.
My all works repository is http://github.com/vfremaux (without space)
Hi Gemma, Hi all
As i need tracking around 140 plugins now, and Moodle.org has not yet an automated gate for pushing plugin updates. I may advise you to track the last state of the plugins at http://github.com/ vfremaux. All plugins are daily worked with now an industrial process and continuous integration effort. Consider STABLE branchs as version reference. We hope the Moodle.org on day open a remote push for Zips that can close the chain, but at the moment we have not.
Cheers.
Hello Valery,
I am just wondering - an it might nog be possible - but we are trying to place an image in this block and the image doesn't want to appear.
The block only seems to show text. Is that right?
We have it installed on Moodle 2.9 and maybe I am missing something.
Thank you very much.
Gemma
Hi Valery,
This is a great tool! I also would like to see this used on the MOODLE Dashboard. Is there something that I could change in order to get it working there as well?
Thanks!
This is definitely a great plugin. We'd definitely like to see the functionality expanded to the site level. That's be tremendously useful when posting messages to faculty and students.
Actually ! the major use of role are in course or activities. May we think it would be usefull to grab site level roles in this situation ?
This block cannot be added to My Dashboard (moodle/my/index.php).
Any plans to make this compatible with Moodle 2.9?
Valery,
i'm using moodle 2.7 ..and i think it's 2.2 plugin.
i think this essentially means that the role name is comming blank. this can happen if the plugin is misversionned. PLease tell me what moodle version u are using and which plugin version is installed.... thanks