How to not display author information
totaldrupal - April 28, 2008 - 18:59
| Project: | Light |
| Version: | 5.x-1.6 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | nickbits |
| Status: | closed |
Jump to:
Description
I've got author information set to not display post information in the global theme settings but it is still showing it. How do I turn it off?

#1
Hi,
It should be following the global settings. I know I tested this and it worked as it was raised earlier. I will take a look at it, however, it will not be until the weekend. Can you confirm which post types you have (blog, story, page, etc.)
Cheers,
Nick
#2
it shows on all I use, story, image and product. I haven't tested the other node types.
#3
Hi,
Thanks for that. I know what the issue is and how to fix it. Just need to find the time. Will get it done ASAP.
Nick
#4
Hi,
As I thought, I did correct that issue. Can you download the Development release and try again please. It works perfect on my test system.
Nick
#5
Can you post a diff for this, or tell us what you did? Thanks.
EDIT: I found the change, in node.tpl.php, changed this:
<div class="submitted">
<?php print t('Published by ') . theme('username', $node) .' on ' .format_date($node->created, 'custom', "F jS, Y") ; ?>
<?php if (count($taxonomy)): ?>
<?php print ' in '.light_print_terms($node->nid) ?>
<?php endif; ?>
</div>
to this:
<div class="submitted">
<?php
if ($submitted):
print t('Published by ') . theme('username', $node) .' on ' .format_date($node->created, 'custom', "F jS, Y") ;
$pred = " in ";
else:
$pred = "Filed in ";
endif;
if (count($taxonomy)):
print $pred.light_print_terms($node);
endif; ?>
</div>
and that fixed it for me.
#6
Fix is in node.tpl. I do not have the means to do a diff at present. The submit section divs should read:
<div class="submitted">
<?php
if ($submitted):
print t('Published by ') . theme('username', $node) .' on ' .format_date($node->created, 'custom', "F jS, Y") ;
$pred = " in ";
else:
$pred = "Filed in ";
endif;
if (count($taxonomy)):
print $pred.light_print_terms($node->nid);
endif; ?>
</div>
Hope this is of use.
Nick