English German

YELLABOOK

Guestbook PHP Script with spam protection for website


How can I change the date format?

It`s very easy! Just follow these steps.

1. Open the file guestbook.php with an editor (For example Notepad2).

Go to line 212
($template_entry->replace_marker("DATE", date("F j, Y", $entry['entry_date']));)

Replace "F j, Y" with your date format. (For example: "d.m.Y" is german)

Go to line 213
($template_entry->replace_marker("TIME", date("g:i a", $entry['entry_date']));)

Replace "g:i a" with your time format. (For example: "H:i" is german)

Go to line 229
($template_entry->replace_marker("COMMENT_DATE", date("F j, Y", $entry['comment_date']));)

Replace "F j, Y" with your date format. (For example: "d.m.Y" is german)

Go to line 230
($template_entry->replace_marker("COMMENT_TIME", date("g:i a", $entry['comment_date']));)

Replace "g:i a" with your time format. (For example: "H:i" is german)

Go to line 418
($template_entry->replace_marker("DATE", date("F j, Y", time()));)

Replace "F j, Y" with your date format. (For example: "d.m.Y" is german)

Go to line 419
($template_entry->replace_marker("TIME", date("g:i a", time()));)

Replace "g:i a" with your time format. (For example: "H:i" is german)


2. Open the file admin.php with an editor (For example Notepad2).

Go to line 423
($template_entry->replace_marker("DATE", date("F j, Y", $entry['entry_date']));)

Replace "F j, Y" with your date format. (For example: "d.m.Y" is german)

Go to line 424
($template_entry->replace_marker("TIME", date("g:i a", $entry['entry_date']));)

Replace "g:i a" with your time format. (For example: "H:i" is german)

Go to line 453
($template_entry->replace_marker("DATE", date("F j, Y", $entry['entry_date']));)

Replace "F j, Y" with your date format. (For example: "d.m.Y" is german)

Go to line 454
($template_entry->replace_marker("TIME", date("g:i a", $entry['entry_date']));)

Replace "g:i a" with your time format. (For example: "H:i" is german)

Go to line 486
($template_entry->replace_marker("COMMENT_DATE", date("F j, Y", $entry['comment_date']));)

Replace "F j, Y" with your date format. (For example: "d.m.Y" is german)

Go to line 487
($template_entry->replace_marker("COMMENT_TIME", date("g:i a", $entry['comment_date']));)

Replace "g:i a" with your time format. (For example: "H:i" is german)