Is it possible to have the frontpage list the active forum topics in the sidebar but have your posted topics listed when you are logged in. the fact that I can easily find what I have posted and look for replies is huge to me.

Comments

gabriella’s picture

Take a look in the handbooks > http://drupal.org/node/39282,
there are quite a few php snippets you culd use, like

This shows a block's content in any location

<?php
$block = module_invoke('module_name', 'block', 'view', 0);
print $block['content'];
?> 

This shows the text only to logged in users

<?php
global $user;
if ($user->uid) {
    return "This block is only visible for logged-in users.";
} else {
    return  ;
}
?> 

If you combine these two you can make a custom block, and perhaps use sometning like this

<?php
global $user;
if ($user->uid) {
   $block = module_invoke('forum', 'block', 'view', 0);
print $block['content'];
    
} else {
    $block = module_invoke('forum', 'block', 'view', 1);
print $block['content'];
}
?>