Ugly "ï"¿" in all pages... Ugly "ï"¿" in all pages...
 

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

Ugly "ï"¿" in all pages...

Started by Gabriele, April 06, 2004, 11:26:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gabriele

Hi!
I am new to php...  :shock:
My coppermine (//www.gvolpe.it)  is working fine but (since I have installed phpBB integration and the hardwired theme) it shows this  ï"¿ on the upper-left portion of the pages. I can't understand how it comes out...
What can I do??
Thanks!

G

photoman13

it's cause you have it right at the top of your hmtl.


  ï"¿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{lang_dir}">
<head>


delete it from the top, and it'll be gone.

I'm pretty sure it probably happened whrn you added the header information.. over top of the header pic.

Gabriele

Hi photoman, thank you for posting.
I have searched for that  ï"¿  in my hardwired templates.html, and in index.php (main directory), phpbb.inc.php (bridge directory), and found nothing...  :shock:
I'm worried it is generated by some badly modified php scripts, but can't  understand where and how...  :cry:  
Any advice? Thanks!!

G

photoman13

try in your headers... since that's where it looks like you 'changed' something... could be in a few places...

if you want to add static html-content (for example your site logo), edit /themes/yourtheme/template.html - add/remove anything you want, but be sure to leave everything in that is in brackets.

if you want dynamic content (or want to add PHP-code), edit the file /themes/yourtheme/theme.php

if you know PHP (at least a little) and want to use PHP-includes, look for function pageheader in /themes/yourtheme/theme.php and You will need to add a new field {CUSTOM_HEADER} in your template.html file.

Joachim Müller

My guess is one or more of your files from the coppermine package got corrupted. Get a fresh package and re-upload (no need to install from scratch, just overwrite your existing files).

GauGau

je79ayps

What browser do you use?

I have the same problem when I view my CPG in Firefox but not in IE.

Oasis

If I remember correctly, this is caused by an encoding problem in the template.html file of your theme. Something to do with unicode.. I don't really remember. Anyway, if you display the page with Unicode, the characters won't show up.

Make a backup of the file, and fiddle around with the first few lines of the file. See if there are any spaces or characters in front of <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
If not, try to make the first line blank, so the file starts from the second line. Or you could just remove <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> conpletely. Give it a try~

If all fails, just use unicode as the default charset.
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org