Hi dear developers AND Users ;-)

I previously used it one another guestbook,
when change to drupal it was necessary to change the Guestbook souce code.

I add some new function and change the admin widget

Added:

- store the user IP,
- add one plus function: realip from http://www.php.net/manual/en/reserved.variables.php#70640
- IP selectable (show/hidden) visibility in guestbook
- add to admin page the new permission -> show all/only admin

- user info in comment (email, home, date, ip) show with icon (picture)
- add to admin page the new widget (image/simple text)
- add to admin page the image path
- add to admin page the info style

I Changed:

- change the guestbook table, added the new field: cip4 (Client IP v4) type: varchar(15)
- modify ALL conjunct function, (store and require)
- change the admin comment, INPUTTEXT TO TEXTAREA. ATTENTION, NEED CHANGE the your style!
- Change the info (email, home, date, ip) sequence to home, email, time, ip. In this way,
not scrolling the item, if missing one value.

How to install:
Download the atached files.

First, add to guestbook database table the new field: cip4 type varchar, length: 15
cip4 varchar(15) character set utf8 NOT NULL

Modify the used theme, add the following lines:

.container-inline .form-item .resizable-textarea{
	display:block;
	padding-left: 25px;
	width:550px; 
}
 

If NOT add this, the SUBMIT button NOT visible, if edit/admin comment!!!
Copy the pictures to directory, where guestbook installed,
or make new directory where stored these files
Make backup your guestbook.module! (or rename to guestbook.module.orig)
Copy the modified guestbook.module where installed the guestbook, and update original module.

Go to admin page and set the new permission in guestbook module.

Use, and enjoy :-)))

DTB

CommentFileSizeAuthor
guestbook.module_0.txt34.07 KBDTB