Plugins
Block plugins - a couple of bugs

Hi,

I've recently installed v4.2 locally (on a dev box), and am in the process of doing a major customisation exercise to integrate it with my website.

I've created three block plugins to inject stuff into layout.tpl, and I've found two bugs:

  1. everything was being injected at the top of the page, instead of at the appropriate block tag. I tracked this down to function loadPlugin in forum/sys/CODOF/Plugin.php -- the if is the wrong way round, line 71 should be:
    if ($plugin['plg_type'] !== 'plugin') {
    
  2. the list of plugins is not being loaded on page (for example) forum/admin/index.php?page=ui/blocks&action=editblock&id=5 -- I haven't tracked this one down yet, but have worked around it for now by manually setting the module column in table codo_blocks.

Cheers,

Richard.

Hi, I've recently installed v4.2 locally (on a dev box), and am in the process of doing a major customisation exercise to integrate it with my website. I've created three block plugins to inject stuff into layout.tpl, and I've found two bugs: 1. everything was being injected at the top of the page, instead of at the appropriate *block* tag. I tracked this down to function *loadPlugin* in *forum/sys/CODOF/Plugin.php* -- the if is the wrong way round, line 71 should be: ```` if ($plugin['plg_type'] !== 'plugin') { ```` 2. the list of plugins is not being loaded on page (for example) forum/admin/index.php?page=ui/blocks&action=editblock&id=5 -- I haven't tracked this one down yet, but have worked around it for now by manually setting the module column in table codo_blocks. Cheers, Richard.
edited Jan 16 '18 at 12:21 pm

Hi,

Thanks for pointing this out, we will fix it.

Hi, Thanks for pointing this out, we will fix it.
Necessity is the mother of all inventions!
130
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft