Script URL: http://www.frankma.nl/test/gasten/gbook.php
Version of script: 143
Version of PHP: high enough (gd_test.php works well, but I don't know my PHP-version))
Hosting company: Hosting2GO
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try: securitynumber; security number
Write your message below:
When I installed GBook all worked as meant.
Then I put the whole code of gbook.php into my Dreamweaver-template. I stored that as gbook.php (so the original file was replaced). The guestbook appears nicely within the template, but when I want to add a post, the security number doesn't appear. In stead of it I see the alt-description "Security number".
The only thing else I changed in the original gbook is the style.css, where I changed the color of the fonts to white.
You may see a working guestbook in http://www.frankma.nl/test/gastenok/
securitynumber disappears when applying Dreamweavertemplate
Hello Frankma,
The test version seems to work so i guess it's a problem with dreamweaver and the generation of the security image.
Maybe you could just use the security image displayed as text.
You can do this by changing in the settings.php file to
I hope this helps a little.
Greetings,
Henrie
The test version seems to work so i guess it's a problem with dreamweaver and the generation of the security image.
Maybe you could just use the security image displayed as text.
You can do this by changing in the settings.php file
Code: Select all
$settings['autosubmit']=1;
Code: Select all
$settings['autosubmit']=2;
Greetings,
Henrie
Hoi Henrie,
I tried that before, but then I get an error, telling me I write down a wrong securitynumber. I tried it again just now, but still the same. So, that gives me no solution.
The situation in my .../test/gasten-folder is the same again as when I started: $settings['autosubmit']=1 and the generated image doesn't appear...
I tried that before, but then I get an error, telling me I write down a wrong securitynumber. I tried it again just now, but still the same. So, that gives me no solution.
The situation in my .../test/gasten-folder is the same again as when I started: $settings['autosubmit']=1 and the generated image doesn't appear...
Hoi Frankma,
I just tested your guestbook and now they both work.
But about a half hour ago (it is now 20:36 dutch time) the guestbook at http://www.frankma.nl/test/gasten/gbook.php did not show a security number image.
This is very strange.
I hope it will stay working. Maybe it has something to do with a server being busy with other things and not being able to generate the images?
Greetings,
Henrie
I just tested your guestbook and now they both work.
But about a half hour ago (it is now 20:36 dutch time) the guestbook at http://www.frankma.nl/test/gasten/gbook.php did not show a security number image.
This is very strange.
I hope it will stay working. Maybe it has something to do with a server being busy with other things and not being able to generate the images?
Greetings,
Henrie
I did some more testing.
I first opened http://www.frankma.nl/test/gastenok/ .
Then I opened http://www.frankma.nl/test/gasten/gbook.php in the same browser window. Now i get a secturity image in the second too so i can also sign up in the second gbook.
If i don't open the first guestbook first i don't get a security number.
What are the changes you have made to your http://www.frankma.nl/test/gasten/gbook.php file?
I think you have changed something in the code that messes up the browser session needed for the gbook to work correctly.
So please check your code again.
Greetings,
Henrie
I first opened http://www.frankma.nl/test/gastenok/ .
Then I opened http://www.frankma.nl/test/gasten/gbook.php in the same browser window. Now i get a secturity image in the second too so i can also sign up in the second gbook.
If i don't open the first guestbook first i don't get a security number.
What are the changes you have made to your http://www.frankma.nl/test/gasten/gbook.php file?
I think you have changed something in the code that messes up the browser session needed for the gbook to work correctly.
So please check your code again.
Greetings,
Henrie
Hi Henrie,
I didn't change a thing in the original gbook.php code. I just put the whole code within a div-tag (<div id="hoofdtekst" ...>, see the source of the page) to get the guestbook within the limits of my template. From then on the security-number doesn't show up anymore.
Can it be that the <html> tags in the template are disturbing something?
I now see that in the source of the page there are 2 headers: one from my template, one from the gbook.php-code.
In Firefox this doesn't affect the display of the page, but maybe it hurts in antother way?
I also tried commenting out the header of the gbook.php code - the page still looks the same then and the securitynumber doesn't appear either.
Right now the .../gasten/gbook.php-page is as it was before.
I didn't change a thing in the original gbook.php code. I just put the whole code within a div-tag (<div id="hoofdtekst" ...>, see the source of the page) to get the guestbook within the limits of my template. From then on the security-number doesn't show up anymore.
Can it be that the <html> tags in the template are disturbing something?
I now see that in the source of the page there are 2 headers: one from my template, one from the gbook.php-code.
In Firefox this doesn't affect the display of the page, but maybe it hurts in antother way?
I also tried commenting out the header of the gbook.php code - the page still looks the same then and the securitynumber doesn't appear either.
Right now the .../gasten/gbook.php-page is as it was before.
Hello Frankma,
I'm sure that's what causes the problem.
With gbook come two txt files (header.txt and footer.txt). These are there to put your own code just below the <body> tag (the header.txt file) and just above the </body> tag (the footer.txt file).
I suggest trying these files to include you own code and use the original gbook.php file.
For example, put the following code in the header.txt file
I see you also have some code in the <head> section of your file. Unfortunately there is no txt file to include code there (maybe an idea for a future version of gbook?).
If you want to include that code you have to change the function printTopHTML() { section in the gbook.php by including your own code there.
Try if this helps, just to be sure that this is truly where the problem is.
Greetings,
Henrie
I'm sure that's what causes the problem.
With gbook come two txt files (header.txt and footer.txt). These are there to put your own code just below the <body> tag (the header.txt file) and just above the </body> tag (the footer.txt file).
I suggest trying these files to include you own code and use the original gbook.php file.
For example, put the following code in the header.txt file
Code: Select all
<div id="titel" style="position:absolute; left:110px; top:45px; width:525px; z-index:1; height: 75px;"><span class="paginakop"><!-- InstanceBeginEditable name="titel" -->gastenboek<!-- InstanceEndEditable --></span></div>
<div id="logo" style="position:absolute; left:635px; top:45px; z-index:10;"><a href="http://www.frankma.nl"><img src="../../images/logoalg.png" alt="logoalg.png" name="logo" width="75" height="75" border="0" id="logo" /></a></div>
<div id="hoofdtekst" style="position:absolute; left:110px; top:145px; width:600px; z-index:2">
If you want to include that code you have to change the function printTopHTML() { section in the gbook.php by including your own code there.
Try if this helps, just to be sure that this is truly where the problem is.
Greetings,
Henrie