Last updated April 7, 2007. Created by add1sun on April 7, 2007.
Log in to edit this page.
I found this very useful being that I wanted to have as certain domain for administration purposes only and the rest of my sites to only show content. This means getting rid of the Log In block and the Navigation block.
Here is what I used in the 'Set Visibility' section for "LogIn" and "Navigation" when setting up the block visibility; (replace the zeros with your domain or ip address)
<?php
global $base_url;
if ($base_url == 'http://00.00.00.00'){
return TRUE;
} else {
return FALSE;
}
?>I now have one web site or domain that has access to all blocks and menus for administering the Drupal install, content, blocks and settings. And the rest of my web sites or domains just list content like news web sites. Works for all blocks!