Page 1 of 1

Gbook 1.4 versus GBook 1.35 xhtml 1.1. modified by Henrie

Posted: Wed May 24, 2006 10:44 am
by harrie55
Script URL: www.wodanseck.net
Version of script: GBook 1.35 xhtml 1.1
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try:

Write your message below:

Is it necesarry to upgrade to GBook 1.4. Are there essential improvements in GBook 1.4

Posted: Wed May 24, 2006 3:52 pm
by Klemen
Yes, there are quote some new things, I think Henrie will have the new XHTML version ready as soon as I release 1.41 which should be by the end of this week.

Posted: Wed May 24, 2006 5:16 pm
by Henrie
Well, the xhtml version will not be ready before june 6 because i am busy with other things untill then. But it will not be to long after that.

Bytheway.
Does anybody know how to convert my old guestbook entries.txt file, because in the xhtml version there now already is an IP field but the new reply field in version 1.4 comes before that so i have to find a way to insert the reply field in my old guestbook before the ip field.
I guess i have to read the old entries.txt file with php and write the entries to a new file with the extra reply field but i don't exactly know how to do it and i could not find a similar script on the internet that i could modify.

Greetings,
Henrie

Posted: Wed May 24, 2006 9:03 pm
by Klemen
Henrie, can you give an example of how actually an old entries.txt file looked in xhtml version? Just post a line or two and I will write you something.

Posted: Wed May 24, 2006 9:26 pm
by Klemen
If I understood you correctly Henrie, this should do the job (BACKUP before testing!):
http://www.phpjunkyard.com/extras/upgrade_entries.zip

The file above is NOT INTENDED FOR GENERAL USE yet, it's to make Henrie's work easier :wink:

Regards,

Posted: Thu May 25, 2006 6:24 am
by Henrie
Thanks Klemen,

I don't have time to look at it now because i'm leaving in 30 minutes for a few days of fun and i still have to pack my bags but i will look at it after the weekend.

Greetings,
Henrie

Posted: Sun May 28, 2006 6:32 pm
by Henrie
Hello Klemen,

I think something is wrong in the script because i get an entries.txt with only the following in it:

Code: Select all

Array
I don't have time to look at what is wrong but i will do so later this evening.
At least i now have a something i can use as a hint to what i must do.

Greetings,
Henrie

By the way a the xhtml 1.35 entries.txt now is:

Code: Select all

Henrie	Netherlands	henrie@home.nl	http://mysite.home.nl	This is jus a sample message	May 28, 2006		192.168.2.100
My Name	My Place	myemail5@mysite.com	http://users.scoutnet.nl/~mysite	And this is my private message	May 27, 2006	Y	192.168.2.11

Posted: Mon May 29, 2006 2:06 pm
by Klemen
Hi,

My mistake, change lin 29 from

Code: Select all

fputs($fp,$lines);
to

Code: Select all

fputs($fp,$newlines);
and let me know if that works ok.

Regards

Posted: Mon May 29, 2006 5:32 pm
by Henrie
Hello Klemen,

Thanks for looking at the code again.
When i changed the code at first it did not work.
I looked at the code and played with it (and looked at www.php.net) to better understand it.
When i also changed line 21

Code: Select all

$info=explode($delimiter,$lines[$i]);
to

Code: Select all

$info=explode($delimiter,$myline);
it worked.

Thank you for helping me with this.

Greetings,
Henrie

new XHTML

Posted: Wed Jul 12, 2006 10:05 am
by harrie55
when can we expect the new XHTML version.?

Posted: Wed Jul 12, 2006 10:47 am
by Henrie
Hello Harrie,

The Xhtml 1.41 version is working for me personally (see http://www.volkelloopt.nl and then choose Gastenboek in the menu).
But it is heavy modified. I have to make it looking like the standard guestbook and check every page to be sure it validates before i publish it here.
I am very busy right now with other things but i will start modifying it after july 24 and i hope to publish it before july 31.

Greetings,
Henrie

no hurry

Posted: Wed Jul 12, 2006 7:41 pm
by harrie55
I'm in no hurry, the other version is working fine for me. I was curious if you already started or maybe had troubles with the new version. Enjoy your hollidays, the weather is to good to sit inside behind a PC.
greets Harrie

Posted: Fri Jul 28, 2006 9:11 pm
by Henrie
I just released the new XHTML version of GBook (mod HL.05). It is based on GBook version 1.43.
For more information see the post viewtopic.php?p=4038#4038 in the GBook add-ons forum.

Greetings,
Henrie