GBook HL modifications with extra functionality

Everything related to GBook PHP guestbook
Mac
Posts: 6
Joined: Mon Jul 31, 2006 6:36 pm

Post by Mac »

Hello Henrie,

All appears to be working ok now.

Many thanks.
MAC
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
Mac
Posts: 6
Joined: Mon Jul 31, 2006 6:36 pm

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

Post by Henrie »

No, at the moment it is not possible to show e-mail addresses only to the webmaster.

Greetings,
Henrie
jaap
Posts: 54
Joined: Sat May 06, 2006 1:54 pm

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

Post 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
jaap
Posts: 54
Joined: Sat May 06, 2006 1:54 pm

Post by jaap »

Ok, I uploaded the new smileys.php file but now I have
" Invalid attempt! " again ?

Jaap.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Jaap,

Thanks for reporting! I guess I can call you the official tester of the Gbook XHTML version :D.

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
jaap
Posts: 54
Joined: Sat May 06, 2006 1:54 pm

Post by jaap »

Henrie,

Ok, that's it ! Works fine now.
Sorry voor de vertraging maar XS4All lag er vanmorgen uit.

Jaap.
jaap
Posts: 54
Joined: Sat May 06, 2006 1:54 pm

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

Post 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
jaap
Posts: 54
Joined: Sat May 06, 2006 1:54 pm

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

Post 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
jaap
Posts: 54
Joined: Sat May 06, 2006 1:54 pm

Post by jaap »

Poe,lekker hoor.

Welke url ?

Jaap
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

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