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 
customizing Guestbook and have simple ?  XML
Forum Index » Support Forum
Author Message
eahola
Newbie

Joined: 19/02/2005 21:28:40
Messages: 4
Offline

Honest it's a simple ?

I've customized the Advanced Guest book and it is at
http://shellbird.com/GuestBook/index2.php

Note that I haven't moved it over to index.php yet.

I've got spaces on top that I don't know where they are coming from so I can remove them. I'd like the Shellbird's GuestBook line to be at the top -- right under the menu stuff

Help Me
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Looks fine here but this is on IE5.5. Anyway part of the problem could lie in the fact you have got the entire guestbook in there including the head section. This means your page goes
doctype
html
head
/head
body
menu
doctype
html
head
/head
body
guestbook
/body
/html
site content
/body
/html

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

I recommend copying the CSS and Javascript from the guestbooks head section into your pages head section then replacing the contents of templates/header.php with a space or   and the same with footer.php.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
eahola
Newbie

Joined: 19/02/2005 21:28:40
Messages: 4
Offline

there is an error that I'm getting and not sure syntax to fix.

THIS IS THE REASON WHY MY TITLE TO GUESTBOOK IS DOWN SO LOW.

You see the errors/text are hidden and if you select the region above my guestbook stuff .... I see


Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/shellb3/public_html/GuestBook/lib/gb.class.php(153) : eval()'d code on line 4

Warning: fread(): Length parameter must be greater than 0. in /home/shellb3/public_html/GuestBook/lib/template.class.php on line 53



Since I'm not familiar with php I have no idea how to attack this. Could someone steer me in the right direction.

I haven't changed anything gb.class.php.

I'm also thinking this is why it's not displaying my comments even though they are in the DB and the counter is correct.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

When you edited the template files, either header or footer, you left the file empty. You must put either a space or   in the file.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



Hi,

Before I continue --- thanks for helping me out --- I've been on this all day and my mind is lost....

I did have a blank footer. Fixed that and eliminated one of the error messages.

now I just have



Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in ..../lib/gb.class.php(153) : eval()'d code on line 4
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Hmmmmmmmmmm from a quick glance at the script that line refers to the comments. Check the file templates/com.php. It should say (if you have not edited it)

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



yuppers --- that's exactly what I've got.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

It says you only have one entry in the guestbook. Is there a comment with that entry?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



zero comments



SQL-query
SQL-query:
SELECT count( * )
FROM `book_com`
[Edit] [Explain SQL] [Create PHP Code] [Refresh]

count(*)
0
Anonymous



sorry ---

forgot this table too


Showing rows 0 - 0 (1 total, Query took 0.0003 sec)
SQL-query:
SELECT *
FROM `book_data`
LIMIT 0 , 30
[Edit] [Explain SQL] [Create PHP Code] [Refresh]


row(s) starting from record #
in horizontal horizontal (rotated headers) vertical mode and repeat headers after cells

id name gender email url date location host browser comment icq aim
1 tester myemail@yahoo.com http://www.shellbird.com 1108847506 Colorado 70-32-151-70.clspco.adelphia.net Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;... testing this message area 0



the comment value for the comment field is

testing this message area
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

I can't remember, were you getting this error message before you edited the header and footer files?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



I believe I've been getting it from the get-go.

I haven't modified the header and I just have &nbsp for the footer.

I can cut and paste the orig. code for both and I still have the same problem.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Did you download the guestbook from here or did your hosts supply it?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



the host supplied it and I've downloaded the zip file from proxy2 to review the code.

So far I haven't seen anything different -- except for my modifications
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum