diff --git a/blockem.tgz b/blockem.tgz index b01e8f98..d31c638f 100644 Binary files a/blockem.tgz and b/blockem.tgz differ diff --git a/blockem/blockem.css b/blockem/blockem.css index 72c0bcc3..265b6ba8 100644 --- a/blockem/blockem.css +++ b/blockem/blockem.css @@ -8,6 +8,8 @@ #blockem-words { float: left; margin-top: 10px; + width: 400px; + height: 150px; } #blockem-submit { diff --git a/blockem/blockem.php b/blockem/blockem.php index 4fff2148..f8c30dc6 100644 --- a/blockem/blockem.php +++ b/blockem/blockem.php @@ -11,6 +11,7 @@ function blockem_install() { register_hook('prepare_body', 'addon/blockem/blockem.php', 'blockem_prepare_body'); + register_hook('display_item', 'addon/blockem/blockem.php', 'blockem_display_item'); register_hook('plugin_settings', 'addon/blockem/blockem.php', 'blockem_addon_settings'); register_hook('plugin_settings_post', 'addon/blockem/blockem.php', 'blockem_addon_settings_post'); @@ -19,6 +20,7 @@ function blockem_install() { function blockem_uninstall() { unregister_hook('prepare_body', 'addon/blockem/blockem.php', 'blockem_prepare_body'); + unregister_hook('display_item', 'addon/blockem/blockem.php', 'blockem_display_item'); unregister_hook('plugin_settings', 'addon/blockem/blockem.php', 'blockem_addon_settings'); unregister_hook('plugin_settings_post', 'addon/blockem/blockem.php', 'blockem_addon_settings_post'); @@ -30,7 +32,6 @@ function blockem_uninstall() { function blockem_addon_settings(&$a,&$s) { - if(! local_user()) return; @@ -47,7 +48,7 @@ function blockem_addon_settings(&$a,&$s) { $s .= '