Guestbook in Hungarian

More
10 years 11 months ago #13502 by Boby
Replied by Boby on topic Guestbook in Hungarian
Szia!
Szeretném a weboldalamon használni a vendégkönyvet (mivel ami most van nincs benne Chapta, ebből kifolyólag rengeteg spam-et kapok) minden OK, de ha tuddnál abban segíteni, hogy a bejegyzésnél dátumot hogyan tudnám magyar formátumba rakni?

Köszi, Boby
borospal.hu

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #13503 by Boby
Hi!
Please Help Me!
I want to use your guestbook on my site from Hungary. I have a problem:
Now the date of the message form is: Day/Month/Year/Time/(a.m/p.m.)
I would like this form on my site: Year/Month/Day/Time(The time form is 24 hours, my time zone is +1)
for example: 2013.10.12. 17.24.szombat(Szomabat=Saturday)

Please help me how can I to do this on my site!

Thx!
Boby

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #13507 by igorlaszlo
Replied by igorlaszlo on topic Guestbook in Hungarian
Hello Boby,

i answer in English that everyone can read it...

For the date format, open add.php and find this line :
Code:
// Re-assigning the variables passed by posted form --------------------- $yourname = $_POST['yourname']; $youremail = $_POST['youremail']; $yourcountry = $_POST['yourcountry']; $yourwebsite = $_POST['yourwebsite']; $yourmessage = $_POST['yourmessage']; $date = date("D m/j/y g:iA");

If you want a date like 2013-10-24 17.24, Szombat, you must change above code as follows :
Code:
$date = date("Y M d H:i, l");

Useful page about date format here : php.net/manual/en/function.date.php

There is one question remained :
- how can we change the language of the date to Hungarian (Saturday -> Szombat)...

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #13508 by igorlaszlo
Replied by igorlaszlo on topic Guestbook in Hungarian
Sorry, it did not change my date in the message headers, i go further to look for the right place...

And the GMT is also a remained question...

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #13509 by igorlaszlo
Replied by igorlaszlo on topic Guestbook in Hungarian
Oh, yes, it works ! But only with the new messages... i guess you can change the date of the existing messages also, in the list.txt in the data folder but i prefer not to touch it until Pete confirms that it is possible and we do not lose the old messages with editing the text file...

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #13510 by igorlaszlo
Replied by igorlaszlo on topic Guestbook in Hungarian
So Pete, just to summerize :

- how can we integrate GMT+1 in the code ?
- how can we change the language for the day (ie. Friday = Péntek) to Hungarian ?
- how to change the charset to UTF-8 to show the special characters like "é" ?

I thought i am ready with my website, i always find things :woohoo:

Please Log in or Create an account to join the conversation.

Time to create page: 0.126 seconds
Powered by Kunena Forum