Hi everybody. I'm making my first forum with this great module.

But I have a problem. When I'm in /forum, it doesn't shows the last topic date, but literally @date_posted.

The only changes I did were the forum theme colors in the module .css, but I don't think it has something to do with the problem.

It shows so:

Last post
by admin
@date_posted [literally]

In the other side, when I enter, for example, to the General forum, the posts in there have all last post date showing ok. The problem is only with the container level.

I really don't know what should it be. I looked around the Advanced Forum module config, but I still can't figure what could be the problem.

PS: Everything works ok when I shut down the Advanced Forum module.
PS2: I cleaned the cache.

Hope you can help me.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kbergax’s picture

I had the same issue, i solved it changing the line 252 on /includes/time.inc from

$variables['time'] = format_interval(REQUEST_TIME - $variables['topic']->created);

to

$variables['date_posted'] = format_interval(REQUEST_TIME - $variables['topic']->created);

It works like a charm. I don't know anything, so you will say if it's a bug or something.

i hope this work for you...

Pibito’s picture

You rock. It works awesome!

Thank you very much.

troky’s picture

Can't reproduce your problem. Please try with some of default AF styles (Silver Bells for example) and check if problem persists.

#1 can't work like charm because $variables['date_posted'] should return actual post date while $variables['time'] returns time interval.

troky’s picture

Status: Active » Needs review
FileSize
1.07 KB

Anyway, you can try attached patch and report back.

gints.erglis’s picture

line 256 on /includes/theme.inc
$variables['date_posted'] = format_date($timestamp, 'small')
shouldn't be ?
$variables['date_posted'] = format_date($timestamp, 'short')

troky’s picture

Category: support » bug
Status: Needs review » Fixed

Yes, it should be 'short' but that fact doesn't cause user's problem.

Patch from #4 committed as well as change from #5.

Status: Fixed » Closed (fixed)

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

ifish’s picture

Status: Closed (fixed) » Active

Am I the only one that still has this problem? It seems it occurs only on forum threads that haven't had any new posts for 5+ day(s).

example: http://terrangaming.com/squads

I've installed the latest AF and used the patch provided above, still hopeless. Any ideas?

Thanks in advance.

troky’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce this error. Can you check if problem persists with default Silver Bells style?

troky’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

No answer. Closing.