all graphics except security do not work

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
gleaman38
Posts: 7
Joined: Mon Nov 10, 2008 7:05 pm

all graphics except security do not work

Post by gleaman38 »

Script URL: www.dragonkingdoms.com/cgi-bin/GBOOK/gbook.php
Version of script: gbook 1.6
Hosting company: gate.com
URL of phpinfo.php: www.dragonkingdoms.com/cgi-bin/GBOOK/phpinfo.php
URL of session_test.php: www.dragonkingdoms.com/cgi-bin/GBOOK/session_test.php
What terms did you try when SEARCHING for a solution: Graphics, smileys, icons, delete, style sheet

Write your message below:
Hi,
I think I like your program at least the way it looks on your site.
Here are the problems I have:
1) Emoticons and spam icon do not display.
2) Color table borders do not display.
3) The IP, Reply, and Delete icons do not display
4) Can not set the background using a style sheet.

What I have tried:
On emoticons, and icons: I have tried many paths to see if I could get one emoticon to display. I tried in gbook.php code: "images/icon_smile.gif", "../images/icon_smile.gif", "www.dragonkingdoms.com/cgi-bin/GBOOK/im ... _smile.gif" and even absolute root path included "/nfs/cust/2/47/48/284742/web/cgi-bin/GBOOK/images/icon_smile.gif" for paths. Emoticons still do not display.

Tried to use Henri's code from past postings to set background for program in style sheet. Does not work, guestbook is still black lettering on white background. Is there some way to set the style in the PHP program instead or am I putting the style sheet in the wrong place?

Icons for Delete, Reply and IP show as white 3D squares on white. Same problem - I can not get them to display.

On the bright side, I did learn from your site and Gate's that sessions need to be set up using absolute root path with /web removed and /.sessions for the directory. (session_save_path('/nfs/cust/2/47/48/284742/.sessions'); ) That took 3 days to figure out. I hope you can give me some other things to try, since Google and Gate's help is not much use on these problems. I hope to hear from you soon.

Thank you in advance for any help you can offer.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Try placing the gbook folder and all subfolders not in the cgi-bin folder. But make a gbook folder in the same level as the cgi-bin folder.

The cgi-bin folder does not allow showing images. Try opening the next link http://www.dragonkingdoms.com/cgi-bin/G ... nospam.gif , you will see what i mean.

If it does not work in the new folder, please come here again.

Greetings,
Henrie
gleaman38
Posts: 7
Joined: Mon Nov 10, 2008 7:05 pm

Post by gleaman38 »

Hi Henri,

Thanks for getting back to me so quickly. I moved all of the guestbook files into a GBOOK folder on the same level as cgi-bin and edited the settings file to reflect his change. (/* URL of the gbook.php file. Only required if $settings['notify'] is set to 1 */
$settings['gbook_url']='http://www.dragonkingdoms.com/GBOOK/gbook.php'; )

The guestbook program does not come up. I get a HTTP 404 Not Found Error after I try to bring the guestbook program up. Also http://www.dragonkingdoms.com/GBOOK/images/nospam.gif comes up with a HTTP 404 Not Found Error as well.

All files and subdirectories are set chmodded to 777 except banned_ip.txt and entries.txt which are set to 666.

Also session_test.php and phpinfo.php comes up with a HTTP 404 Not Found Error if I run them from http://www.dragonkingdoms.com/GBOOK/phpinfo.php.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Strange.

I don't know what your server looks like exactly, but i thought this should work.

Maybe the cgi-bin is located at some special place, because it is a special folder.

The GBOOK folder should be at the same level as the following folders:
GreetingCards
Slates
tshirttransfers
Custom
Sculpture
jewelry
Maks
tiles
..... etc.

Please let me know if it is.

Greetings,
Henrie
gleaman38
Posts: 7
Joined: Mon Nov 10, 2008 7:05 pm

Post by gleaman38 »

I just did move GBOOK to the same level as GreetingCards for hahas and and still doesn't work. I get the 404 error. http://www.dragonkingdoms.com/web/GBOOK/gbook.php
gleaman38
Posts: 7
Joined: Mon Nov 10, 2008 7:05 pm

Post by gleaman38 »

Henrie,

I have an idea. Could I copy the images directory into the web directory (the same directory as greetingCards etc) and then modify the PHP code to run the images from the web directory? Could either of you two show me where to make this change (I am a VBSCRIPT programmer) or am I doomed to be without images and color forever?

Thanks,

Glenn
gleaman38
Posts: 7
Joined: Mon Nov 10, 2008 7:05 pm

Post by gleaman38 »

Henrie,

To clarify my idea, I mean copy the GBOOK files and directories into the /cgi-bin/GBOOK directory and then call the images from the web directory by some change in code.
gleaman38
Posts: 7
Joined: Mon Nov 10, 2008 7:05 pm

Post by gleaman38 »

Henrie,

I do not know if one of my changes or yours got graphics going but they are working! See http://www.dragonkingdoms.com/GBOOK/gbook.php

But now Text does not show up unless I highlight it with my mouse, then it is visible. Weird, huh? Style sheet? All I have been doing is playing with permissions. Now everyting is chmodded to 777 in the /GBOOK directory.

Please let me know if you have any ideas.

Thanks,

Glenn
gleaman38
Posts: 7
Joined: Mon Nov 10, 2008 7:05 pm

Post by gleaman38 »

Hi Henrie,

I got it working finally. I recopied and recopied and repermissioned until it worked. I also found out that if I delete the GBOOK directory from web directory, the program no longer works. So the program needs to be installed in 2 separate directories to work. I do not understand but I may have to go back to Gate with the question.

Thanks for your help.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hi Glenn,

I am glad you got it working.

But it is not good that it should be installed in both places to work. You better ask your hosting company about it.

I just looked at your guestbook. The working link for me is http://www.dragonkingdoms.com/GBOOK/gbook.php .
And it looks good to me now.

No indication that it uses the cgi-bin folder.
Beware with testing that wrong displaying could also be because of the cache of your browser. Try using Ctrl+F5 when refreshing a page. This way the page is reloaded without using the cache.

You could also try minimizing the pages in the cgi-bin folder. Perhaps only gbook.php file is needed (or maybe all the .php files are needed in it). I don't think other files than .php files will be needed in the cgi-bin folder.


Greetings,
Henrie
Post Reply