$my->username not working for Version 3.0.8

mibert

Member
Hi there,

I am using Fabrik 3.0.8 on a Joomla 2.5.11 platform.
I have one form, which elements is filled with system parameters, such as user ID and username.

In pervious version this was working with {$my->username} or {$my->id}, however since updating to 3.0.8, these fields are not filled anymore, which is a major problem for me. Until 3.0.7. is was no problem.

Is there any way to fix this issue.

Thanks in advance for your advise.

Best regards

Michael
 
Hi jfquestiaux,

thanks for your kind advise. Of course, that would be the easiest version and I just did not realize it.
Now it solved my problem instantly.

When I started to use Fabrik many years ago, this user function was not available.

Again, thanks for your promt, straight and helpful hint.

Best regards

Michael
 
Great if the user element is what you need.

But {$my->id} is doing fine on my 3.0.8 site, where did you use it?
 
Hi Troester,

I used it in some registration form within a regular fields default value and after the upgrade, it did not work any longer. Justb returned empty string.

Dont know why, but my problem is solved by the user function.

Best regards

Michael
 
I tested, and {$my->id} and {$my->username} work fine for me in 3.0.8. Make sure you do NOT check the 'eval' box, though.

As the others said, you can just use a 'user' element, or you could use an eval'ed default of:

PHP:
$my_user = JFactory::getUser();
return $my_user->get('username');

... or 'id' or 'email' or whatever you need.

-- hugh
 

Members online

No members online now.
Back
Top