Advanced search  

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]

Pages: [1]   Go Down

Author Topic: An empty space displayed on top of the page  (Read 7728 times)

0 Members and 1 Guest are viewing this topic.

Jr. tristan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
An empty space displayed on top of the page
« on: August 20, 2006, 12:13:46 pm »

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?
« Last Edit: October 23, 2006, 06:44:57 pm by GauGau »
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: An empty space displayed on top of the page
« Reply #1 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.
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: An empty space displayed on top of the page
« Reply #2 on: August 20, 2006, 01:32:43 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?
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: An empty space displayed on top of the page
« Reply #3 on: August 20, 2006, 02:08:59 pm »

Are you saving the files as simple text format? Are you confusing Wordpad with Notepad?
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: An empty space displayed on top of the page
« Reply #4 on: August 20, 2006, 03:31:57 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.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: An empty space displayed on top of the page
« Reply #5 on: August 20, 2006, 03:35:41 pm »

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

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: An empty space displayed on top of the page
« Reply #6 on: August 20, 2006, 04:33:49 pm »

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.
Logged
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

  • Guest
Re: An empty space displayed on top of the page
« Reply #7 on: August 20, 2006, 04:42:10 pm »

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

Nibbler

  • Guest
Re: An empty space displayed on top of the page
« Reply #8 on: August 20, 2006, 04:47:34 pm »

The charset is hardcoded into your template

Code: [Select]
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
Change that to

Code: [Select]
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: An empty space displayed on top of the page
« Reply #9 on: August 20, 2006, 09:34:14 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.
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: An empty space displayed on top of the page
« Reply #10 on: August 20, 2006, 10:32:28 pm »

I'll chalk this one up to a learning experience for myself. Thanks guys.
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: An empty space displayed on top of the page
« Reply #11 on: August 20, 2006, 11:58:15 pm »

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

Jr. tristan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: An empty space displayed on top of the page
« Reply #12 on: October 23, 2006, 03:18:23 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
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 19 queries.