Undefined function: _forum_format()

Elstgeest - September 16, 2008 - 10:55
Project:The Dark Theme
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:paddy_deburca
Status:needs review
Description

I like your theme, but for some reason the template is not able to find the function _forum_format() which is used in line 118 in template.php.

I'm looking forward to a fix :)

#1

Elstgeest - September 16, 2008 - 10:57

Oh, and ofcourse: thanks in advance.

#2

paddy_deburca - December 20, 2008 - 13:27
Assigned to:Anonymous» paddy_deburca
Status:active» needs review

Thanks.

It seems that _forum_format is a 5.x function and no longer appears in 6.x...

I replaced the call to this function with
t('@time ago<br />by !author', array('@time' => format_interval(time() - $forum->last_post->timestamp), '!author' => theme('username', $forum->last_post))))

We'll see if that helps.

Paddy.

#3

tofix - March 25, 2009 - 09:45

I need help too with this defect.

I replaced line 118

array('data' => _forum_format($forum->last_post), 'class' => 'last-reply'));

to

array('data' => t('@time ago<br />by !author', array('@time' => format_interval(time() - $forum->last_post->timestamp), '!author' => theme('username', $forum->last_post))));

It works, but within of drupal I got a new error message:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'dark_forum_list' was given in /var/www/web37/html/includes/theme.inc on line 617.

Does I have replaced the line in a wrong way?

Thanks!

 
 

Drupal is a registered trademark of Dries Buytaert.