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: Ugly "ï"¿" in all pages...  (Read 4746 times)

0 Members and 1 Guest are viewing this topic.

Gabriele

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Ugly "ï"¿" in all pages...
« 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
Logged

photoman13

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 96
Ugly "ï"¿" in all pages...
« Reply #1 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.
Logged

Gabriele

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Ugly "ï"¿" in all pages...
« Reply #2 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
Logged

photoman13

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 96
Ugly "ï"¿" in all pages...
« Reply #3 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Ugly "ï"¿" in all pages...
« Reply #4 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
Logged

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
Ugly "ï"¿" in all pages...
« Reply #5 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.
Logged

Oasis

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 252
  • iNSiGNiA
    • Pixnet Gallery
Ugly "ï"¿" in all pages...
« Reply #6 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.
Logged
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 14 queries.