Thank you Klas for your reply. I just bought the code pack and tested it.
When you say to use a TAG as #display_username# in my text, do you mean that I have to use the fieldname between # or am I mistake ?
What I did :
1) Created a new field in my content type called Display Username (display_username), filled it with my php code
$user = JFactory::getUser();
if (!$user->guest)
{
echo $user->username . ", ";
}
else
{
echo "Hey !"; (witch works outside Seblod)
I tried it with and without <php> tags.
2) In my content, I added #display_username#
3) When I try to display the content, it gives me #display_username# and not the username.
What did I wrong Klas ?
Thank you