Hi Dimas,
This doesn't work!
Plus the php file is the wrong one.
Finally with a lot of trial and error, going through any file that looked like it might be the one, I finally cracked it.
The actual php file to use is 'events.viewguest.php' and the code snippet I finally got to work is:
<?php $data = $guest->name;
echo $data; ?>
What I don't understand is, I also got it to work in the listing for members of a group using the php file 'groups.viewmembers.php',
but for it to work the same I had to use a different snipett of code:
<?php $user = CFactory::getUser($member->id);
echo $user->name; ?>
So for all 4 areas I wanted this to show the users name and their username I have had to use 4 different snippets of code!
Just seems very strange that one piece of code can not be used in all 4 instances.
Anyways it all seems to be working fine now,
Thanks