[Solved] Do FEU user props still work in CGUserDirectory?
Posted: Wed Jan 13, 2016 4:27 pm
Hi all,
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:
to pipe specific FEU user properties into a table like this:
After I updated the two modules and all the other main modules like CGExtension/SimpleSmarty etc. the profile page showed a blank.
The changelog of FEU at version 1.29 states:
But when I rewrote my own code to
it borked the page again and it's only when this piece of code is in the template that the problem occurs.
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.
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.