Adding last name to forum made simple

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Master User
Forum Members
Forum Members
Posts: 24
Joined: Sat Aug 15, 2009 11:32 pm

Adding last name to forum made simple

Post 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
stevew
Forum Members
Forum Members
Posts: 74
Joined: Wed May 21, 2008 7:02 am

Re: Adding last name to forum made simple

Post 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.
Master User
Forum Members
Forum Members
Posts: 24
Joined: Sat Aug 15, 2009 11:32 pm

Re: Adding last name to forum made simple

Post 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!
Master User
Forum Members
Forum Members
Posts: 24
Joined: Sat Aug 15, 2009 11:32 pm

Re: Adding last name to forum made simple

Post by Master User »

I'm still trying to solve this issue. Really appreciate some advice on this :D
stevew
Forum Members
Forum Members
Posts: 74
Joined: Wed May 21, 2008 7:02 am

Re: Adding last name to forum made simple

Post by stevew »

If you're using CustomContent, try {$ccuser->property('last_name')}
Master User
Forum Members
Forum Members
Posts: 24
Joined: Sat Aug 15, 2009 11:32 pm

Re: Adding last name to forum made simple

Post 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?
stevew
Forum Members
Forum Members
Posts: 74
Joined: Wed May 21, 2008 7:02 am

Re: Adding last name to forum made simple

Post by stevew »

It'll depend which template you're using it in and whre. Which one is it?
Master User
Forum Members
Forum Members
Posts: 24
Joined: Sat Aug 15, 2009 11:32 pm

Re: Adding last name to forum made simple

Post by Master User »

Thanks for you help.

It's in Forum Made Simple > Display Templates > Template: topic
stevew
Forum Members
Forum Members
Posts: 74
Joined: Wed May 21, 2008 7:02 am

Re: Adding last name to forum made simple

Post 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).
Master User
Forum Members
Forum Members
Posts: 24
Joined: Sat Aug 15, 2009 11:32 pm

Re: Adding last name to forum made simple

Post 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.
Sausageroll

Re: Adding last name to forum made simple

Post 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 O0
Post Reply

Return to “Modules/Add-Ons”