Page 2 of 4
Posted: Tue Aug 01, 2006 8:53 am
by Mac
Hello Henrie,
All appears to be working ok now.
Many thanks.
Posted: Tue Aug 01, 2006 3:32 pm
by Henrie
Well Mac,
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)
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
Posted: Wed Aug 02, 2006 10:51 am
by Mac
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
Posted: Wed Aug 02, 2006 12:24 pm
by Henrie
No, at the moment it is not possible to show e-mail addresses only to the webmaster.
Greetings,
Henrie
Posted: Wed Aug 02, 2006 3:48 pm
by jaap
Henrie,
I replaced the " smileys.php " with the new one but now I get the error in the popup :
Parse error: parse error, unexpected '<' in /-- URL --/gbook143-test/smileys.php on line 6
Jaap.
Posted: Wed Aug 02, 2006 6:00 pm
by Henrie
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
Posted: Wed Aug 02, 2006 8:07 pm
by jaap
Ok, I uploaded the new smileys.php file but now I have
" Invalid attempt! " again ?
Jaap.
Posted: Wed Aug 02, 2006 9:49 pm
by 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
Posted: Thu Aug 03, 2006 3:29 pm
by jaap
Henrie,
Ok, that's it ! Works fine now.
Sorry voor de vertraging maar XS4All lag er vanmorgen uit.
Jaap.
Posted: Thu Nov 16, 2006 9:17 am
by jaap
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.
Posted: Thu Nov 16, 2006 11:46 am
by Henrie
Hello Jaap,
Sorry to hear it does not work.
I have not upgraded my Internet Explorer yet (still using version 6) but I will do it as soon as i have time (probably tomorrow or coming weekend).
Once I have upgraded I will test and modify the gbook xhtml version if needed.
Greetings,
Henrie
Posted: Thu Nov 16, 2006 6:45 pm
by jaap
Hallo Henrie,
I did a reinstall of the guestbook and quess what ?
Everything works perfect again, no errors anymore and
also the security image displays fine now.
Have no idea what happened ????
If it happens again I let you know.
Bedankt,
Jaap.
Posted: Thu Nov 16, 2006 6:50 pm
by Henrie
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
Posted: Thu Nov 16, 2006 6:56 pm
by jaap
Poe,lekker hoor.
Welke url ?
Jaap
Posted: Fri Nov 17, 2006 12:18 am
by 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