Page 1 of 1

[Solved]I can't see the user name

Posted: 28 Nov 2008, 10:44
by gnostris
Hi, my name is Daniel. I have installed phoca guest book and I have a problem.

Is there any way of show de user name in message boxes when the parameter 'Display Input field Name in Guestbook Form' is set to 'no' ?????

If this is too difficult, Is there any way to set the form field 'name' to 'read only'. I don't want that the users can modify it.

Thanks in advance.
Regards
Daniel.

Re: I can't see the user name

Posted: 28 Nov 2008, 16:57
by Jan
Hi, you can change it here:

components\com_phocaguestbook\views\phocaguestbook\tmpl\default.php

line 247 +

Jan

Re: I can't see the user name

Posted: 28 Nov 2008, 20:08
by gnostris
Done!!!


THANKS A LOT!!!

Re: [Solved]I can't see the user name

Posted: 02 Dec 2008, 14:48
by Jan
great to hear it, Jan

Re: [Solved]I can't see the user name

Posted: 13 Jun 2009, 23:39
by iamalive
Hi, you can change it here:

components\com_phocaguestbook\views\phocaguestbook\tmpl\default.php

line 247 +

Jan
Hi Jan
I'm (mis)using this component to obtain feedback on our website. For that purpose we need to know who has written the comment and have their contact info, so we can do a follow up. So, having read this post, above, I see the lines, but I have no idea what to do.
I need the same thing: the field filled with the username and also the email address, so that users cannot change it. What do I have to do to make this happen?

One solution is to use the same feedback form you have here. The reason I'm sticking with the PhocaGuestbook, is that it works well with Joomfish and as a multilingual site, we get the comments translated, so we have a common language for all feedback.

Thanks for your help.

Regards
David

Re: [Solved]I can't see the user name

Posted: 18 Jun 2009, 18:33
by Jan
Hi, as gnostris didn't write the guide how he did it, I don't know what should be changed there, because I didn't do such changes as gnostris made in the code.

Maybe try to PM him so you get some information from him.

Jan

Re: [Solved]I can't see the user name

Posted: 13 Jul 2009, 06:28
by teki
Hey,

This was a strange answer, all you need to add is a

Code: Select all

readonly="readonly"
so it will look like:

Code: Select all

<input type="text" readonly="readonly" name="pgusername" id="pgbusername"....
I would also suggest to add a background color to it so it will have the "Locked look"
after style add a background color like this:

Code: Select all

style="border:1px solid #cccccc; background-color:#D3F0D2"

Re: [Solved]I can't see the user name

Posted: 13 Jul 2009, 08:25
by iamalive
Great!
Thanks very much for the input. Works perfectly!
Regards
David

Re: [Solved]I can't see the user name

Posted: 14 Jul 2009, 14:22
by Jan
teki

Ok, thank you for the guide.

Jan