The normal way stories are shown is the title, followed by the user who submitted it and the time it was submitted, and then its content. Is there a way to hide the information about the user who submitted it and the time it was submitted for anonymous users?

Comments

davemybes’s picture

You need to edit your node.tpl.php (or node-story.tpl.php) template file and add a check to see if the user is logged in or not. eg.

 global $user; 
  if ($submitted && $user->uid) {
    print $submitted;
  }

______________________________________________________________________________________________________
mybesinformatik.com - Drupal website development

______________________________________________________________________________________________________

bullettime’s picture

Where is it located? I looked into my drupal-5.12 folder and I couldn't find node.tpl.php or node-story.tpl.php

cgjohnson’s picture

Look in your themes folder, that's where it should be. (If it's a contributed theme you should have saved that in sites/all/themes, if it's a standard theme that ships with 5.12, it should be in /themes - Be sure you're in the folder of the Theme you're using.)

bullettime’s picture

it was indeed inside the theme folder...
thats weird, i used slocate and it couldn't find the file.
thanks!

bullettime’s picture

i edited the file and it worked as expected, thanks!