HTML (per role)

Blocks ::: block_rolespecifichtml
Maintained by Valery Fremaux
Allows distinct roles to get differetn content within an HTML bloc at the same layout location.
Latest release:
64 sites
7 downloads
16 fans
Current versions available: 10

This simple block allows to display distinct information for each role involved within a course workplace. 

The Moodle 2.x versions are the result of the French state level project "ENTLibre 2.0" Of the National Funding program "Investissement d'Avenir"

Contributors

Valery Fremaux (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

显示评论
  • Valery Fremaux
    2014年08月19日 星期二 16:10
    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
  • anna ko
    2014年12月7日 星期日 16:44
    Valery,
    i'm using moodle 2.7 ..and i think it's 2.2 plugin.
  • Fernando Oliveira
    2015年09月10日 星期四 04:08
    Any plans to make this compatible with Moodle 2.9?
  • Hartmut Scherer
    2016年09月29日 星期四 06:10
    This block cannot be added to My Dashboard (moodle/my/index.php).
  • Valery Fremaux
    2016年09月29日 星期四 17:09
    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 ?
  • Ryan Bernstein
    2016年10月22日 星期六 02:43
    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.
  • Zak Stoimenov
    2016年11月17日 星期四 13:39
    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!
  • Gemma Lesterhuis
    2017年02月14日 星期二 22:37
    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
  • Valery Fremaux
    2017年02月21日 星期二 05:46
    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.
  • Valery Fremaux
    2017年02月21日 星期二 05:47
    My all works repository is http://github.com/vfremaux (without space)
  • Zak Stoimenov
    2017年08月2日 星期三 15:52
    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.
  • Zak Stoimenov
    2017年08月3日 星期四 08:23
    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!
  • Blair F.
    2020年09月24日 星期四 02:40
    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.
  • Jeffrey Black
    2020年11月7日 星期六 15:41
    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.
  • Blair F.
    2021年02月13日 星期六 03:17
    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.
1 2
Please login to post comments