If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Guestbook Top-Page Appearance Change  XML
Forum Index » Support Forum
Author Message
itchybrother
Newbie

Joined: 11/08/2002 01:39:10
Messages: 1
Location: North Friggin' Dakota, USA
Offline

I wish to make two small but significant changes in the "look" of my guestbook(s).

(I love this thing - one just ain't enuff!!!)

The image I want to change is Advanced_2.3.1\guestbook\img\gbook.gif , which is no prob to xxxRename.file and replace it with the image I want. I want this image to be about 125 pixels tall, and 700 wide.

I see where this thing goes in the templates [body.php] from the Control, and it looks like I could just re-size it there, change the table width percentage(s) and throw a <b> in and kick everything else down to below it, but Geesh... it donut werk that way.

I get these messages above the template window when I hit "Submit the Changes" (you should add the words "You Fool" to that button, too!) :

Warning: fopen("./templates/body.php", "w") - Permission denied in /mydomain.com/guestbook/lib/admin.class.php on line 193

Warning: Supplied argument is not a valid File-Handle resource in /mydomain.com/guestbook/lib/admin.class.php on line 194

Warning: Supplied argument is not a valid File-Handle resource in /mydomain.com/guestbook/lib/admin.class.php on line 200

So, I figured the "Permission Denied" one was easy enough and set ALL the permissions on EVERY FRIGGIN' DIRECTORY and FILE to "wide friggin' open". No matter, nothing worked for that Warning - it remained.

The other two warnings are a bit easier for me to deal with: I have NO friggin' idea where to even start with those, so they don't bother me quite as much.

Can you help me? And, could you please try and lay it kinda simple for me? I'm an idjut.

(Sometimes complicated instructions scare me. I once bought a Japanese gasoline-powered Weed Trimmer that had the following instructions: "Place unit between legs. Choke and yank on cord until small explosion heard. You are now running fast. Stop choking and run slow. Use on grass")

Also... i really wanna change the wording @ "Thank you for stopping by my site. Here you can leave your mark." I can't find that anywhere and ANY file! What's the deal on doing that?

Thanx for the help. I know this ain't a particularly easy set of questions, but I bet more than a few people will appreciate the answers!

Bruce - in North Friggin' Dakota, USA
Anonymous



1. To modify the php templates, you need to go into your Unix shell and add write permission for each individual PHP file in the templates folder using this command as an example:

chmod 666 body.php

The '666' is not the number of the beast, but is the correct setting to allow read/write access for each file. The other two messages should go away after that. I had similar problems with the similar messages. After changing the permissions, it worked fine.

2. As for changing the wording of "Thank you for stopping by my site", this looks like it has to be done in the LANG folder for the language PHP file you are using, probably English for you. All these messages are in the english.php file. However, every change I've made to that file even after changing permissions just removes all messages from everywhere. My guestbook only shows icons. So, I don't have this one figured out yet either.

3. Lastly, if you are able to specify a background image in the templates and get it to work, let me know. Not sure what I'm doing wrong, but its still not showing the background image instead of just a color.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum