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.
Comment | File | Size | Author |
---|---|---|---|
#4 | af7_1812966_1.patch | 1.07 KB | troky |
Without the module | 6.62 KB | Pibito | |
How it looks inside | 5 KB | Pibito | |
How it looks | 7.57 KB | Pibito |
Comments
Comment #1
kbergax CreditAttribution: kbergax commentedI 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...
Comment #2
Pibito CreditAttribution: Pibito commentedYou rock. It works awesome!
Thank you very much.
Comment #3
troky CreditAttribution: troky commentedCan'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.
Comment #4
troky CreditAttribution: troky commentedAnyway, you can try attached patch and report back.
Comment #5
gints.erglis CreditAttribution: gints.erglis commentedline 256 on /includes/theme.inc
$variables['date_posted'] = format_date($timestamp, 'small')
shouldn't be ?
$variables['date_posted'] = format_date($timestamp, 'short')
Comment #6
troky CreditAttribution: troky commentedYes, it should be 'short' but that fact doesn't cause user's problem.
Patch from #4 committed as well as change from #5.
Comment #8
ifish CreditAttribution: ifish commentedAm 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.
Comment #9
troky CreditAttribution: troky commentedI can't reproduce this error. Can you check if problem persists with default Silver Bells style?
Comment #10
troky CreditAttribution: troky commentedNo answer. Closing.