Adding last name to forum made simple
-
- Forum Members
- Posts: 24
- Joined: Sat Aug 15, 2009 11:32 pm
Adding last name to forum made simple
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
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
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.
-
- Forum Members
- Posts: 24
- Joined: Sat Aug 15, 2009 11:32 pm
Re: Adding last name to forum made simple
I tried {$last_name} in the forum template but it didn't workstevew 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.

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!
-
- Forum Members
- Posts: 24
- Joined: Sat Aug 15, 2009 11:32 pm
Re: Adding last name to forum made simple
I'm still trying to solve this issue. Really appreciate some advice on this 

Re: Adding last name to forum made simple
If you're using CustomContent, try {$ccuser->property('last_name')}
-
- Forum Members
- Posts: 24
- Joined: Sat Aug 15, 2009 11:32 pm
Re: Adding last name to forum made simple
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?
1st post Joe Smith
-----
2nd post Mary Smith
I feel we are close! Any more ideas?
Re: Adding last name to forum made simple
It'll depend which template you're using it in and whre. Which one is it?
-
- Forum Members
- Posts: 24
- Joined: Sat Aug 15, 2009 11:32 pm
Re: Adding last name to forum made simple
Thanks for you help.
It's in Forum Made Simple > Display Templates > Template: topic
It's in Forum Made Simple > Display Templates > Template: topic
Re: Adding last name to forum made simple
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).
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).
-
- Forum Members
- Posts: 24
- Joined: Sat Aug 15, 2009 11:32 pm
Re: Adding last name to forum made simple
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.
If anyone knows how to do this I'll be happy to compensate for their time.
Re: Adding last name to forum made simple
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
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
