Can someone know this give some information.

Comments

voidberg’s picture

Go to admin -> themes -> settings. You'll find the information there.
--
Alexandru Badiu
http://www.voidberg.org

Bartek’s picture

Can I hide username, and show only date?

pan0s’s picture

Try to edit the node.tpl.php where this info you want to hide is generated

-----------------------------------------------------------------------------------------
Some people say the glass is half-full while others say its half-empty....i say bottoms up.

Bartek’s picture

Thanks for reply.
In node.tpl.php I have: print $submitted
This print auhthor and date. I need print only a date, without author. How can I do this, where $submitted variable is defined?

pan0s’s picture

in any case replace the 'print $submitted' thing ..... ;)

  • example 1

  <?php if ($submitted): ?>
    <div class="submitted">
<?php print theme (). ' on ' . str_replace('-', ' – ', format_date($node->created)) ?>
</div>
  <?php endif; ?>


  • example 2
<?php if ($submitted): ?>
<div class="submitted">
<?php
            print 'on ' . format_date($node->created, 'custom', 'd/m/Y');
            
            }
        ?>
  <?php endif; ?>
</div>

panos

----------------------------
Some people say the glass is half-full while others say its half-empty....i say bottoms up.

Bartek’s picture

Thank You very much!

hansrossel’s picture

in template.php use

function THEMENAME_node_submitted($node) {
  return t('Published on !datetime',
    array(
      '!datetime' => format_date($node->created, 'large'),
    ));
}
mukiibi’s picture

You saved my day

zanematthew’s picture

where is this in 5.1?

is it better practice to disable it from the drupal gui or just to edit the php file ?

vm’s picture

disabling through the GUI disbales in total on content types you choose to have it not show on , this includes date submitted and author. The code seen above, is a theme override to allow for date to show, while author does not show.

In D5 its in administer -> site building -> themes or: yoursite.com/admin/build/themes if you so choose.

click the configure tab at the top
next page, look to top right corner box, remove post information for the content types you choose not to have this information displayed on.

zanematthew’s picture

wow, thanks sooo much for the quick reply!

but i still would like to know, is it better practice just to edit the php file? since i NEVER intend on using this feature

vm’s picture

no, in practice it is always better to avoid hacking core files.

abhinya’s picture

goto CONTENT TYPES
to the right of any content type under OPERATIONS
choose EDIT
look for DISPLAY SETTINGS
un-check "Display author and date information."
that's it
Regards,
Abhi Kalyan

vm’s picture

The_Bucks’s picture

Here is an update for Drupal 7x

  1. Structure
  2. Content types
  3. Edit
  4. Edit Tab
  5. On the edit tab there will be a menu on the bottom of the page.

  6. Choose "Display settings"
  7. Uncheck "Display author and date information.
  8. Author username and publish date will not be displayed."

Adjust any other content settings right here such disabling commenting or disable automatic publish to the front page.