Guestbook Version: 1.1.7

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
EwedaMaan
Forum Members
Forum Members
Posts: 14
Joined: Fri Aug 18, 2006 7:20 pm

Guestbook Version: 1.1.7

Post 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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: Guestbook Version: 1.1.7

Post 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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: Guestbook Version: 1.1.7

Post 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
EwedaMaan
Forum Members
Forum Members
Posts: 14
Joined: Fri Aug 18, 2006 7:20 pm

Re: Guestbook Version: 1.1.7

Post by EwedaMaan »

Thanks for that, I got the full IP now but where can I find this code
{if $show_msg}
{/if}

Thanks again
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: Guestbook Version: 1.1.7

Post 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
Post Reply

Return to “CMSMS Core”