Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#2 | page.tpl.php.patch | 3.4 KB | Pancho |
Comments
Comment #1
ajwwong CreditAttribution: ajwwong commentedAdditionally, 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
Comment #2
PanchoThe '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