Configure your block on the admin-->block page.
Under "Show block on specific pages," select the radio button for "Show if the following PHP code returns TRUE (PHP-mode, experts only)."
Enter the following PHP code:
<?php global $user; return ($user->uid); ?>
On 6/28/06, Gina Rydland girydlan@online.no wrote:
Hi all!
When I create new blocks I want them to just appear on the nodes/sides after people have logged in. So that they are only visible for those who are logged into the site. I do not want these blocks to appear on the front side before people are logged in. How do I do this?
Best, Gina
----- Original Message ----- *From:* Anisa mystavash@animecards.org *To:* support@drupal.org *Sent:* Wednesday, June 28, 2006 3:09 PM *Subject:* Re: [support] How to prevent block-user from showing up in the leftsidebar
Or if you only want it to show to logged out users, and disappear for logged in users, see the handbook for a php snippet that you can put in the custom php block visibility thingy.
Anisa.
On 6/28/06, Jason Flatt drupal@oadae.net wrote:
On Wednesday 28 June 2006 05:28, Sten wrote:
Hi!
I have a problem with this block-user thing showing up in my sidebar.
I
only want the menu there and I haven't added it to sidebar block in
the
block settings, but still drupal can not help including it. When
logged
in it's only a name, but when not it's a whole login form, something I only want to have on the login page. Who do I get tis block out of my sidebar?!
thanks
Sten
Disable it on your admin/block page. Just remove the Enabled check for User login, and save.
-- Jason Flatt http://www.oadae.net/ Father of Six: http://www.flattfamily.com/ (Joseph, 13; Cramer, 11; Travis, 9; Angela; Harry, 5; and William, 12:04 am, 12-29-2005) Linux User: http://www.sourcemage.org/ Drupal Fanatic: http://drupal.org/ -- [ Drupal support list | http://lists.drupal.org/ ]
--
www.AnimeCards.Org
16,000 scans and counting!
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]