Is very easy to show some contents to anonymous AND some other to authenticated users in Drupal. You'll only need to adapt the following few lines of php to output your content:
<?php
global $user;
if (!$user->uid) { ?>
<div>anonymous content here</div>
<?php } else { ?>
<div>authenticated content here</div>
<?php } ?>Yep, that easy.
<?php
/**
* The following simple snippet
* displays different information to anonymous/logged in users within a page.
*
* This works with drupal 4.5 and drupal 4.6
*/
global $user;
if ($user->uid) {
return "This message is only visible for logged-in users.";
}
if (!$user->uid) {
return "This message is only visible for not-logged-in users.";
}
?>