Page 1 of 1
Adding last name to forum made simple
Posted: Sun Jul 03, 2011 9:26 am
by Master User
Hello all!
Just wondering if anyone can tell me how to add the last name property (last_name) that I've added to FEU so that it shows in the forum? I want to add this to Forum Made Simple template so I can have members last name show in the forum. I've tried searching the forums to no avail.
CMS Version1.9.4.2
FrontEndUsers 1.12.16
Forum 0.9.4
Re: Adding last name to forum made simple
Posted: Sun Jul 03, 2011 3:10 pm
by stevew
Not clear what you want to do, but assuming the user is logged in, put {$last_name} in a page and you should see the user's last name.
Re: Adding last name to forum made simple
Posted: Sun Jul 03, 2011 9:09 pm
by Master User
stevew wrote:Not clear what you want to do, but assuming the user is logged in, put {$last_name} in a page and you should see the user's last name.
I tried {$last_name} in the forum template but it didn't work
Is there a specific tag to call it from FEU? I've got this tag for the first name {$entry->poster_user_name } which works so I was hoping to have it like this {$entry->poster_user_name } {$last_name} eg. Joe Dirt
Any help with this would be appreciated!
Re: Adding last name to forum made simple
Posted: Tue Jul 05, 2011 8:17 am
by Master User
I'm still trying to solve this issue. Really appreciate some advice on this

Re: Adding last name to forum made simple
Posted: Tue Jul 05, 2011 9:46 am
by stevew
If you're using CustomContent, try {$ccuser->property('last_name')}
Re: Adding last name to forum made simple
Posted: Tue Jul 05, 2011 9:58 am
by Master User
Thanks for the reply! I tried this but it adds my last name to everyone's last name eg. (If my last name was smith)
1st post Joe Smith
-----
2nd post Mary Smith
I feel we are close! Any more ideas?
Re: Adding last name to forum made simple
Posted: Tue Jul 05, 2011 10:34 am
by stevew
It'll depend which template you're using it in and whre. Which one is it?
Re: Adding last name to forum made simple
Posted: Tue Jul 05, 2011 11:11 am
by Master User
Thanks for you help.
It's in Forum Made Simple > Display Templates > Template: topic
Re: Adding last name to forum made simple
Posted: Tue Jul 05, 2011 11:36 am
by stevew
Hi, I'm sorry, I've been misunderstanding your intention.
To get the properties of each poster, you'd need to edit the module files in some way. In the forum settings you can choose one FEU property to display (you've chosen first_name), but to change that you'd need to change the module (unless you changed your FEU properties so that you had a "full name" property, with both first and last name).
Re: Adding last name to forum made simple
Posted: Tue Jul 05, 2011 8:18 pm
by Master User
So not as easy as adding a simple tag, great.. Thanks for your help.
If anyone knows how to do this I'll be happy to compensate for their time.
Re: Adding last name to forum made simple
Posted: Wed Jul 06, 2011 1:19 am
by Sausageroll
Can you not use "User Defined Tags" and manually pull the data you need from the database?
See here:
Display-Authors-full-name-in-CGBlog-instead-of-Username
This is for CGBlog, not got around to trying the forum yet but I would assume it works.
Just change this bit:
{authorname username=$entry->author}
So it says something like:
{authorname username=$entry->author feufield=last_name}
You put that where you want the last name to appear obviously
