Gbook 1.4 versus GBook 1.35 xhtml 1.1. modified by Henrie

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
harrie55
Posts: 8
Joined: Sat Mar 11, 2006 9:50 am

Gbook 1.4 versus GBook 1.35 xhtml 1.1. modified by Henrie

Post 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
Last edited by harrie55 on Mon May 29, 2006 6:53 am, edited 1 time in total.
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post 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,
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
harrie55
Posts: 8
Joined: Sat Mar 11, 2006 9:50 am

new XHTML

Post by harrie55 »

when can we expect the new XHTML version.?
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
harrie55
Posts: 8
Joined: Sat Mar 11, 2006 9:50 am

no hurry

Post 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
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

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