I have just upgraded a fairly elderly site that used FEU and UserDirectory modules in tandem. On a user profile page, a UserDirectory detail template allowed a logged in user to view their profile details but rather than just dumping info to the page via the foreach I used this code:
Code: Select all
{capture assign="userid"}{$oneuser.id}{/capture}
{$feu_smarty->get_user_properties($userid,'userprops')}
Code: Select all
<td class="profile-detail-value">{$userprops.email_address}</td>
The changelog of FEU at version 1.29 states:
Code: Select all
{$feu_smarty->get_user_properties($uid,'props')} must now be called like: {$props=feu_smarty::get_user_properties($uid)}
Code: Select all
{capture assign="userid"}{$oneuser.id}{/capture}
{$userprops=feu_smarty::get_user_properties($userid)}
Have I made a mistake in rewriting this code or do FEU properties no longer work the same way in UserDirectory?
The Apache error logs were spectacularly unhelpful and I have not come across another query of this nature on the forums.
My relevant system data is:
CMS Version 1.12 / CGExtensions 1.50 / CGSimpleSmarty 1.9.1 / FrontEndUsers 1.30.6 / CGUserDirectory 1.5
Current PHP Version (phpversion) 5.5.9-1ubuntu4.14
Thanks in advance.