Hello Hello Hello,
I have been sniffing around GBook 1.4 and I do like what has materialised.
One little point which i find frustrating is:
If you enter any data on the sign guestbook fields and try to add it with one of the required fields missing. You lose all previous input data.
Yep, it tells you that the unfilled textfield is needed (good), but when returning to the form all other data is missing.
This also does this with your very own phpjunkyard demo guestbook.
I was wondering if this was easy to remedy.
Maybe if I played around I could find it.
Any assistance most welcome.
P.s i.m still using 1.35, 1.4 is locally used at present
Missing Data
-
- Posts: 38
- Joined: Thu Jul 21, 2005 6:25 pm
Missing Data
FruitFully yours
http://www.fgps.com/keith/
http://www.fgps.com/keith/
Hi,
True, this is because sessions are now started on the "add entry" page and sessions clear browser cache (every time you open the signup page your browser refreshes it, that's why all the info is missing).
How about something like this:
http://www.phpjunkyard.com/extras/gbook141.zip
Haven't had the time to test it thoroughly yet, any comments/your testing welcome.
Regards
True, this is because sessions are now started on the "add entry" page and sessions clear browser cache (every time you open the signup page your browser refreshes it, that's why all the info is missing).
How about something like this:
http://www.phpjunkyard.com/extras/gbook141.zip
Haven't had the time to test it thoroughly yet, any comments/your testing welcome.
Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
How about now, the same file but updated:
http://www.phpjunkyard.com/extras/gbook141.zip
Should work even with Javascript disabled.
http://www.phpjunkyard.com/extras/gbook141.zip
Should work even with Javascript disabled.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
-
- Posts: 38
- Joined: Thu Jul 21, 2005 6:25 pm
Hi there,
Thanks for doing the things that you did.
Both beta versions (if you wish to call them that) worked and the comment from henry was true about the first version of the two links.
The javascript one seemd to iron out the email and url wrong inputs, but personally i blooming well dislike those annoying pop up javascript boxes, especially the sound (I know you can turn it off).
I have plumped for my own modified version of 1.4 ( which is now up and running). I basically removed sessions, due to the fact that i have a preview notes before submission area, where upon the sesions stopped you from doing it properly.
It still uses junkmark etc etc
I've also done some nice things with the reply to post function and the sign guestbook function.
CHEERS
Thanks for doing the things that you did.
Both beta versions (if you wish to call them that) worked and the comment from henry was true about the first version of the two links.
The javascript one seemd to iron out the email and url wrong inputs, but personally i blooming well dislike those annoying pop up javascript boxes, especially the sound (I know you can turn it off).
I have plumped for my own modified version of 1.4 ( which is now up and running). I basically removed sessions, due to the fact that i have a preview notes before submission area, where upon the sesions stopped you from doing it properly.
It still uses junkmark etc etc
I've also done some nice things with the reply to post function and the sign guestbook function.
CHEERS
FruitFully yours
http://www.fgps.com/keith/
http://www.fgps.com/keith/
I also dislike the javascript solution.
I liked the way it was done in version 1.35 .
Your first solution with the text displaying was better than the second with the popup but it also cleared the invalid e-mail and website, which it should not do.
The perfect solution for me would be the javascript check solution but not display the error with an alert box but with a text display like it is done in the first solution.
I hope you know a way to achieve this, or maybe I will think of a way to do it myself when I upgrade the xhtml version.
Greetings,
Henrie
I liked the way it was done in version 1.35 .
Your first solution with the text displaying was better than the second with the popup but it also cleared the invalid e-mail and website, which it should not do.
The perfect solution for me would be the javascript check solution but not display the error with an alert box but with a text display like it is done in the first solution.
I hope you know a way to achieve this, or maybe I will think of a way to do it myself when I upgrade the xhtml version.
Greetings,
Henrie
Hi,
Well, like said sessions start on the signup page now in 1.4 and to have it setup the way it was in 1.35 (with the "Go back" link) will erase all data now because session pages are not stored in browser cache. having sessions started on the signup page helps a great deal in preventing SPAM because of a simple trick (I don't want to discuss it here).
Since blocking spam is the n1 priority for majority of GBook users I spoke to we must find some new ways of displaying errors. What I have done now is updated the first solution a little, if an invalid URL/email is entered it will be deleted and an error will display:
http://www.phpjunkyard.com/extras/gbook141_rev3.zip
What would you like better - this one above or having the error displayed like in 1.35 and when clicking "Go back" link they would be taken to
gbook.php?a=sign&name=...&email=...&url=...
and having fields populated then from the query string?
In my opinion 141_rev3 is better than 1.35 way (plus the long query string) because it reduces the number of steps (they don't have to click any links to get back to the signup form).
Any thoughts/suggestions welcome.
Regards
Well, like said sessions start on the signup page now in 1.4 and to have it setup the way it was in 1.35 (with the "Go back" link) will erase all data now because session pages are not stored in browser cache. having sessions started on the signup page helps a great deal in preventing SPAM because of a simple trick (I don't want to discuss it here).
Since blocking spam is the n1 priority for majority of GBook users I spoke to we must find some new ways of displaying errors. What I have done now is updated the first solution a little, if an invalid URL/email is entered it will be deleted and an error will display:
http://www.phpjunkyard.com/extras/gbook141_rev3.zip
What would you like better - this one above or having the error displayed like in 1.35 and when clicking "Go back" link they would be taken to
gbook.php?a=sign&name=...&email=...&url=...
and having fields populated then from the query string?
In my opinion 141_rev3 is better than 1.35 way (plus the long query string) because it reduces the number of steps (they don't have to click any links to get back to the signup form).
Any thoughts/suggestions welcome.
Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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