Page 1 of 1

Guestbook Version: 1.1.7

Posted: Wed Jan 17, 2007 11:10 pm
by EwedaMaan
Hi all
I am trying to set up the Guestbook, but when I submitt a message the full IP address does not come thorugh to the management interface, is there somewhere that this can be edited.

Also I want to change it so that when someone goes to submit a message their IP appears on the screen so that they know that their IP is recorded.

Can someone help pls

Thanks in advance.

Eweda Maan

Re: Guestbook Version: 1.1.7

Posted: Thu Jan 18, 2007 11:03 am
by Dee
Oops :-[, I defined the field for ip_address to length 11 (should be 15).
Change the database field cms_module_guestbook.ip_address to varchar(15).

I'll take a look at showing the IP after submit later today (after work & dinner).

Regards,
D

Re: Guestbook Version: 1.1.7

Posted: Fri Jan 19, 2007 9:12 am
by Dee
To show the IP address after submit in the Guestbook Template in the section

Code: Select all

{if $show_msg}
{/if}
you can use

Code: Select all

{$smarty.server.REMOTE_ADDR}
Regards,
D

Re: Guestbook Version: 1.1.7

Posted: Fri Jan 19, 2007 5:17 pm
by EwedaMaan
Thanks for that, I got the full IP now but where can I find this code
{if $show_msg}
{/if}

Thanks again

Re: Guestbook Version: 1.1.7

Posted: Fri Jan 19, 2007 9:01 pm
by Dee
EwedaMaan wrote: Thanks for that, I got the full IP now but where can I find this code
{if $show_msg}
{/if}
Go to the Guestbook admin and click the "Guestbook Template" tab.

Regards,
D