Weird space in my theme Weird space in my theme
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Weird space in my theme

Started by bino, January 02, 2006, 03:28:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bino

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:
<html  dir="ltr">
<head>
<title>


Any idea how to get rid off this ""?

kegobeer

Look for blank spaces before <?php and after ?> in your theme.php file.
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

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.

kegobeer

Link?

Have you cleared your browser's cache?
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

#4
link to fotopage

and yes, cleared everything (cache, cookies,...)

kegobeer

It appears to be your language file.  Switch to english and the characters go away.
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

#6
It appears so. Thanks

It is caused when I edit my language file with notepad. I have no idea why that causes problems tho.  :-\

Joachim Müller

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.