I am using the Submitted_by module to change the output of $submitted on a per content type basis.

Additionally, it allows one to change the "submitted by..." line for comments as well. I have them changed for all the content types on the site (both node and comments), and they all work, except for the output for forum comments when Advanced Forum is enabled. When I turn AF off the submitted line shows up as I mean it to.

Attached is a screenshot of the of the two submission outputs. The code I am using is simply <?php print $submitted ?>.

Any ideas?

CommentFileSizeAuthor
submitted-by.png34.04 KBmaiki

Comments

michelle’s picture

Title: Submitted_by token values don't show up in $submitted output » Remove modification to $submitted
Version: 6.x-1.1 » 6.x-2.x-dev
Category: bug » task

Hmm... This appears to be legacy code that is no longer used. I'll take it out of 2.x. If you want to take it out of your 1.x, find this line and delete it:

$variables['submitted'] = format_date($variables['comment']->timestamp);

Michelle

maiki’s picture

Thank you much. I commented that line and it works like a charm. ^_^

michelle’s picture

Status: Active » Fixed

Removed from 2.x.

Michelle

Status: Fixed » Closed (fixed)
Issue tags: -Submitted_by, -$submitted

Automatically closed -- issue fixed for 2 weeks with no activity.

avpaderno’s picture

Issue summary: View changes
Issue tags: -Submitted_by, -$submitted

I am removing issue tags used from a single issue.