Hide "Name"-field in form but show username in entry

Phoca Guestbook - creating guestbooks in Joomla! CMS
Lintlo
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 25 Apr 2012, 20:23

Hide "Name"-field in form but show username in entry

Post by Lintlo »

Hey guys,
only registered users are allowed to write items to my guestbook, so this is why I want to hide the field "name" in the form.
But if I do that, the name is not shown in the guestbook entry as well. I wanna show the username there. The option "Show name in entry" is set "yes". This might be possible, because they have to register and login first, so the guestbook normally "knows" who wrote the item. Can someone tell me how to do that?
(sorry for my english :? )
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide "Name"-field in form but show username in entry

Post by Jan »

Hi, the name should be pre-filled, you can customize it e.g. so the field will be hidden, etc. :idea:

Jan
If you find Phoca extensions useful, please support the project
Lintlo
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 25 Apr 2012, 20:23

Re: Hide "Name"-field in form but show username in entry

Post by Lintlo »

Yes, it is pre-filled. But I don't want the users to be able to change their name. I want to hide it in the form, but show the username automatically in the item.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide "Name"-field in form but show username in entry

Post by Jan »

So then this needs to be customized :-(
If you find Phoca extensions useful, please support the project
Lintlo
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 25 Apr 2012, 20:23

Re: Hide "Name"-field in form but show username in entry

Post by Lintlo »

yes, but how? I'm not good in PHP. Can you tell me in what file I have to change s.th.? And what do I have to change?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide "Name"-field in form but show username in entry

Post by Jan »

components/com_phocaguestbook/views/guestbook/tmpl/ ...

Jan
If you find Phoca extensions useful, please support the project
mm_dancer
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 08 Sep 2012, 06:27

Re: Hide "Name"-field in form but show username in entry

Post by mm_dancer »

I would like to do this same thing. What do I need to change in the file to make this happen?

Thanks so much, hoping to get my guestbook up and running very soon
Post Reply