I installed the iimage module and have my gallery up and running.

What I want to do it remove the "Posted by" under each of the image thumbnails.

How do I do that?

Thanks,
Myeire

Comments

michellex’s picture

I took this <div class="info"><?php print $submitted ?></div> out of node.tpl.php because I don't want it showing up anywhere for anything.

But you could prolly just take out this line in image_gallery.tpl.php : $content .= '<div class="author">'. t('Posted by: %name', array('%name' => format_name($image))) . "</div>\n";

cheers,
~M

www.steelveils.com

myeire’s picture

Thanks for the quick reply!

Question: Where do I find "image_gallery.tpl.php"? I've looked and can not find it, but maybe I missed it and am just not looking in the right spot.

Thanks!
MyEire

michellex’s picture

oops. I was going under the assumption that you had one made already. This http://drupal.org/node/41257 may help explain.
If you don't wanna get into all that, then I think you'd have to take it out of your node.tpl.php file. Those would be the only two ways I'd know how to do it.

~M

www.steelveils.com

steffen’s picture

Make a new file in your theme's directory called image.tpl.php. Copy over the contents of the node.tpl.php file and change <?php print $submitted ?> to <?php print $date ?>. Now save, and only the date will show, instead of the full name

michellex’s picture

That's a much better idea.

www.steelveils.com

myeire’s picture

Thanks for all the help.

I don't even have a node.tpl.php file. Is that something I'm supposed to have?

There is no place within the image.module to remove the "Posted by" attribute?

I take it this is an attribute of the theme and not the module?

Thanks,
MyEire

myeire’s picture

I got it figured out.

The line that was mentioned to be found in the image_gallery.tpl.php file was also in the image.module file, so I just removed it from there and now it's removed the "Posted by" from my pics.

Looks really good now.

Thanks for all the help!!
MyEire

styro’s picture

I don't even have a node.tpl.php file. Is that something I'm supposed to have?

The advice you've been getting so far is for PHPTemplate themes.

I don't know what the equivalent is for XTemplate themes, or even if it is possible with them. PHPTemplate is the future default theme engine for Drupal. If it's not already too late in your site development, you could try out some PHPTemplate themes instead.

Before you go hacking themes though, have you checked the "Display post information on" setting in /admin/themes/settings ?

--
Anton
New to Drupal? Please read this
Also: Forum posting tips

kae’s picture

recommend using phptemplate themes if you are not an expert!

styro’s picture

I'd recommend PHPTemplate to (just about) anyone. But I'm probably a bit of a one eyed zealot about it ;)

It is the most popular engine, and is the default for 4.7 onwards. This means that it will have the most complete and most up to date docs. It will also have the most peer support available from your fellow theme hackers, and the most example themes to download. You won't run into issues with support for it 'falling behind' like XTemplate might.

It is more flexible and powerful than XTemplate, but still relatively accessible. You don't need to fully understand it to hack it around, but it still gives you lots of headroom to grow into as your skills improve.

And although you don't need to know much PHP at all to make basic changes to PHPTemplate themes, you'll start picking up some idea of what PHP looks like and how it works that might bridge the gap for you if you decide later that you do want to starting learning PHP. What I mean is that you aren't wasting effort on learning a parallel technology that may not be aplicable later.

Does that help?

--
Anton
New to Drupal? Please read this
Also: Forum posting tips