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: Weird space in my theme  (Read 6535 times)

0 Members and 1 Guest are viewing this topic.

bino

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Weird space in my theme
« on: January 02, 2006, 03:28:21 pm »

After some efforts I created my own skin for coppermine. It´s all looking nicely, however I have this weird space I can´t get rid off (see attachment). Does anyone have an idea why?

I had a look at the soure code and got this:
Code: [Select]
<html  dir="ltr">
<head>
<title>

Any idea how to get rid off this ""?
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Weird space in my theme
« Reply #1 on: January 02, 2006, 03:38:19 pm »

Look for blank spaces before <?php and after ?> in your theme.php file.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

bino

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Weird space in my theme
« Reply #2 on: January 02, 2006, 03:50:26 pm »

There were some spaces at the end and deleted them.
Now I don´t have it anymore with internet explorer but firefox still shows the problem.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Weird space in my theme
« Reply #3 on: January 02, 2006, 04:56:50 pm »

Link?

Have you cleared your browser's cache?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

bino

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Weird space in my theme
« Reply #4 on: January 02, 2006, 05:06:29 pm »

link to fotopage

and yes, cleared everything (cache, cookies,...)
« Last Edit: January 02, 2006, 07:15:14 pm by bino »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Weird space in my theme
« Reply #5 on: January 02, 2006, 06:15:56 pm »

It appears to be your language file.  Switch to english and the characters go away.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

bino

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Weird space in my theme
« Reply #6 on: January 02, 2006, 07:07:33 pm »

It appears so. Thanks

It is caused when I edit my language file with notepad. I have no idea why that causes problems tho.  :-\
« Last Edit: January 02, 2006, 07:17:16 pm by bino »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Weird space in my theme
« Reply #7 on: January 02, 2006, 07:30:28 pm »

The weird symbols you encountered are byte order marks from utf-8. They usually come when using an editor like Notepad to edit utf-8 encoded file. Although WIndows doesn't display the BOM, it deliberately adds it to any UTF-8 encoded file. When uploading this file, your webserver/browser display what actually is there.
Recommendation: get the most recent language file from the stable branch and upload it to your server, replacing the one that exists there already. If you need to edit the file before uploading, use an editor that is capable to edit utf-8 files properly without adding the BOM, or remove the BOm manually after editing (but before downloading). This can be done with a tool like "Replace in Files", which is really a very handy tool not only for removing the BOM.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.