If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
How do you add new fields to advanced guestbook?  XML
Forum Index » Support Forum
Author Message
NovicePHP
Newbie

Joined: 11/09/2003 19:40:25
Messages: 1
Offline



Firstly, it was the happiest day of my life when I dropped upon Advanced Guestbook! Such an excellent piece of work and for free. Got to be worth $100 of anyone's money!

I would like to add a new field to cature some extra data but I am such a complete novice at PHP that I have had no luck and now have run out of ideas.

Anyone know which files to edit and what the code to insert would be for say "newfield" to be included as a new field?

Many thanks for anyone's help.
oavs
Beginner

Joined: 12/09/2003 05:43:48
Messages: 9
Offline

I like to know as well. Whichtemplate needs to be edited to include additional fields?
Anonymous



It can be done. It is a lot of work though, and it is not as easy as you might think. It involves modifing almost every php file and adding new tables to the database.

once you figure the jist of that out, then it is not a problem. I have added a custom field, plus the yahoo and msn mods, and also the anti-spam mods as well as the human verification mod.

I also changed all the post methods in the addentry.php file because of remote spammers, but that was before I put the human verification mod in place

also lastly, I don't use the templates that come with advanced GB. they don't allow for parsing anything...so I just added my includes and template straight into the main files..

you can see my custom fields here



http://www.avianosaints.com/guests_and_friends/addentry.php
oavs
Beginner

Joined: 12/09/2003 05:43:48
Messages: 9
Offline

Looks great. I love the Human Verification system you have.
Any chance of the code ?

Have a look at mine I have also added some fields

http://www.oavs.com.au/guestbook/addentry.php

In the view I also implimented all the added fields. Check things like 'profession and country'
http://www.oavs.com.au/guestbook/index.php
Anonymous



I'm totally new to php and only familiar with html code, but have gotten past the basics. I used the advanced guestbook script but want to edit some of the wording at the header. I noticed some of you have done that but I cant seem to find the html files that include this messaging. Ive seen the added fields...nice...but have a hard time figuring out what you did! Also, I noticed the pull-down menu when viewing posted messages. Mine only shows guestbook...how do you add other selections? I'd like to be able to add the main page. I'm pretty resourceful...but i could use some help. Anyone?
oavs
Beginner

Joined: 12/09/2003 05:43:48
Messages: 9
Offline

As regards to adding other sections - you don't.
Guset book adds when it reaches 10 + messages

and changing wording etc. you really need to go every file in templates and the root dir of the guest file to see which files and what word you need to change.

It is a start anyway. :lol:
Anonymous



berry punny!

It's a start... but this forum has helped tremendously! I've found the messages...with that and figuring out which gifs are displayed...i can find the exact php file that i can edit and make changes to.

Thanks for the advise!
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum