forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Gabriele on April 06, 2004, 11:26:47 pm

Title: Ugly "ï"¿" in all pages...
Post by: Gabriele on April 06, 2004, 11:26:47 pm
Hi!
I am new to php...  :shock:
My coppermine (http://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
Title: Ugly "ï"¿" in all pages...
Post by: photoman13 on April 07, 2004, 12:40:48 am
it's cause you have it right at the top of your hmtl.

Code: [Select]

  ï"¿<!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.
Title: Ugly "ï"¿" in all pages...
Post by: Gabriele on April 08, 2004, 11:14:54 am
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
Title: Ugly "ï"¿" in all pages...
Post by: photoman13 on April 08, 2004, 07:00:26 pm
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.
Title: Ugly "ï"¿" in all pages...
Post by: Joachim Müller on April 09, 2004, 08:05:34 am
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
Title: Ugly "ï"¿" in all pages...
Post by: je79ayps on April 15, 2004, 08:36:48 am
What browser do you use?

I have the same problem when I view my CPG in Firefox but not in IE.
Title: Ugly "ï"¿" in all pages...
Post by: Oasis on April 15, 2004, 05:47:18 pm
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.