Can't seem to remove the "submitted by admin" line

Events happening in the community are now at Drupal community events on www.drupal.org.
pkcho's picture

I'm trying to remove the "submitted by admin" line associated with the Gallery Assist node, but can't seem to find how to do that.

I've gone to the theme configuration to attempt to turn it off for various content types, but it doesn't work. I've searched through the page.tpl.php to look for the statements that would write the "submitted by line", but I can't seem to find and affect it.

I have attached a png screenshot showing the page with Devel activated displaying the relevant information.

If someone could direct me where to go and what code I need to delete, I would be totally grateful.

Thank you,
Joe

AttachmentSize
screenshot.png305.25 KB

Comments

Global settings of your theme

fkiner's picture

Go to the global settings of your themes:

/admin/build/themes/settings

and turn it off for the Gallery in "Display post information on"

It's not working

pkcho's picture

I think I may have deleted the php code that controls those settings, but I can't seem to find where it's at to replace it.

Can someone point me to which file and what code I need to replace?

Thanks,
Joe

The quick and easy is to find

Adam S's picture

The quick and easy is to find a unique class or id for the element and put this into the style.css found in the site/all/themes/yourtheme directory .thisisclassofauthorinfo {display: none} . Lullabot has some videos that cover this issue. It might worth the price to buy them and have a look.

Here is an example of how special information is pulled from a profile field to create the byline of an article. vs. the node.tpl.php that came with 960grid.

   <div id="byline">
       <div class="author">
           By <span><?php 
              $author
= user_load(array('uid' => $node->uid));
              print
l($author->profile_full_name, 'user/'.$node->uid); ?>

                            </span>
       </div>
     <div class="datestring">
             <p><span><?php print (date('F j, Y', ($node->created))); ?></span></p>
     </div>
   </div> <!--/#byline-->

  <?php if ($submitted): ?>

    <span class="submitted"><?php print $submitted; ?></span>

  <?php endif; ?>

Marine job board with Drupal 7 at http://windwardjobs.com

Try changing theme and seeing

andyf's picture

Try changing theme and seeing if that causes the settings in comment #1 to work. If so, it's likely that a file in your theme's overriding the normal rendering. Maybe node.tpl.php or node-image.tpl.php...

Removing "submitted by..."

Chris Charlton's picture

I doubt you deleted the settings that control the Global Theme (post) settings as that's provided by Drupal and your site would render funny or not at all. The Global Theme settings is where this settings should be turned on/off. If not, then like other people mentioned above there is a custom theme not respecting the global setting. The places it could be are in your theme folder (files: template.php, node.tpl.php, node-*.tpl.php).

Chris Charlton, Author & Drupal Community Leader, Enterprise Level Consultant

I teach you how to build Drupal Themes http://tinyurl.com/theme-drupal and provide add-on software at http://xtnd.us

I've tried everything above...

danking12's picture

Has anyone figured this out? I have a page with a gallery within it. I don't see the "submitted by" line when viewing the page with the full gallery but if I click to view the full individual picture that is when the "submitted by" line is present. Does anyone have any suggestions as to what I may be missing?

Thanks in advance.

I use adamsohn´s solution and

carlosgonca's picture

I use adamsohn´s solution and for now is ok. But I want to put a Title, like the first page of gallery assist, and I don´t know why, this title is not present in item page. How can I put this title in item page?

I removed the "submitted by

ˇh2nk's picture

I removed the "submitted by information" this way.

at gallery_assist.modulefile

Remove this line of code

$item->submitted = theme('gallery_assist_item_submitted', $node);

Use template file

pamatt's picture

It may be a less hacky solution to copy in your theme's folder the file gallery-assist-item.tpl.php provided with the module. In this template file the "Submitted by..." line is output directly from the Gallery Item object, with no regard of theme settings. You can simply remove the code for the "submitted" line or write your own code to test theme settings.

Better yet, you can copy the theme_gallery_assist_item() function from gallery_assist.module to your template.php file, rename it YOUR_THEME_NAME_gallery_assist_item() and modify it to suit your needs.

Don't forget to clear the theme cache after messing with templates!

A rather simple solution

--
Web Developer & Multi-Media Designer
http://gurtnerdesign.com

Newspapers on Drupal

Group organizers

Group categories

Topics - Newspaper on Drupal

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: