×By using thePHPfactory.com you agree to our
use of cookies to enhance your browser experience.
currently I am trying to display my custom fileds to specific user group on t_myuserdetails.tpl
First I tried to create a module position for custom code module with the following code
{php}
echo JHtml::_('content.prepare', '{loadposition companydetail}');
{/php}
Module positon works well but there is a problem. The code that i want to use is .tpl file code. So custom code module does not work with it.
Than with .tpl file codes i have created a .tpl file and called it in to t_myuserdetails.tpl file for access group that i created.
{php}
$user =& JFactory::getUser();
if($user->get('business') == 1) : ?>
{include file='companydetail.tpl'}
{/php}
File including works well. Displaying all informations that I asked from it. But specific user group code does not work.
On some forums people offer to create a class for this but this is not what i want. Anybody can display that part with browser editor.
It is hard to work with smarty. Not much people know and hard to find answers.
I would be appreciated if you help me.
Regards
Okan