[Solved]I can't see the user name

Phoca Guestbook - creating guestbooks in Joomla! CMS
gnostris
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 27 Nov 2008, 15:46

[Solved]I can't see the user name

Post 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.
Last edited by gnostris on 30 Nov 2008, 10:55, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48706
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: I can't see the user name

Post by Jan »

Hi, you can change it here:

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

line 247 +

Jan
If you find Phoca extensions useful, please support the project
gnostris
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 27 Nov 2008, 15:46

Re: I can't see the user name

Post by gnostris »

Done!!!


THANKS A LOT!!!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48706
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

great to hear it, Jan
If you find Phoca extensions useful, please support the project
iamalive
Phoca Enthusiast
Phoca Enthusiast
Posts: 55
Joined: 07 Dec 2007, 15:52
Contact:

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

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48706
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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
If you find Phoca extensions useful, please support the project
teki
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 13 Jul 2009, 06:11

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

Post 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"
iamalive
Phoca Enthusiast
Phoca Enthusiast
Posts: 55
Joined: 07 Dec 2007, 15:52
Contact:

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

Post by iamalive »

Great!
Thanks very much for the input. Works perfectly!
Regards
David
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48706
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

teki

Ok, thank you for the guide.

Jan
If you find Phoca extensions useful, please support the project
Post Reply