In the 4.7beta4 series, the function

format_name(...) must be converted to

theme('username', ...)

So, in the

node.tpl.php

file of friendselectric theme, on line 14, you should make the following change:

Change the line:

print format_name($node) . ' – ' . str_replace('-', ' – ', format_date($node->created))

into:

print theme('username', $node) . ' – ' . str_replace('-', ' – ', format_date($node->created))

Failure to do so will yield a "Call to undefined function" error when FriendsElectric is used with 4.7b4

Good luck to everyone!!

Albert
www.ithou.org

CommentFileSizeAuthor
#2 page.tpl.php.patch3.4 KBPancho
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ajwwong’s picture

Additionally, you will need to modify line 39 of the node-forum.tpl.php file and change it from:

<div class="author-signature">--<br /><?php print check_output($sig); ?></div>

into

<div class="author-signature">--<br /><?php print check_markup($sig, $format= FILTER_FORMAT_DEFAULT, FALSE); ?></div>

This is because check_output is no longer supported in 4.7

Hope this helps someone trying to use FriendsElectric with 4.7!

www.ithou.org

Pancho’s picture

Priority: Normal » Critical
Status: Active » Needs review
FileSize
3.4 KB

The 'format_name' change has been committed to CVS months ago. But the other issues for 4.7beta4 compatibility are not (such as the search form issue on http://drupal.org/node/46733).

Therefore, I created a patch for page.tpl.php with the following changes:

- corrected search form (using $search_box)
- corrected logo and site name (base path, t functions)
- some minor efficiency improvements

One day friendselectric should be rewritten from the scratch because the implementation is not really clean. But for now this should be okay!

Pancho