Add Custom Fields

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Xprsso
Posts: 2
Joined: Wed Apr 04, 2007 9:34 am

Add Custom Fields

Post by Xprsso »

Script URL:
Version of script:1.5
Hosting company:Dreamhost
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hi, how can i add in custom fields, keeping in mind that im a complete noob, but i do understand how it all works.

I have added in a field for ponds per mile (im going to use it as a sponsorship form instead of a guestbook, and have added the field with a unique identifier but when the form is submitted its returns the value of the email address instead, anyone any ideas, thanks...
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Adding new fields is not advised. It will make the guestbook incompatible with future upgrades.

It needs a lot of editing for which i just don't have the time to explain.

Greetings,
Henrie
Xprsso
Posts: 2
Joined: Wed Apr 04, 2007 9:34 am

Post by Xprsso »

really?, i thought it would have been relatively simple to add a new one, obviously not, i kinda of cheated a bit and just changed the name of the from to what i needed.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

As you noticed it is not just changing a variable at one place.
I just did a quick count and the from field is in about 20 places in the gbook.php file. Adding a new field therefore would need changing at least 20 lines.

It is not very hard to do, it just takes to much time for me right now to explain where you need to change everyting.

Greetings,
Henrie
Nightwing308
Posts: 4
Joined: Sat Dec 05, 2009 11:33 pm

Post by Nightwing308 »

Henrie wrote:Adding new fields is not advised. It will make the guestbook incompatible with future upgrades.

It needs a lot of editing for which i just don't have the time to explain.

Greetings,
Henrie
Okay, if "adding new fields" is not advised, would there at least be a way to change the Website field where it allows a simple text input, rather than a URL?
I've modified this Guestbook here http://www.elliottespetspa.com/EPSGuestbook/gbook.php
into a "Testimonials" page, but most anyone who will leave a comment won't have a website. I would therefore like to change the Website input field to "Pet's Name", where visitors can just type in the name of the animal they had brought to the Spa.
Any hints on how this could be accomplished would be greatly appreciated (unless it also involves editing at least 20 lines of code :wink: )
Post Reply