2016-02-18, 05:02:53
Here's a way to add News Manager to the Custom Landing Page dropdown selector in the Multi User plugin (v1.8.2):
- Install and activate the sa hook components plugin
- Create a component named hook_footer and paste this:
Works for me on Firefox and Chrome, but I'm not sure it will work in all browsers. (The Multi User plugin is incorrectly rendering multiple selects with same css id and name.)
- Install and activate the sa hook components plugin
- Create a component named hook_footer and paste this:
Code:
<?php if (basename($_SERVER['PHP_SELF']) == 'load.php' && isset($_GET['id']) && $_GET['id'] == 'user-managment') { ?>
<script>
$('select[id="userland"]').append($('<option>', {
text: 'News Manager',
value: 'load.php?id=news_manager'
}));
</script>
<?php } ?>
Works for me on Firefox and Chrome, but I'm not sure it will work in all browsers. (The Multi User plugin is incorrectly rendering multiple selects with same css id and name.)