An empty space displayed on top of the page An empty space displayed on top of the page
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

An empty space displayed on top of the page

Started by Jr. tristan, August 20, 2006, 12:13:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jr. tristan

I have integrated Viper guestbook to my cpg 1.4.8. see it >here<.
It all works fine except an empty space displays on top just over the menu with /guestbook.php.
On the other hand, no such problem was noted on main page.

When I replace my custom-edited template.html to the original one, the problem was resolved.
I figure it out that it was due to my custom-edited template.html being saved in utf-8 format (becoz my gallery is bilingual).

Can anybody give solution for me to remove such ugyly empty space?

Gizmo

When I look at your source, on the first line I see this "" before the doctype declaration. Check your template.html to see if this there and if so remove it.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Jr. tristan

Quote from: Gizmo on August 20, 2006, 01:03:08 PM
When I look at your source, on the first line I see this "" before the doctype declaration. Check your template.html to see if this there and if so remove it.

I have searched through my template.html. I do not find such "".
Would it be the problem of Notepad?

Gizmo

Are you saving the files as simple text format? Are you confusing Wordpad with Notepad?
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Jr. tristan

Quote from: Gizmo on August 20, 2006, 02:08:59 PM
Are you saving the files as simple text format? Are you confusing Wordpad with Notepad?

First of all, Thank you for your fast reply.
I redo and then upload, it still doesn't work. and I could be quite sure that I am using Notepad.

Sami

- as gizmo said you have error on your custom theme
- zip your theme and put it here we will look in to it
‍I don't answer to PM with support question
Please post your issue to related board

Gizmo

Since the only page affected is the Guestbook, I'm not sure it's a theme issue. Check your guestbook.php file and maybe the admin.php file located in the guestbook directory to see if that string of characters show up. Use a tool like Windows Grep to search your directory for this string.

Also, disabling right-clicking is lame.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Nibbler

The guestbook is using ISO-8859-1. UTF-8 content can't be displayed correctly on an ISO-8859-1 page.

Nibbler

The charset is hardcoded into your template

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

Change that to

<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />

Joachim Müller

Quote from: Jr. tristan on August 20, 2006, 01:32:43 PM
Would it be the problem of Notepad?
Yes: the funny chars are called "Byte Order Mark" (aka BOM). They don't get displayed in notepad. They mistakenly make it into the file if you edit utf-8 files with an editor that doesn't handle utf-8 encoded files properly. Notepad probably is the culprit. I use "Replace in Files" by Emurasoft to mass-remove the BOM from many files at once.

Gizmo

I'll chalk this one up to a learning experience for myself. Thanks guys.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Tranz

In the guestbook admin, you can change the encoding. See if that helps.

Jr. tristan

Quote from: GauGau on August 20, 2006, 09:34:14 PM
Yes: the funny chars are called "Byte Order Mark" (aka BOM).

;D Well. The problem was resolved after the template.html was created once again by EmEditor Free. There is an option check box for no entering any BOM. Now, I used this program instead of Notepad.

Thank you for the kind assistance from all of you. :D