Page 1 of 1

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

Posted: 25 Apr 2012, 20:33
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 :? )

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

Posted: 26 Apr 2012, 20:24
by Jan
Hi, the name should be pre-filled, you can customize it e.g. so the field will be hidden, etc. :idea:

Jan

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

Posted: 26 Apr 2012, 20:47
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.

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

Posted: 26 Apr 2012, 21:12
by Jan
So then this needs to be customized :-(

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

Posted: 28 Apr 2012, 11:10
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?

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

Posted: 30 Apr 2012, 16:57
by Jan
components/com_phocaguestbook/views/guestbook/tmpl/ ...

Jan

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

Posted: 08 Sep 2012, 06:30
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