Remove modification to $submitted

maiki - September 24, 2009 - 13:25
Project:Advanced Forum
Version:6.x-2.x-dev
Component:Other module integration
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Issue tags:$submitted, Submitted_by
Description

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?

AttachmentSize
submitted-by.png34.04 KB

#1

Michelle - September 30, 2009 - 01:55
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 report» 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

#2

maiki - October 4, 2009 - 01:57

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

#3

Michelle - October 26, 2009 - 03:45
Status:active» fixed

Removed from 2.x.

Michelle

#4

System Message - November 9, 2009 - 03:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.