GBook HL modifications with extra functionality
Well Mac,
I did nothing to your problem as i could not find the cause.
The line it is reffering to is
The $settings['badwords' refers to the $settings['badwords'] = array ( which is the en.php (or nl.php depending on your language setting) that stores your badwords.
EDIT Aug 02, 2006: The following text does not produce the error mentioned, my error.
If you have a syntax error in that file (if one line is not like "BADWORD" => "REPLACEMENT",) you will get the error you got.
The only way i got this exact error (Warning: Invalid argument supplied for foreach() in URL\gbook.php on line 522.) if in the language file i changed a letter in the $settings['badwords'] part of the $settings['badwords'] = array ( line. So that the variable could not be found.
Greetings,
Henrie
I did nothing to your problem as i could not find the cause.
The line it is reffering to is
Code: Select all
foreach ($settings['badwords'] as $k => $v)
EDIT Aug 02, 2006: The following text does not produce the error mentioned, my error.
If you have a syntax error in that file (if one line is not like "BADWORD" => "REPLACEMENT",) you will get the error you got.
The only way i got this exact error (Warning: Invalid argument supplied for foreach() in URL\gbook.php on line 522.) if in the language file i changed a letter in the $settings['badwords'] part of the $settings['badwords'] = array ( line. So that the variable could not be found.
Greetings,
Henrie
Thanks Henrie,
I just edited settings.php and reinstalled the rest and it was ok.
Is there a way to make the email address visible to the webmaster and not to everybody who views the GB. It is good that people leave there email address so that I can reply to them, but it would be nice to protect them from the bots.
Thanks again to you and Klemen
Best regards
I just edited settings.php and reinstalled the rest and it was ok.
Is there a way to make the email address visible to the webmaster and not to everybody who views the GB. It is good that people leave there email address so that I can reply to them, but it would be nice to protect them from the bots.
Thanks again to you and Klemen
Best regards
MAC
Okay, you caught me. I made another mistake. When i put in the version info in the smileys.php (as a result of your previous message) file i accidently introduced two <?php starts.
You can delete <?php on line 6 of the smileys.php file or use the bugfixed smileys.php (bugfix date Aug 02, 2006) file in the updated zip file.
I have just done another silent upgrade of the zip file (still HL.06). The version information and download link has remained the same as in this post viewtopic.php?p=4052#4052.
Greetings,
Henrie
You can delete <?php on line 6 of the smileys.php file or use the bugfixed smileys.php (bugfix date Aug 02, 2006) file in the updated zip file.
I have just done another silent upgrade of the zip file (still HL.06). The version information and download link has remained the same as in this post viewtopic.php?p=4052#4052.
Greetings,
Henrie
Hello Jaap,
Thanks for reporting! I guess I can call you the official tester of the Gbook XHTML version
.
My mistake again. Haastige spoed is zelden goed! (in English something like 'Fast working is seldom good'? There probably is a better translation or suitable expression but I don't know it).
Because i have several copies of the files (one on my testserver, one on my computer (release versions) and the zip to upload) I sometimes select the wrong folder and mistakes are the result.
I updated the smileys.php file again (and tested it this time) and updated the zip file. I could not change the date as it is the same as earlier but you know you have the right file if line 8 is define('IN_SCRIPT',true); /*this is needed otherwise you get an error when you use require_once('settings.php') */. The absence of this line was causing the error.
You probably know it by now but here's the message (again):
I have just done another silent upgrade of the zip file (still HL.06). The version information and download link has remained the same as in this post viewtopic.php?p=4052#4052.
Greetings,
Henrie
Thanks for reporting! I guess I can call you the official tester of the Gbook XHTML version

My mistake again. Haastige spoed is zelden goed! (in English something like 'Fast working is seldom good'? There probably is a better translation or suitable expression but I don't know it).
Because i have several copies of the files (one on my testserver, one on my computer (release versions) and the zip to upload) I sometimes select the wrong folder and mistakes are the result.
I updated the smileys.php file again (and tested it this time) and updated the zip file. I could not change the date as it is the same as earlier but you know you have the right file if line 8 is define('IN_SCRIPT',true); /*this is needed otherwise you get an error when you use require_once('settings.php') */. The absence of this line was causing the error.
You probably know it by now but here's the message (again):
I have just done another silent upgrade of the zip file (still HL.06). The version information and download link has remained the same as in this post viewtopic.php?p=4052#4052.
Greetings,
Henrie
Hi Henrie,
It's a double post maybe but anyway.
Post 1 :
I tried the guestbook with the new [ Dutch ] Internet Explorer 7 but it's giving the error you cannot sign this time everytime.
Tried with Firefox : works fine.
I closed all IE sessions, emptied cache + cookies, no urls etc , just text.
Post 2 :
Just noticed that the securityimage is not showing in Internet Explorer 7.
It is in Firefox + Netcape.
Post 3 :
Strange, the guestbook opens in a frame, when I try to post I got the error.
When I go directly to the guestbook with IE 7 :
http://mysite.com/gbook/gbook.php or
http://mysite.com/gbook/gbook.php?a=sign
I can post.
Jaap.
It's a double post maybe but anyway.
Post 1 :
I tried the guestbook with the new [ Dutch ] Internet Explorer 7 but it's giving the error you cannot sign this time everytime.
Tried with Firefox : works fine.
I closed all IE sessions, emptied cache + cookies, no urls etc , just text.
Post 2 :
Just noticed that the securityimage is not showing in Internet Explorer 7.
It is in Firefox + Netcape.
Post 3 :
Strange, the guestbook opens in a frame, when I try to post I got the error.
When I go directly to the guestbook with IE 7 :
http://mysite.com/gbook/gbook.php or
http://mysite.com/gbook/gbook.php?a=sign
I can post.
Jaap.
Hello Jaap,
I have just finished testing (I should have waited then I would not have to do that as i just now read your post).
In my guestbook all works well either.
But when security level set to high instead of normal-high the popup window for inserting smileys stops working.
But installing Internet Explorer 7 was good because now i discovered a problem for a site i maintain for Scouting Volkel because the menu is javascript and stopped working in Internet Explorer 7 so I have another job to do
.
But I'm glad that Gbook still works.
Greetings,
Henrie
I have just finished testing (I should have waited then I would not have to do that as i just now read your post).
In my guestbook all works well either.
But when security level set to high instead of normal-high the popup window for inserting smileys stops working.
But installing Internet Explorer 7 was good because now i discovered a problem for a site i maintain for Scouting Volkel because the menu is javascript and stopped working in Internet Explorer 7 so I have another job to do

But I'm glad that Gbook still works.
Greetings,
Henrie
The url is http://users.scoutnet.nl/~donbosco/index2.htm
I think i have found the problem. The page navigation is very old, it has been the same since october 2000 and it uses a browsercheck. I think that the (antiquated) browsercheck is the problem.
I did not find a solution yet because i don't know how to change the browsercheck(s) correctly.
There's also the problem that the script is very hard to change because a lot of variables have to be changed manually at different places in the scripts when the menu is changed.
It was my first advanced menu I have constructed from several scripts I found. So that explains a little, I was glad I got it to work.
So here's a shameless request:
I need a new navigation menu (php or javascript).
It has to be a foldoutmenu at least one level deep and it must highlight the current page.
It also must support frames (but if it does not i can probably modify it) because the current site uses frames and at the moment i do not have the time to change the whole site to a frameless site.
If anyone knows such a menu please send me a private message (use pm button below) so this forum does not get cluttered with personal messages.
Greetings,
Henrie
I think i have found the problem. The page navigation is very old, it has been the same since october 2000 and it uses a browsercheck. I think that the (antiquated) browsercheck is the problem.
I did not find a solution yet because i don't know how to change the browsercheck(s) correctly.
There's also the problem that the script is very hard to change because a lot of variables have to be changed manually at different places in the scripts when the menu is changed.
It was my first advanced menu I have constructed from several scripts I found. So that explains a little, I was glad I got it to work.
So here's a shameless request:
I need a new navigation menu (php or javascript).
It has to be a foldoutmenu at least one level deep and it must highlight the current page.
It also must support frames (but if it does not i can probably modify it) because the current site uses frames and at the moment i do not have the time to change the whole site to a frameless site.
If anyone knows such a menu please send me a private message (use pm button below) so this forum does not get cluttered with personal messages.
Greetings,
Henrie