how to add a field to Guestbook

Phoca Guestbook - creating guestbooks in Joomla! CMS
gregholl
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 27 May 2015, 00:01

how to add a field to Guestbook

Post by gregholl »

I would like to add the field: "Where are you from?"

Where/how do I do this?

If necessary, I'm NOT using the website address field. Perhaps I can easily just change the label on that one?

Thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how to add a field to Guestbook

Post by Jan »

Hi, there is no option to add new form field.

To change it from website form, you need to change the language string in ini file - instead of website to your name of the field and you need to change the check for this field (as now the url is controlled) :idea: But this needs to be customized in the code :idea:

Jan
If you find Phoca extensions useful, please support the project
Mahaan
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 01 Jun 2015, 09:40

Re: how to add a field to Guestbook

Post by Mahaan »

Hi Jan,

could you tell us in what file the code must be modified?


Regards,
Marcel
Seelentraum
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 02 Jun 2015, 21:04

Re: how to add a field to Guestbook

Post by Seelentraum »

Yes, this would be very interesting to me too! It would be very nice, if you'd explain that. Thanks a lot!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how to add a field to Guestbook

Post by Jan »

Hi, there is no one file to customize, all extensions are written under MVC, so whole mvc needs to be changed (view - the output, controller - to check the field and model to save the field and load the field) - the the database needs to be changed, etc. :idea:

Jan
If you find Phoca extensions useful, please support the project
Seelentraum
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 02 Jun 2015, 21:04

Re: how to add a field to Guestbook

Post by Seelentraum »

Aaah, I see! Something like that I have apprehended. But thank you anyway!

Well, for MY Problem I have found a workaround. I took the German language package and replaced the "subject" with "age" and "website" with "gender". For me it nearly works. The only thing I would like to change now, is the following: Because I changed the field "website", now it is a link. That link is going into the nothing. That is okay. But it would be nice, if I could delete the associated mark up. Maybe there is a way?

And I'm very sorry for my English! :)

Tanja
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how to add a field to Guestbook

Post by Jan »

Hi, what do you mean with "associated mark up"?

Jan
If you find Phoca extensions useful, please support the project
Seelentraum
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 02 Jun 2015, 21:04

Re: how to add a field to Guestbook

Post by Seelentraum »

Hey Jan,

I mean the HTML-markup for the link of the fiel "Website".

Tanja
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how to add a field to Guestbook

Post by Jan »

Hi, still not understand, can you paste a screenshot?
If you find Phoca extensions useful, please support the project
Post Reply