I have upgraded my test site and am trying to get it to appear as close to my 4.7.5 work site as possible. However, I see that the author and date timestamp are not being posted in Drupal 5.

Example:

Test site: www.pemberworth.com/drupal
Work site: www.darcylicious.com

How can I get the author/date to show with the chameleon theme?

Thanks again!

Comments

drupalluver’s picture

Searching further, I find that this problem also involves post comments not showing author information. Also discussed as an issue

http://drupal.org/node/101927

It seems to me that the new changes in chameleon.theme (which I have gone through line by line comparing 5.0 to 4.7) have caused some css problems as well. Instead of using .primary to change the css of primary links, I have to adjust .navlinks or .navlist instead. This wasn't true for 4.7.5

It doesn't seem as if this theme is ready for the upgrade. I doubt I'll upgrade my site anytime soon.

sepeck’s picture

Chameleon is a core theme for Drupal so yes, it is still 'supported'. It is also a php based theme rather then using the phpTemplate engine.

Remember, not all themes support all features. I don't remember is Chameleon previously support that. If it did, it's a bug that it doesn't work. As to getting it fixed. The strength of Open Source is that people can work on things that interest them and the weakness of Open Source is that people can work on things that interest them.

With any luck, someone will see it and help you work on it.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

drupalluver’s picture

Hi Steven, thanks for replying.

It's definitely a bug as it works in 4.7. The code for having the post information is present. It just doesn't work in drupal 5. I was hoping that as a core theme, this problem would be addressed. But it isn't.

In general, I think open source is fabulous.

nickmaynard’s picture

did you figure this out? i have the same problem.

drupalluver’s picture

No, I haven't found a fix yet. I still haven't done the update to drupal 5 because of this.

Rapee’s picture

I checked the new theme_links function in 5.x, and found an easy solution: we just have tell to theme_links, that Author's user name and submitted date are in HTML already.

In function chameleon_node:

  $submitted['node_submitted'] = theme_get_setting("toggle_node_info_$node->type") ? array('#title' => t("By !author at @date", array('!author' => theme('username', $node), '@date' => format_date($node->created, 'small')))) : array();

Change it to this:

  $submitted['node_submitted'] = theme_get_setting("toggle_node_info_$node->type") ? array(
    'title' => t("By !author at @date", array('!author' => theme('username', $node), '@date' => format_date($node->created, 'small'))),
    'html' => TRUE) : array();

function chameleon_comment:

$submitted['comment_submitted'] = array('#title' => t('By !author at @date', array('!author' => theme('username', $comment), '@date' => format_date($comment->timestamp, 'small'))));

Change it to this:

  $submitted['comment_submitted'] = array(
    'title' => t('By !author at @date', array('!author' => theme('username', $comment), '@date' => format_date($comment->timestamp, 'small'))),
    'html' => TRUE);

That should work.

MarkDerrick’s picture

Perfect! That fixes it!
Thanks very much.

Mark.
www.thederricksonline.com

ttripp’s picture

I'm a newbie to Drupal - a volunteer webmaster for my professional association, and just getting my feet wet for the last couple weeks. This was driving me nuts! It seemed such a basic thing, I was sure I was just missing a setting somewhere!

Nagyon szépen köszönöm!

Tim

jmn’s picture

Fixes Marvin too. Great!

Rather obvious since Marvin is based on Chameleon - but I better report the success with Marvin too.

Also: If you do the patch manually, consider making a copy of Chameleon under sites/all/themes/ and make the patch there. The 5.0 way of keeping main clean and do all customization in sites/

Swedish Drupal sites:
http://cyborgmoln.se www.publishyourbook.se www.idekampanjer.se

Vic96’s picture

This code gives me the error:

Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/domain/public_html/mumbai/themes/chameleon/chameleon.theme on line 142

Marvin doesn't show timestamp and author name currently. Please guide me. Thanks.

Vic96’s picture

Never mind. I got the latest version of Marvin and it worked.

rizzo’s picture

You, sir, are a true gentleman.

joseph_south’s picture

Hi there, thanks in advance for your help... I am new to Drupal and can't figure out where I go exactly to find this theme_links function. Please help!

Cheers,
JWS

surfacescan’s picture

Hi Joseph - the file you are looking for is called:

/themes/chameleon/chameleon.theme

And is found in the root of your site. The functions are in this file.

Thanks for the patch, Works great!

billtubbs’s picture

Thanks Rapee

You solved the problem for me too. So how does a fix like this get into the official code download? Has someone raised a bug-fix? Sorry, I'm a newbie but happy to help.

Bill.

Greg J. Smith’s picture

Thanks for the fix!