Advanced search  

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

Pages: [1]   Go Down

Author Topic: [Solved]: html syntax errors  (Read 4023 times)

0 Members and 1 Guest are viewing this topic.

coopersita

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
[Solved]: html syntax errors
« on: August 20, 2004, 12:18:59 am »

I've found some html syntax errors I've been trying to fix, but I just can't find where to fix them:

1- the url on  links on the breadcrum are not quoted (eg <a href=index.php>Home</a> instead of <a href="index.php">Home</a>)

2- thumbnail images have an extra " after class="images" and before height: <img src="albums/userpics/10001/thumb_1.jpg" class="image" " height="100" border="0" alt="...>

Does anyone know where to change that?

Thanks
« Last Edit: August 21, 2004, 04:02:34 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: html syntax errors
« Reply #1 on: August 20, 2004, 08:47:40 am »

edit include/functionsinc.php, find
Code: [Select]
$breadcrumb = '<a href=index.php>'.$lang_list_categories['home'].'</a>';and replace with
Code: [Select]
$breadcrumb = '<a href="index.php">'.$lang_list_categories['home'].'</a>';Then find
Code: [Select]
$link = "<a href=index.php?cat={$category[0]}>{$category[1]}</a>";and replace with
Code: [Select]
$link = "<a href=\"index.php?cat={$category[0]}\">{$category[1]}</a>";Next, find
Code: [Select]
$breadcrumb = '<a href=index.php>'.$lang_list_categories['home'].'</a>';and replace with
Code: [Select]
$breadcrumb = '<a href="index.php">'.$lang_list_categories['home'].'</a>';After that, find
Code: [Select]
$link = "<a href=thumbnails.php?album=".$CURRENT_ALBUM_DATA['aid'].">".$CURRENT_ALBUM_DATA['title']."</a>";and replace with
Code: [Select]
$link = "<a href=\"thumbnails.php?album=".$CURRENT_ALBUM_DATA['aid']."\">".$CURRENT_ALBUM_DATA['title']."</a>";
To fix the surplus quote, find
Code: [Select]
$image_size['geom'] = '" height="'.$image_size['height'].'"';and replace with
Code: [Select]
$image_size['geom'] = ' height="'.$image_size['height'].'"';
@devs: fixed this in stable branch of the cvs, the devel branch already had the fix

GauGau
Logged

coopersita

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Re: html syntax errors
« Reply #2 on: August 20, 2004, 08:27:52 pm »

Thanks GauGau,

As usually, it worked like a charm!
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 19 queries.